CustomWeaponDrops
Enemies drop the weapons and shields they were carrying when they die. Drop chance and item quality scale with star level. Fully configurable.
模組介紹 作者原文
Custom Weapon Drops
by YouDied
Enemies in Valheim carry weapons — but when they die, those weapons vanish. This mod changes that. Melee and ranged enemies now have a chance to drop the weapon (and shield) they were carrying when they died.
How It Works
When a supported enemy dies, the mod checks what weapon and shield they had equipped and drops a player-usable equivalent on the ground. Drop chance and item quality scale with enemy star level.
No-star enemies drop weapons at a configurable chance (default 5%).
1-star enemies always drop their weapon at quality level 2.
2-star enemies always drop their weapon at quality level 3.
All of these values are configurable in BepInEx/config/YouDied.CustomWeaponDrops.cfg.
Supported Enemies & Default Drops
| Enemy | Weapon Drop | Shield Drop |
|---|---|---|
| Skeleton | Bronze Sword or Huntsman Bow | Wood Shield or Bronze Buckler (if equipped) |
| Skeleton (Poison) | Iron Mace | — |
| Goblin | Club, Wolf Fang Spear, Blackmetal Sword, or Torch | Wood Shield (if equipped) |
| Draugr | Iron Axe or Huntsman Bow | Wood Shield or Banded Shield (if equipped) |
| Draugr Elite | Iron Sword | — |
| Draugr Ranged | Huntsman Bow | — |
| Charred Archer | Ashlands Bow | — |
Skeleton, Goblin, and Draugr have randomized loadouts — the mod detects what they were actually carrying at the moment of death, so a bow skeleton drops a bow and a sword skeleton drops a sword.
A Note on Enemy Weapons
Some enemies carry weapons that are exclusive to them and cannot exist as pickable world items — they are not registered in the game's item registry and will disappear or become unpickable if spawned directly. This affects:
- GoblinBrute — fights using special attack abilities, not an equippable weapon
- GoblinShaman — casts spells via ability prefabs, not an equippable weapon
- Charred Melee — greatsword attacks are baked into its animation abilities
- Troll — uses its fists or an unarmed log, neither of which is a droppable item
For enemies whose weapons can be dropped but exist as enemy-only prefabs (Skeleton, Draugr, Goblin, Charred Archer), the mod substitutes the closest player-craftable equivalent. The weapons are thematically appropriate for the enemy's tier but are not identical to what they carry — for example, a Draugr drops an Iron Axe rather than the Draugr's unique axe model.
GoblinBrute, GoblinShaman, Charred Melee, and Troll are excluded by default. However, you can add any valid player weapon prefab name to their config entries to make them drop something on death — for example, adding MaceNeedle to GoblinBrute's config entry. The game's item prefab names can be found on the Valheim wiki.
Note: Dvergr enemy drops are not included in this version.
Configuration
The config file is generated at BepInEx/config/YouDied.CustomWeaponDrops.cfg on first run.
Global settings:
| Key | Default | Description |
|---|---|---|
| NoStarDropChance | 0.05 | Chance (0.0–1.0) a no-star enemy drops their weapon |
| OneStarDropChance | 1.0 | Chance (0.0–1.0) a 1-star enemy drops their weapon |
| NoStarWeaponQuality | 1 | Item quality for no-star drops |
| OneStarWeaponQuality | 2 | Item quality for 1-star drops |
| TwoStarWeaponQuality | 3 | Item quality for 2-star drops |
Per-enemy settings (one section per enemy):
Each enemy has NoStar, 1Star, and 2Star entries. Set the value to a valid item prefab name to override the drop, or leave empty to disable drops for that tier. For enemies with randomized loadouts (Skeleton, Goblin, Draugr), leave these empty — the equipped weapon is detected automatically.
Patch Notes
v2.2.5
- Added OneStarDropChance config — 1-star drop chance is now configurable (default 100%)
v2.2.4
- Removed debug logging left in from shield testing
v2.2.3
- Fixed skeleton_mace mapping — Skeleton (Poison) now correctly drops Iron Mace instead of Bronze Mace
v2.2.2
- Fixed config-driven enemies (Skeleton Poison, Draugr Elite, Draugr Ranged, Charred Archer) dropping unpickable items — all now
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: