Aller au contenu principal

corpse_settings

Server-wide corpse behaviour. One entry of this type configures every corpse on the server.

Most fields are dynamic values, so they can be driven by placeholders and facts instead of a single constant — protection time can depend on rank, the loot GUI can be limited to a permission, and a dangerous world can expire corpses faster than a safe one.

Fields

FieldTypeDefaultDescription
durationVar<Int>300Seconds before the corpse disappears. 0 = never expire.
dropOnInteractVar<Bool>trueRight-clicking loots the corpse directly. When false, the interaction opens the GUI instead.
glowEffectVar<Bool>trueDraw a glowing outline around the corpse.
glowColorColorwhiteColour of the glow outline.
onlyOwnerCanLootVar<Bool>falseOnly the dead player may ever loot their own corpse.
ownerProtectionSecondsVar<Int>0Seconds during which only the owner may loot, after which the corpse opens to everyone. 0 = no protection.
spawnParticlesVar<Bool>trueSpawn blood and soul particles when the corpse appears.
lootSoundSoundemptySound played to nearby players when the corpse is looted.
spawnSoundSoundemptySound played to nearby players when the corpse spawns.
notifyOnRespawnVar<Bool>trueTell the dead player where their corpse is when they respawn.
renderArmorVar<Bool>trueRender the armour the player was wearing on the corpse.
enableInventoryGUIVar<Bool>falseEnable the inventory GUI, opened by sneak + right-click.

Notes

  • This is a Manifest entry — only one instance is needed. If none exists, the defaults above apply.
  • duration can be overridden per corpse type via corpse_definition.overrideDuration.
  • The access rule (onlyOwnerCanLoot and ownerProtectionSeconds) is captured when the corpse is created. Changing it later does not unlock corpses that died under stricter rules.
  • glowColor is rendered by the client as an entity outline. It is applied by backends that consume the glow property; model backends that ignore it simply render without an outline.