Enumeration: EntityDamageCause
Describes the source of damage from an Entity.
Enumeration Members
anvil
anvil:
"anvil"
Remarks
Damage caused by a falling anvil.
blockExplosion
blockExplosion:
"blockExplosion"
Remarks
Damage caused from a non-Entity explosion. For example, an exploding bed.
campfire
campfire:
"campfire"
charging
charging:
"charging"
Remarks
Unused.
contact
contact:
"contact"
Remarks
Damage caused by physically touching an Entity or Block. For example, touching a Sweet Berry bush or Pufferfish.
drowning
drowning:
"drowning"
Remarks
Damage caused by an Entity being out of air and inside a liquid block.
entityAttack
entityAttack:
"entityAttack"
Remarks
Damage caused by an Entity attack.
entityExplosion
entityExplosion:
"entityExplosion"
Remarks
Damage caused by an Entity explosion. For example, a Creeper or Wither.
fall
fall:
"fall"
Remarks
Damage caused by falling onto the ground.
fallingBlock
fallingBlock:
"fallingBlock"
Remarks
Damage caused by falling blocks. Note: Anvils and Stalactites have their own damage causes.
fire
fire:
"fire"
Remarks
Damage caused by catching on fire.
fireTick
fireTick:
"fireTick"
Remarks
Damage caused by burning over time.
fireworks
fireworks:
"fireworks"