Saltar al contenido principal

Corpse Definition

Corpse Model Definition

Campos

CampoTipoPredeterminadoDescripción
definitionRefRef<out EntityDefinitionEntry>—Entity definition used for the corpse model. Empty = plain player model wearing the victim's skin.
showDisplayNameVar<Boolean>trueShow the floating name above the corpse.
verticalOffsetVar<Double>0.0Vertical offset from the death location, in blocks.
rotationModeCorpseRotationModeRANDOMHow the corpse is rotated.
poseCorpsePoseLYINGBody pose. Only used by the plain player model; model backends pose themselves.
CorpsePose (1)
CampoTipoPredeterminadoDescripción
poseEntityPose——
playDeathAnimationVar<Boolean>truePlay an animation when the corpse appears. Model backends only.
deathAnimationNameVar<String>deathAnimation to play on spawn, by name, on BetterModel / BTC Mob NPC / MythicMobs NPC models.
loopDeathAnimationVar<Boolean>trueLoop the animation for as long as the corpse exists. Leave off for a one-shot death animation.
deathAnimationSpeedVar<Double>1.0Playback speed of the animation.
interactionWidthDouble1.0Width of the clickable box, in blocks.
interactionHeightDouble1.0Height of the clickable box, in blocks.
interactionOffsetDouble0.0Vertical offset of the clickable box relative to the corpse, in blocks.
overrideDurationVar<Int>0Seconds before corpses of this type expire. Overrides the global setting when above 0.
worldsList<String>emptyWorlds this definition applies to. Empty = every world. Takes the same entries as the world lists of the global settings: a world name, a dimension key, or a pattern such as 'dungeon_*'. This picks the look of a corpse; whether a death leaves a corpse at all is decided by the global settings.
priorityInt0Highest priority wins when several definitions match the death location.
Campos comunes de TypeWriter (displayName)
CampoTipoPredeterminadoDescripción
displayNameVar<String>—Name shown above the corpse. Use {player} for the dead player's name.PlaceholdersColores

How to use it​

A definition describes how a corpse looks. You can create several and let the world and priority decide which one is used.

  • definitionRef is the model. Leave it empty for the plain player model wearing the victim's skin; pose only applies to that plain model.
  • displayName uses {player} for the owner's name. showDisplayName turns the floating name off.
  • rotationMode: RANDOM, FACE_KILLER (the direction opposite to where the player was looking) or FACE_FORWARD (the direction the player was facing).
  • The death animation fields (playDeathAnimation, deathAnimationName, loopDeathAnimation, deathAnimationSpeed) only apply to model backends that support named animations (BetterModel, BTC Mob NPC, MythicMobs NPC).
  • interactionWidth, interactionHeight and interactionOffset size the invisible box that players click. Enlarge it for a big model.
  • worlds limits the definition to some worlds (empty = all); when several match, the highest priority wins. overrideDuration above 0 replaces the global duration for corpses of this definition.