DeathCause

is an enumerator that is used to define the cause of death of an entity, and to use as a condition requirement for a or.

Values

 * The entity died due to being hit by an arrow.


 * The entity died by a specific.


 * The entity died due to getting hit by lightning.


 * The entity died from falling damage.


 * The entity died as a result of drowning.


 * The entity died from an anvil falling on top of them.


 * The entity died from a block (other than an anvil) falling on top of them.


 * The entity died from damage caused by the Thorns enchantment.


 * The entity died from suffocation (being stuck inside solid blocks)


 * The entity died from taking damage by touching a Cactus.


 * The entity died from taking damage by standing on top of a Magma Block.


 * The entity died from taking damage by being in direct contact with Lava.


 * The entity died from taking damage by standing in fire.
 * Not to be confused with the entity itself being on fire. See .


 * The entity died from taking damage from being on fire.


 * The entity died from poison caused by a Cave Spider.


 * The entity died from poison caused by a Potion.


 * The entity died from poison caused by eating poisonous food (Spider Eye, Poisonous Potato, Pufferfish).


 * The entity died from potion damage (Instant Damage-effect potions)


 * The entity died from taking damage caused by the Wither status effect.


 * The entity died as a result of colliding with too many entities due to the maxEntityCramming game rule.


 * The entity died from an explosion caused by an End Crystal.


 * The entity died from an explosion caused by a Creeper.


 * The entity died from an explosion caused by a Charged Creeper.


 * The entity died from an explosion caused by the Wither.


 * The entity died from an explosion caused by using a bed in the Nether or the End.


 * The entity died from an explosion caused by a primed TNT block.


 * The entity died from an explosion caused by a fireball fired by a Ghast.


 * The entity died from an explosion caused by a Wither Skull.


 * The entity died from an explosion caused by a Firework rocket.