Pular para o conteúdo principal

corpse_definition

Corpse Model Definition — misc entry.

Entry Information

PropertyValue
Entry IDcorpse_definition
TypeMisc
ColorRed
Iconmdi:skull-outline

Fields

FieldTypeDescription
definitionRefRef<out EntityDefinitionEntry>Entity definition to use for the corpse model. Empty = default player model.
displayNameStringDisplay name above the corpse. Use {player} for the dead player's name.
verticalOffsetDoubleVertical offset from the death location (in blocks).
rotationModeCorpseRotationModeHow the corpse should be rotated.
showDisplayNameBooleanWhether to show a floating name above the corpse.
overrideDurationIntDuration in seconds before this specific corpse type expires. Overrides global setting if > 0.
playDeathAnimationBooleanPlay a death animation on spawn (if the model supports it).
deathAnimationNameStringAnimation 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: ""