Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-158245

Fire Aspect enchantment from mobs can set you on fire even when blocking with a shield

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.14.4, 19w34a, 1.15.2, 20w06a, 20w10a, 20w15a, 20w16a, 20w17a, 20w18a, 20w22a, 1.16 Pre-release 2, 1.16.1, 20w30a, 1.16.2 Pre-release 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Release Candidate 1, 1.16.4, 20w49a, 20w51a, 21w03a, 21w05a, 21w05b, 21w06a, 21w07a, 21w15a, 1.17, 1.17.1, 1.18.1, 1.18.2, 1.19.2, 1.19.4, 23w17a, 1.20 Release Candidate 1, 1.20
    • None
    • Confirmed
    • Survival
    • Combat

      The bug

      In combat, using a shield against a mob that has an enchanted sword with the fire aspect enchantment still sets the player on fire. However, the damage from the mob itself is fully blocked while the effect of the enchantment can still damage the player via fire damage.

      How to reproduce

      1. When summoning a mob with a weapon:
        /summon husk ~ ~1 ~ {HandItems:[{Count:1,id:wooden_sword,tag:{Enchantments:[{id:fire_aspect,lvl:2}]}},{}]}
        
      2. Get a shield
      3. Go to survival mode hold right-click, and let the mob attack you
        The player catches on fire.

      Code analysis

      Code analysis by JingyBreadMan can be found in this comment.

        1. 2023-10-08_14-05-52.mp4
          1.96 MB
        2. MC-158245.mp4
          4.81 MB
        3. MC-158245.png
          MC-158245.png
          562 kB

            slicedlime [Mojang] slicedlime
            drownedzombie01 [Mod] DrownedZombie
            Votes:
            14 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: