DeathTweaks
Keep, drop or destroy items on death by type or name, keep food, tune or disable skill loss, respawn at the start or at fixed coordinates. Client-side; a server can optionally enforce its config. Valh
模組介紹 作者原文
Death Tweaks
Configurable death behaviour for Valheim 1.0: decide which items are kept,
dropped or destroyed, keep your food, tune or disable skill loss, and choose
where you respawn.
A from-scratch reimplementation of aedenthorn's DeathTweaks for the current
game version. The feature set and the config keys are the same, so an existing
aedenthorn.DeathTweaks.cfg can be reused by renaming it to
muindor.DeathTweaks.cfg.
Client-side: install it on every player's game that should use it. Nothing is
needed on the server, and players without the mod can play on the same server.
Source, issues and releases: github.com/egor-muindor/ValheimMods.
Features
- Keep, drop or destroy items by item type or prefab name.
- Keep equipped items, hotbar items, teleportable items, or everything.
- Keep items in quick slots of EquipmentAndQuickSlots 3.x or Extra Slots, through their public APIs.
- Drop items on the ground instead of into a tombstone.
- Keep active food after respawn.
- Disable death effects.
- Change the skill loss fraction, disable skill loss, or remove the skill-loss protection after a recent death.
- Respawn at the start location or at fixed coordinates.
Kept equipped items stay equipped after respawn.
Installation
Requires BepInEx 5.
- With a mod manager (r2modman, Mod Manager): install as usual.
- By hand: unzip the release and copy the plugins/DeathTweaks folder into
BepInEx/plugins, so the mod ends up at BepInEx/plugins/DeathTweaks/DeathTweaks.dll.
The config file BepInEx/config/muindor.DeathTweaks.cfg is created on first launch.
Configuration
Server
| Key | Default | Description |
|-----|---------|-------------|
| ConfigPriority | false | Server only. When on, this server's settings replace those of every client that also has the mod. |
Install the mod on a dedicated server, or on the machine hosting the session,
and turn ConfigPriority on to make a death mean the same thing for everyone:
every client that also has Death Tweaks then runs on the server's settings
instead of its own. Everything except IsDebug travels; those settings are
marked [synced] in the generated.cfg.
This never makes the mod required on either side:
- Players without it are unaffected. The mod is not part of the game's version
check, so it never blocks a connection either way.
- A player with it can still join a server that does not have it, or one that
leaves ConfigPriority off, and keeps their own settings.
- The client's.cfg is never written to. The server's values live in memory
for as long as the connection lasts and are dropped when it ends.
- Changing a setting on a running server sends it to the connected players
right away.
General
| Key | Default | Description |
|-----|---------|-------------|
| Enabled | true | Enable the mod. |
| IsDebug | false | Log every item decision on death. |
Toggles
| Key | Default | Description |
|-----|---------|-------------|
| KeepAllItems | false | Keep everything. Overrides all other item options. |
| DestroyAllItems | false | Destroy everything except quest items. Overrides all other item options except KeepAllItems. |
| KeepEquippedItems | false | Keep equipped items. Overrides the item lists. |
| KeepHotbarItems | false | Keep items in the first inventory row. Overrides the item lists. |
| KeepQuickSlotItems | false | Keep items in quick slots. EquipmentAndQuickSlots 3.x: the quick slots. Extra Slots: quick, food, ammo and misc slots. Overrides the item lists. A warning is logged when neither mod is loaded. |
| KeepTeleportableItems | false | Keep items that can go through portals. Does not override the item lists. |
| UseTombStone | true | Put dropped items in a tombstone. When false they are scattered on the ground. |
| CreateDeathEffects | true | Create the ragdoll and particle effects. |
| KeepFoodLevels | false | Keep active food after respawn. |
ItemLists
All lists are comma-separated. Type names are the ItemDrop.ItemData.ItemType
values (Material, Consumable, OneHa
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: