corpse_definition
Corpse Model Definition — misc entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | corpse_definition |
| Type | Misc |
| Color | Red |
| Icon | mdi:skull-outline |
Fields
| Field | Type | Description |
|---|---|---|
definitionRef | Ref<out EntityDefinitionEntry> | Entity definition to use for the corpse model. Empty = default player model. |
displayName | String | Display name above the corpse. Use {player} for the dead player's name. |
verticalOffset | Double | Vertical offset from the death location (in blocks). |
rotationMode | CorpseRotationMode | How the corpse should be rotated. |
showDisplayName | Boolean | Whether to show a floating name above the corpse. |
overrideDuration | Int | Duration in seconds before this specific corpse type expires. Overrides global setting if > 0. |
playDeathAnimation | Boolean | Play a death animation on spawn (if the model supports it). |
deathAnimationName | String | Animation name to play on spawn (empty = auto-detect based on model). |
Usage Example
- entry: corpse_definition
name: "Corpse Model Definition"
definitionRef: ""
displayName: ""
verticalOffset: 0
rotationMode: ""
showDisplayName: false
overrideDuration: 0
playDeathAnimation: false
deathAnimationName: ""