Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
KeepInventory
Keep your whole inventory when you die. No tombstone, with an optional setting to also avoid skill loss.
By lobo1g
| Last updated | 3 weeks ago |
| Total downloads | 809 |
| Total rating | 0 |
| Categories | Mods Tweaks Deep North Update AI Generated Server-side Client-side |
| Dependency string | lobo1g-KeepInventory-1.0.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2351README
Keep Inventory (Valheim BepInEx mod)
When you die, no tombstone is created and your inventory stays with you.
Build
- Install BepInEx (BepInExPack_Valheim) in your Valheim folder and run the game once so it generates
publicized_assemblies. - Install the .NET SDK, then from this folder run:
dotnet build -c Release -p:ValheimDir="C:\path\to\Valheim" - Output:
bin\Release\net462\KeepInventory.dll
Install
Copy KeepInventory.dll into Valheim\BepInEx\plugins\.
It runs on the client of each player who should keep their items (the death happens on the owning client). If you also want it on a dedicated server, copy it to the server's BepInEx\plugins\ too; it is harmless there.
Config
Generated at BepInEx\config\com.example.keepinventory.cfg:
Enabled(default true)KeepSkills(default false): also skip the skill-loss penalty on death
Notes
- If you notice equipped gear gets unequipped after respawn on your game version, re-equip manually or tell me and I'll add a patch for it.
- Method names (
Player.CreateTombStone,Skills.OnDeath) match recent Valheim versions; if a game update renames them the patch will log an error at startup.