HereComesTheVein

版本 v1.2.0·更新於 2026-10-07

Mined copper ore has a 20% chance to become iron ore; mined stone can become a Surtling Core (1%), coal (10%) or tin ore (5%).

模組介紹 作者原文

HereComesTheVein

I use AI to review code and assist with optimization and integrity; I manually test and review every mod, and all decisions and code remain my own.

Current release: 1.1.0

A lightweight Valheim mod by R4V9N1.

HereComesTheVein keeps vanilla copper veins unchanged and gives each generated CopperOre drop an independent 20% chance to become IronOre instead. The remaining 80% stay CopperOre.

Mining stone works the same way: each Stone dropped by a mined rock has a 1% chance to become a Surtling Core, a 10% chance to become Coal and a 5% chance to become Tin Ore instead.

Behaviour

  • Copper vein prefab and world-generation identity remain vanilla.
  • Valheim generates the normal mining drop list first, including its normal quantities, drop chances, and resource scaling.
  • Each final CopperOre result from MineRock/MineRock5 mining receives one independent roll: 20% becomes IronOre, 80% remains CopperOre.
  • Replacement is one-for-one, so the total number of ore drops is unchanged.
  • Each final Stone result from MineRock/MineRock5 mining receives one independent roll: 1% becomes SurtlingCore, 10% becomes Coal, 5% becomes TinOre, 84% remains Stone.
  • Mining drops that are not CopperOre or Stone remain unchanged.
  • Unrelated DropTable users are not modified.
  • IronOre does not depend on Elder defeat, trophies, altar state, guardian-power activation, special vein selection, or a special texture.
  • Existing worlds are supported because the mod does not regenerate or rewrite world-generation data.

Multiplayer

Install the mod on the server/host and on every client for a matching setup. Valheim's owner-side mining RPC path remains authoritative for generated drops.

Requirements

  • Valheim
  • BepInExPack Valheim

Manual installation

Copy HereComesTheVein.dll into:

Valheim\BepInEx\plugins\HereComesTheVein\

Removal

Removing the DLL stops the runtime substitution. The mod does not rewrite vanilla copper-prefab identities or persist custom vein state in world data.

Technical approach

The plugin brackets the current owner-side MineRock.RPC_Hit(long, HitData, int) and MineRock5.DamageArea(int, HitData) mining paths and scopes conversion to their exact m_dropItems DropTable. It patches only the public parameterless DropTable.GetDropList() result. Valheim generates the final list first; the mod then independently replaces each CopperOre entry with IronOre at a 20% probability, and each Stone entry with SurtlingCore (1%), Coal (10%) or TinOre (5%).

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
HereComesTheVein-1.2.0.zip
檔案大小
31.5 KiB