HereComesTheVein

v1.2.0·Updated 2026-10-07

Mined copper ore and obsidian have a 20% chance to become iron ore, and obsidian veins can drop bonus iron; mined stone can become a Surtling Core (1%), coal (10%) or tin ore (5%).

About this mod Author’s original text

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%).

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.

Dependencies

Install these first, or the mod will not work:

denikson-BepInExPack_Valheim

File & checksum

Filename
HereComesTheVein-1.2.0.zip
File size
31.5 KiB