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

Attribute "knockback_resistance" ineffective against explosions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.6.4, Minecraft 13w38a, Minecraft 13w38b, Minecraft 13w38c, Minecraft 13w39a, Minecraft 13w39b, Minecraft 13w41a, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 13w47a, Minecraft 13w47b, Minecraft 13w47c, Minecraft 1.7.3, Minecraft 1.7.4, Minecraft 14w02b, Minecraft 14w02c, Minecraft 14w04b, Minecraft 14w05b, Minecraft 14w06a, Minecraft 14w06b, Minecraft 14w11b, Minecraft 14w30c, Minecraft 14w31a, Minecraft 14w32a, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.2, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.2, Minecraft 18w03b, Minecraft 18w10d, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 18w31a, Minecraft 18w32a, Minecraft 1.13.2, Minecraft 19w03c, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2, 20w06a, 1.16.1, 20w28a, 1.16.2 Pre-release 1, 1.16.3, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b
    • Confirmed
    • (Unassigned)

      The bug

      Giving an item a knockback_resistance attribute (set to 100%) will properly protect against forms of knockback such as melee/ranged damage, the Knockback/Punch enchantments and fall damage.

      However, when faced against explosions caused by TNT, creepers, beds, or Ghast fireballs, the player is still knocked back as if they have no resistance.

      How to reproduce

      1. Ensure you are in survival or adventure mode:
        /gamemode survival
      2. Give yourself 100% knockback resistance:
        /attribute @s generic.knockback_resistance base set 1
      3. Give yourself 100% damage resistance (for easier testing):
        /effect give @s resistance 1000 4 true
      4. Summon a pillager and allow it to attack you:
        /summon pillager

        You are not knocked back by the pillager's arrows

      5. Summon a creeper and allow it to explode next to you:
        /summon creeper

        You are knocked back by the explosion

            Unassigned Unassigned
            skylinerw [Mod] Skylinerw
            Votes:
            19 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: