Zen's Player Graves - ZenarchistCode/ZenModPack GitHub Wiki
This mod spawns graves on dead player bodies on server restarts.
Basically, when a player dies, if their character is older (in minutes) than the time specified in the config described below, then there is a random chance that a grave might spawn on their dead body location on the next server restart.
I made it this way so that there's an element of randomness to this mechanic. I like the idea of stumbling across a grave deep in the woods in the middle of nowhere, and digging it up to see what random loot is inside.
The loot is based on what the player had in their inventory at the time of their corpse despawning.
So if the body despawns due to no one being nearby, or it despawns during the server shutdown process, there is a random chance that a grave will be spawned at that location on the next server startup.
%server_profile/Zenarchist/ZenGravesConfig.json
{ "ConfigVersion": "1", // Don't touch this "DebugOn": 1, // Turns on/off debug text log printing "DateFormat": 6, // This formats the grave date (uses the same format style as ZenNotes) "MinPlayerAgeMinutes": 90, // Minimum player character age in minutes to qualify for potential grave "MinDistanceBetweenCrosses": 10.0, // Minimum distance a grave can be spawned near another grave "ShowPlayerInfoOnCross": 1, // Enable/disable the player's info (name/cause/date), to make them anonymous set to 0 "ShowPlayerName": 1, // Enable/disable displaying the player's character name "ShowPlayerAge": 1, // Enable/disable displaying the player's age (in minutes/hours) "BurySkeleton": 1, // Enable/disable creating a buried skeleton with loot on it, or just have the cross with no loot "DeleteCrossOnDig": 1, // Enable/disable deleting the cross when it's dug up (recommend leaving this on) "ChanceOfGrave": 0.8999999761581421, // Global chance of a grave appearing when a player dies (and meets minimum age requirement) "ChanceOfSkeletonClothing": 0.8999999761581421, // Chance of each of the player's clothing attachments carrying over to the skeleton "ChanceOfSkeletonItems": 0.33000001311302187, // Chance of each item contained in the player's loot spawning on the skeleton "SkeletonItemHealthModifier": 0.5, // Sets health to this % of its current health "Prefix": "RIP", // Prefix, appears before name (eg. RIP Player Name) "UnknownPerson": "unknown", // Text to display whenever the name is unknown (or ShowPlayerName is 0) "Description": "Here lies #name, who died #date #age", // Text description - #name, #date and #age are all replaced with real values "AgeText": "aged", // This is the text placed before #age (for language translations etc) "Minutes": "minutes,", // This is for language translations etc "Days": "days,", // This is for language translations etc "Weeks": "weeks,", // This is for language translations etc "Hours": "hours,", // This is for language translations etc "CauseOfDeath": "from", // This is for language translations etc "ShowCauseOfDeath": 1, // Enable/disable displaying what the player died from "IgnoreSteamIDs": [ "76696969696969696" // A list of steam IDs to ignore (recommended to put your admin accounts in here) ], "NoCrossZones": [ // List of zones to NOT spawn crosses in (eg. safezones) { "Name": "Example", // Zone cfg name "Position": [ // World position 0.0, 0.0, 0.0 ], "Distance": 100 // Radius in meters to make this zone effective } ], "CrossCauseOfDeath": [], // Text config for cause of death (the same as my Cause of Death mod) "DeadPlayers": [] // Don't touch this - this is for saving the list of dead players and loot between server restarts }
To disable this mod set "ZenGraves": 0
in %server_profile/Zenarchist/ZenModPackConfig.json