


Hardcore death penalties for the Final Sunset modpack. When you die for real, you lose your loose loot and skills — but the gear you were wearing and everything in your special slots stays in your grave to be recovered.
| Slot | Result |
|---|---|
| Equipped gear (armor, weapon, shield, cape, utility, trinket) | KEPT IN GRAVE — walk back to your tombstone to recover |
| ExtraSlots: equipment, trinket/utility, food, ammo, quick, misc | KEPT IN GRAVE |
| Worn AdventureBackpacks backpack | ITEM KEPT IN GRAVE, but its stored contents are WIPED |
| Hotbar (slots 1-8) | DESTROYED |
| Inventory (vanilla backpack grid) | DESTROYED |
| All skill levels | RESET TO 0 |
| Tombstone | Holds your equipped gear + all ExtraSlots items (backpack emptied) |
Loose items in the vanilla backpack grid and hotbar are permanently destroyed — not dropped, not recoverable. The contents stored inside a worn backpack are also destroyed (the backpack itself is kept). Skills are fully zeroed, not just reduced. Your worn gear and special-slot items survive in the tombstone.
In the CreateTombStone Prefix the plugin snapshots the object references of every item that should be kept — captured before those items move into the tombstone:
m_equipped): weapon, tool, shield, armor, cape…ExtraSlots.API.GetAllExtraSlotsItems() (equipment, trinket/utility, food, ammo, quick, misc, and the worn backpack item)In the Postfix it removes everything from the new tombstone except those snapshotted references (with the m_equipped flag as a fallback). Because the references survive the move, this works even if the game clears the equipped flag during death processing.
ExtraSlots and AdventureBackpacks are both soft dependencies (queried by reflection). If ExtraSlots is absent, the keep-set falls back to equipped-only (v1.2 behaviour). If AdventureBackpacks is absent, the backpack-wipe step is skipped.
A worn AdventureBackpacks backpack is one of the items kept in the grave (it's equipment). To prevent it from being a permadeath loophole, its stored contents are emptied: the plugin resolves the backpack via AdventureBackpacks.API.ABAPI.GetBackpack(item), clears the backpack's internal inventory, and persists the emptied state through the Vapok custom-data save path so the grave stores an empty backpack. You keep the backpack; you lose what was inside it.
This plugin is fully compatible with BalrondSecondChance's downed/revive system:
The plugin detects real death vs downed state by tracking whether CreateTombStone was called inside OnDeath. If SecondChance blocks death (downed state), no tombstone is created and the plugin skips.
The server requires this mod on every connecting client, at a matching major.minor version (now 1.4.x). This is enforced through Jötunn's NetworkCompatibility(EveryoneMustHaveMod, VersionStrictness.Minor):
This guarantees death processing is identical for everyone — nobody can join with a stale build and lose (or keep) the wrong items. Every player who can die needs a matching 1.4.x build. Requires Jötunn (listed as a dependency).
Install on the server and all clients (required — both the network check and client-authoritative death processing depend on it). Every player who can die needs a matching 1.4.x build.
Drop FinalSunsetPermadeath.dll into BepInEx/plugins/ or install via Thunderstore Mod Manager. Jötunn must also be present. ExtraSlots and AdventureBackpacks are optional (soft dependencies) but recommended for the full keep-set / backpack-wipe behaviour.
Check BepInEx console on startup for:
FinalSunsetPermadeath v1.4.0 loaded | skillData=ok level=ok acc=ok createTombStone=ok extraSlotsApi=ok backpackApi=ok itemInfoData=ok
On death, console will show:
[FinalSunsetPermadeath] Tombstone [id=XXXXX]: kept N item(s) (equipped + extra slots) in grave, destroyed M item(s), wiped K item(s) from backpack(s)
[FinalSunsetPermadeath] Reset N skill(s) to level 0