Triggers trigger/entity_death

Entity Death Trigger

Fires when any entity (mob or player) dies. Optionally filter by entity type.

Note: To handle player deaths specifically use the Player Death Trigger instead. The killer output is an entity — use the Is Player node to check whether it was a player and extract the Player reference.

Outputs

NameTypeDescription
exec exec Fires when an entity dies.
entity entity The entity that died.
killer entity Entity or player who landed the killing blow (null if not killed by an entity).
entityType string Entity type name (e.g. ZOMBIE, SKELETON).
location location Location where the entity died.

Properties

KeyTypeDefaultDescription
entityType string "" Only fire for this entity type. Leave blank for any entity.

Examples

Reward for killing a dragon

Drop an extra reward when an ENDER_DRAGON dies.

  1. Set Entity Type Filter to ENDER_DRAGON
  2. Connect location → Drop Item node
  3. Add a Material node set to ELYTRA, connect name → Drop Item (material)

Reward the killer if it was a player

Give a diamond to the player who killed a mob, ignore kills by other mobs.

  1. Entity Death Trigger → killer → Is Player (entity)
  2. Is Player → isPlayer → Branch
  3. Branch (true) → Player Give Item (use Is Player → player)
  4. Add a Material node set to DIAMOND, connect name → Player Give Item (material)