Mojira Archive
MC-158245

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

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.

Fixed

DrownedZombie

[Mojang] slicedlime

2019-08-02, 04:26 AM

2024-04-30, 11:47 AM

2024-04-30, 11:47 AM

14

7

Confirmed

Combat

1.14.4 - 1.201.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

24w18a