Describes the source of damage from an Entity.

Enumeration Members

anvil: "anvil"

Remarks

Damage caused by a falling anvil.

blockExplosion: "blockExplosion"

Remarks

Damage caused from a non-Entity explosion. For example, an exploding bed.

campfire: "campfire"
charging: "charging"

Remarks

Unused.

contact: "contact"

Remarks

Damage caused by physically touching an Entity or Block. For example, touching a Sweet Berry bush or Pufferfish.

drowning: "drowning"

Remarks

Damage caused by an Entity being out of air and inside a liquid block.

entityAttack: "entityAttack"

Remarks

Damage caused by an Entity attack.

entityExplosion: "entityExplosion"

Remarks

Damage caused by an Entity explosion. For example, a Creeper or Wither.

fall: "fall"

Remarks

Damage caused by falling onto the ground.

fallingBlock: "fallingBlock"

Remarks

Damage caused by falling blocks. Note: Anvils and Stalactites have their own damage causes.

fire: "fire"

Remarks

Damage caused by catching on fire.

fireTick: "fireTick"

Remarks

Damage caused by burning over time.

fireworks: "fireworks"

Remarks

Damage caused by fireworks.

flyIntoWall: "flyIntoWall"

Remarks

Damage caused by flying into a wall at high speed while gliding with Elytra.

freezing: "freezing"

Remarks

Damage caused by staying inside a Powder Snow block.

lava: "lava"

Remarks

Damage caused by touching a Lava block.

lightning: "lightning"

Remarks

Damage caused by being struck by lightning.

magic: "magic"

Remarks

Damage caused by magical attacks. For example, Evoker Fang or Conduit Block.

magma: "magma"

Remarks

Damage caused by touching a Magma block.

none: "none"

Remarks

Damage caused by no source. For example, from a command or script.

override: "override"

Remarks

Damage caused by an indirect source. For example, setting a mob's health to 0 in a behavior pack.

piston: "piston"

Remarks

Damage caused by a Piston.

projectile: "projectile"

Remarks

Damage caused by a projectile.

ramAttack: "ramAttack"
selfDestruct: "selfDestruct"
sonicBoom: "sonicBoom"
soulCampfire: "soulCampfire"
stalactite: "stalactite"

Remarks

Damage caused by a falling Stalactite block.

stalagmite: "stalagmite"

Remarks

Damage caused by touching a Stalagmite block.

starve: "starve"

Remarks

Damage caused over time by having an empty hunger bar.

suffocation: "suffocation"

Remarks

Damage caused by an Entity being out of air and inside a non-liquid block.

suicide: "suicide"

Remarks

Damage caused by an Entity killing itself. For example, from the /kill command.

temperature: "temperature"

Remarks

Damage caused by an Entity being in an inhabitable climate. For example, a Snow Golem in a biome with a temperature greater than 1.

thorns: "thorns"

Remarks

Damage caused by the Thorns armor enchantment and by the Guardian thorns effect.

void: "void"

Remarks

Damage caused over time by falling into the void.

wither: "wither"

Remarks

Damage caused by the Wither effect. For example, from touching a Wither Rose.