BetterVeins
Break a whole deposit in one swing. Copper, silver, obsidian, scrap, plain rock - one chunk comes off and the rest goes with it, everything dropping in a neat stack at your feet. No lag, no stutter.
模組介紹 作者原文
BetterVeins
Break a whole deposit in one swing.
Copper, tin, silver, obsidian, scrap piles, plain rock — whatever you are swinging at, no more chipping away at the same thing forty times over. Break off one chunk and the rest comes down with it, and everything it drops lands in a neat stack at your feet instead of scattered halfway down the hill.
And it won't wreck your framerate. Other vein mining mods stutter because they smash the rock one piece at a time, forty times in a single frame. BetterVeins takes the whole thing down in one go, so a huge deposit costs your game no more than a single swing. It is genuinely lighter than mining the deposit by hand.
What it feels like
Mine normally. When the first chunk breaks off, the rest goes with it.
Your pickaxe still has to be good enough for the ore — bronze on silver still says "too hard". And a better pickaxe still gets that first chunk off in fewer swings, so upgrading still matters.
Want it even faster? There is a setting to bring the whole thing down on your very first swing.
Hold Left Alt to mine a single chunk, for when you are trimming a rock you are building around or you just want a bit of stone.
Why it is so much faster
Valheim charges a fixed price for every chunk you break. The deposit's health is decoded out of the save and re-encoded back into it, a message goes out to every player on the server, and each of those messages makes every client rebuild the deposit's mesh from scratch — three mesh combines, every time.
Other vein mining mods break chunks one after another, so they pay that price for every chunk in the deposit. Forty chunks means forty save writes, forty broadcasts and forty mesh rebuilds on every connected client, all in one frame. Spreading the work over several frames, which is the usual attempt at a fix, does not remove any of it — it just smears the stutter out.
BetterVeins never breaks chunks at all. It reads the health once, zeroes the whole deposit in memory, writes once, and sends one message. A forty chunk deposit costs exactly what one chunk costs. That is less work than the game does when you mine the deposit yourself, so vein mining here is not a performance cost you are accepting for convenience — it is a performance gain.
The loot is added up before anything is spawned, for the same reason. Every item on the ground is a networked object with a ZDO of its own, and forty of them appearing at once is a stutter in its own right. Adding the drops up first turns dozens of them into a handful of full stacks, dropped in one spot.
What it does not change
The drop table is still rolled once per chunk, exactly as the game rolls it. The odds and the amounts are unchanged — the results are just added together before anything lands.
Installation
Install with your mod manager, or drop BetterVeins.dll into BepInEx/plugins.
Configuration
Everything below can be changed in-game with Configuration Manager, or in BepInEx/config/xtav1m.BetterVeins.cfg.
General
| Setting | Default | What it does |
| --- | --- | --- |
| Enable | On | |
| Break On First Hit | Off | The whole deposit on the first swing, without waiting for a chunk |
| Mine One Chunk | Left Alt | Hold to take a single chunk, the way the game does |
Nodes
| Setting | Default | What it does |
| --- | --- | --- |
| Ore Deposits | On | Copper, tin, silver, obsidian, and anything else that gives metal |
| Scrap Piles | On | Muddy scrap piles in the swamp crypts |
| Rock And Stone | On | Plain rock. Turn off if you shape rock by hand |
Cost
| Setting | Default | What it does |
| --- | --- | --- |
| Durability Per Chunk | 1.0 | Pickaxe wear per chunk, as a multiple of a normal swing. 0 is free |
| Stamina Per Chunk | 1.0 | Stamina per extra chunk, as a multiple of a normal swing. 0 is free |
Neither ever stops a deposit halfway. A pickaxe that runs out finishes the job and breaks on your next swing.
Drops
| Setting | Default | What it does |
| --- | --- | --- |
| Merge Drops | On | Add
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: