Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-66473

"fatal" damage filter false positives when entity has armor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • None
    • 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
    • Confirmed
    • Windows
    • 369975

      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.

            tryashtar [Mod] tryashtar
            Votes:
            27 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: