mojira.dev
MCPE-66473

"fatal" damage filter false positives when entity has armor

The bug

"fatal" damage is a filter used in entity behaviors. It's supposed to detect when the damage dealt is enough to kill the relevant mob. Apparently, this check is done before certain damage reductions, including armor. As a result, it's possible for this filter to pass even if the damage does not kill the mob.

How to reproduce

1. Summon a raid leader:

/summon vindicator ~ ~ ~ minecraft:spawn_as_illager_captain

2. Give it some armor

/replaceitem entity @e[type=vindicator] slot.armor.chest 0 diamond_chestplate

3. Punch it exactly 23 times

→ ❌ You got Bad Omen without killing the mob. If you clear the effect and punch it again, you'll get the effect a second time.

Linked issues

Attachments

Comments 2

Can confirm it's present in the current stable build, 1.16.20.3. Please get this issue resolved!

I cannot reproduce this in 1.19.63. I tried several methods, including giving a pillager 16 damage with the /damage command, then giving it a diamond chestplate, then hitting it with a netherite sword.

tryashtar

(Unassigned)

369975

Confirmed

Windows

armor, damage

1.17.10.20 Beta, 1.16.0.67 Beta, 1.16.0.57 Beta, 1.14.30 Hotfix, 1.14.60 Hotfix, 1.16.100, 1.16.201 Hotfix, 1.16.221 Hotfix, 1.17.2 Hotfix

Retrieved