You are viewing a potentially older version of this package. View all versions.
Chini-QuickSlotDeathGuard-0.1.0 icon

QuickSlotDeathGuard

Keeps GearSlots Quick 1-3 items from being lost on death, matching the protection already given to Gear/Utility slots.

By Chini
Date uploaded a month ago
Version 0.1.0
Download link Chini-QuickSlotDeathGuard-0.1.0.zip
Downloads 137
Dependency string Chini-QuickSlotDeathGuard-0.1.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 icon
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.2350
jg224-GearSlots-0.5.2 icon
jg224-GearSlots

Adds separate slots for armor, utilities, and ammo, plus three quick-use slots

Preferred version: 0.5.2

README

QuickSlotDeathGuard

Companion mod for GearSlots (jg224). Keeps items in GearSlots' Quick slots 1-3 from being lost on death, matching the protection GearSlots already gives to the Head/Chest/Legs/Cape/Utility/Ammo slots.

Install

GearSlots is client-side only, so this mod must go on every player's client who uses GearSlots - installing it only on the server does nothing, same as GearSlots itself.

Manual (any mod manager / vanilla BepInEx): unzip this package and drop the whole folder into BepInEx/plugins/.

Gale: import this .zip as a local mod for your Valheim profile (Gale's mod list -> Import local mod, or drag-and-drop the zip onto the profile), or just extract it into BepInEx/plugins/ inside your profile folder like above.

Requirements

  • BepInExPack_Valheim
  • GearSlots (jg224) 0.5.2+

What it does

GearSlots' own death-handling code calls vanilla Inventory.RemoveUnequipped() on the Gear inventory and the Quick inventory identically. That method keeps only items flagged "equipped" - GearSlots marks Head/Chest/Legs/Cape/ Utility/Ammo items as equipped (so they survive), but Quick 1-3 items are never flagged equipped, so they get stripped on death like loose inventory.

This mod runs a high-priority Harmony prefix on Player.CreateTombStone that pulls Quick 1-3 items out before GearSlots' own logic runs, then puts them back once tombstone creation is done - so nothing in Quick 1-3 ever reaches the grave.