Back to NxLabs

NxLabs / Vintage Story

Player Corpse

DBy DArkHekRoMaNT

Creates a corpse with the player's inventory after death

Description

Requires CommonLib for VS 1.18+

  image Crowdin

 The reimagined grave system.

After the death of the player, the player's corpse will spawn in its place (at the moment it is a regular humanoud skeleton). You can go to it and collect things (by holding RMB), by default only its owner or a player in a creative can collect a corpse. Not despawning.

In addition, a waypoint will be created at the place of death. By default, it will try to resolve conflicts with known mods, for example supports StreamDC.

Since the game is an unpredictable thing, this mod also adds the ability to restore items lost at the last death using the /returnthings command. By default, the last 10 deaths are stored for each player.

Config
CanFired&nbsp;- the corpse will be destroyed if it burns for more than 15 seconds <span style="color: #95a5a6;">(default:&nbsp;false)</span>
HasHealth&nbsp;- a corpse has 100 hp and can be broken by other players <span style="color: #95a5a6;">(default:&nbsp;false)</span>
CreateCorpse&nbsp;- whether corpses will be created at all <span style="color: #95a5a6;">(default:&nbsp;true)</span>
SaveInventoryTypes&nbsp;- what types of inventory will be saved
NeedPrivilegeForReturnThings&nbsp;- what privileges are needed to return things <span style="color: #95a5a6;">(default:&nbsp;gamemode)</span>
MaxDeathContentSavedPerPlayer&nbsp;- the number of recent deaths that are saved per player <span style="color: #95a5a6;">(default:&nbsp;10)</span>
CreateWaypoint&nbsp;- whether to create a waypoint at all upon death (<span style="color: #95a5a6;">default:&nbsp;auto;</span> automated turn it off if there is another well-known mod adding waypoints). And also various settings for waypoint.
FreeCorpseAfterTime&nbsp;-&nbsp;makes corpses available to everyone after N in-game hours <span style="color: #95a5a6;">(default:&nbsp;240;&nbsp;10 days)</span>
CorpseCollectionTime&nbsp;-&nbsp;corpse collection time in seconds <span style="color: #95a5a6;">(default:&nbsp;1)</span>
CorpseCompassEnabled&nbsp;-&nbsp;enable craftable compass to search for corpses nearby <span style="color: #95a5a6;">(default:&nbsp;true)</span>

Config can be edited at runtime via /cl config

&nbsp;


For bug reports, it is better to use GitHub (Issue tracker link), there is a form for reporting.

If you're reporting bugs, please don't write "it doesn't work" or "it's crashing for me". At least specify the version of the mod and the library. If you have a crash - add crash text. If the mod does not work correctly, but does not crash - check client-main.txt and server-main.txt from %appdata%/VintagestoryData/Logs for errors.

&nbsp;

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.