Hits and damage

Hit events

Event Runs when
When player hits A player damages a mob, animal, or player
When mob hits A mob in Mobs damages a mob, animal, or player
When entity is hurt Any mob, animal, or player takes damage

Leaving Mobs empty matches every mob, animal, and player.

On When player hits, Hit with filters for melee attacks or projectiles shot by the player, either of any projectile type or a specific item (such as a custom arrow or thrown snowball).

When mob hits covers both melee attacks and projectiles. Unwired entity inputs on steps after it target the entity that was hit; wire Attacker into a step to act on the attacking mob instead. Hit entity position is where the hit entity stands, not the attacker.

On When entity is hurt, Hurt by filters by environmental damage type: fall, fire (including lava), drowning, explosion, or projectile. To handle attacks dealt by a player or mob, use When player hits or When mob hits.

Modifying or canceling a hit

These steps modify the active hit when run from one of the events above:

Step Effect
Change damage Multiplies, adds to, or overrides the hit’s damage. Multiplying by 0.5 halves it; setting it to 0 lets the knockback and hit land without dealing damage.
Cancel event Cancels the hit completely.
Damage When targeting the hit entity, adds extra damage to the same hit while keeping its attacker.
Kill When targeting the hit entity, deals lethal damage attributed to the same attacker. Shields and Totems of Undying can still block or save against it.

For example, to halve fall damage, use When entity is hurt with Hurt by set to fall, wired to Change damage.

Deaths

When entity dies runs when a mob, animal, or player dies. Running Cancel event inside it prevents the death and keeps the entity alive.

When player kills runs when a player deals the killing blow to a mob, animal, or player. Killed entity position is where the killed entity died; wire Player into a Position input for where the player stands.

Kill with How set to remove despawns a mob silently without death animations or drops. Players cannot be silently removed and are killed normally.