Corpse Definition
Corpse Model Definition
Fields
| Field | Type | Default | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
definitionRef | Ref<out EntityDefinitionEntry> | — | Entity definition used for the corpse model. Empty = plain player model wearing the victim's skin. | ||||||||
showDisplayName | Var<Boolean> | true | Show the floating name above the corpse. | ||||||||
verticalOffset | Var<Double> | 0.0 | Vertical offset from the death location, in blocks. | ||||||||
rotationMode | CorpseRotationMode | RANDOM | How the corpse is rotated. | ||||||||
pose | CorpsePose | LYING | Body pose. Only used by the plain player model; model backends pose themselves.
|
| Field | Type | Default | Description |
|---|---|---|---|
pose | EntityPose | — | — |
playDeathAnimationVar<Boolean>truedeathAnimationNameVar<String>deathloopDeathAnimationVar<Boolean>truedeathAnimationSpeedVar<Double>1.0interactionWidthDouble1.0interactionHeightDouble1.0interactionOffsetDouble0.0overrideDurationVar<Int>0worldsList<String>emptypriorityInt0Common TypeWriter fields (displayName)
| Field | Type | Default | Description |
|---|---|---|---|
displayName | Var<String> | — | Name shown above the corpse. Use {player} for the dead player's name.PlaceholdersColors |
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.
definitionRefis the model. Leave it empty for the plain player model wearing the victim's skin;poseonly applies to that plain model.displayNameuses{player}for the owner's name.showDisplayNameturns the floating name off.rotationMode:RANDOM,FACE_KILLER(the direction opposite to where the player was looking) orFACE_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,interactionHeightandinteractionOffsetsize the invisible box that players click. Enlarge it for a big model.worldslimits the definition to some worlds (empty = all); when several match, the highestprioritywins.overrideDurationabove0replaces the globaldurationfor corpses of this definition.