DraugrIronOre
Adds a configurable 33% chance for Draugr to drop 1-3 bonus Iron Ore.
模組介紹 作者原文
Draugr Iron Ore
Standalone BepInEx plugin source for Valheim. Adds a bonus Iron Ore drop to eligible Draugr without replacing their normal loot.
Default behavior
- 33% chance per eligible Draugr death
- 1–3 Iron Ore on a successful roll
- Includes Draugr, Draugr Elite, and Draugr Ranged by default
- Configurable through BepInEx config
- No DropNSpawn or Jötunn dependency
Requirements to build
- Valheim installed through Steam
- BepInExPack Valheim installed and run once
-.NET SDK installed (dotnet --info should work)
- PowerShell on Windows
Build
- Extract this source ZIP.
- Open PowerShell in the extracted DraugrIronOre folder.
- Run.uild.ps1.
- If Valheim is installed in a different folder, run:.uild.ps1 -ValheimDir "D:\Games\Steam\steamapps\common\Valheim"
The script builds against the local Valheim managed assemblies and BepInEx libraries. On success, the DLL is copied\BepInEx\plugins\DraugrIronOre.dll.
Local installation
Copy \BepInEx\plugins\DraugrIronOre.dll to the BepInEx\plugins folder of your Valheim install or your Mod Manager/r2modman profile. With a mod manager, use Settings / Profile folder / Browse profile folder, then open BepInEx\plugins.
Launch the game once. The configuration file will be generated at:
BepInEx\config\com.example.draugrironore.cfg
Configuration
- DropChance = 0.33 (33%)
- MinAmount = 1
- MaxAmount = 3
- IncludeEliteDraugr = true
- IncludeRangedDraugr = true
Make a upload ZIP
- Build successfully with.uild.ps1.
- Run.\package.ps1 -Version "1.0.0".
- Upload the generated DraugrIronOre-1.0.0-.zip from the project folder to your team's upload page.
The upload ZIP includes the compiled DLL at BepInEx/plugins/DraugrIronOre.dll plus the required root-level manifest.json, README.md, and icon.png.
Important testing note
This source archive does not include a compiled DLL because compiling requires the Valheim and BepInEx assemblies from your own installation. I have not run this plugin inside Valheim. Test in a disposable world/profile first and check BepInEx/LogOutput.log for errors. The plugin adds a separate bonus item and does not intentionally alter vanilla loot tables. Modded Draugr variants are not included unless their prefab names match one of the three supported names.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: