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
| Name | Type | Description |
|---|---|---|
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
| Key | Type | Default | Description |
|---|---|---|---|
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.
- Set Entity Type Filter to ENDER_DRAGON
- Connect location → Drop Item node
- 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.
- Entity Death Trigger → killer → Is Player (entity)
- Is Player → isPlayer → Branch
- Branch (true) → Player Give Item (use Is Player → player)
- Add a Material node set to DIAMOND, connect name → Player Give Item (material)