DeathTweaks

v1.4.1·Updated 2025-04-27

Lets you tweak what happens when you die, including item dropping and keeping, whether a tombstone is created, whether food levels are kept, whether to reduce skill levels, etc.

About this mod Author’s original text

Description

I am uploading this here as the current version doesn't work with Ashlands PTU. The following is a slightly edited excerpt of the original mod's description as per its page:

This mod contains the following config options:

  • KeepItemTypes - a list of item types to always keep on death
  • DropItemTypes - a list of item types to always drop on death
  • DestroyItemTypes - a list of item types to always destroy on death
  • KeepAllItems - whether to keep all items
  • DestroyAllItems - whether to destroy all items
  • KeepEquippedItems - whether to keep equipped items
  • KeepQuickSlotItems - whether to keep items in Equipment and Quick Slots quick slots
  • UseTombStone - whether to create a tomb stone
  • CreateDeathEffects - whether to create a ragdoll
  • KeepFoodLevels - whether to keep food levels on death
  • ReduceSkills - whether to reduce skills on death
  • SkillReduceFactor - the fraction of skill xp to lose
  • NoSkillProtection - whether to force skill loss on every death
  • SpawnAtStart - Whether to force respawning at start location
  • UseFixedSpawnCoordinates - Whether to use custom fixed spawn coordinates

Only use either KeepItemTypes or DropItemType. DestroyItemTypes overrides both. KeepEquippedItems overrides the lists and KeepAllItems or DestroyAllItems overrides all the others.

As of version 0.3.0 it should work with Equipment and Quick Slots.

Config

A config file BepInEx/config/aedenthorn.DeathTweaks.cfg is created after running the game once with this mod).

You can adjust the config values by editing this file using a text editor or in-game using a Config Manager.

To reload the config from the config file, type deathtweaks reset into the game's console (F5).

Technical

To install this mod, the easiest way is to just use a mod manager like r2modman. It should take care of all dependencies.

To install manually, place the dll file in the BepInEx/plugins folder. You will need BepInEx.

Code is at.

Notes

All credit goes to aedenthorn for creating this mod, I simply fixed the assembly references and re-built it.

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
DeathTweaks-1.4.1.zip
File size
102.2 KiB