mojira.dev
MC-32578

Attribute "knockback_resistance" ineffective against explosions

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

Linked issues

Attachments

Comments 17

The Blast Protection enchantment supposedly reduces explosion knockback...

Is this still a concern in the current Minecraft version 1.8.1 Prerelease 3 / Launcher version 1.5.3 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

No response for over a year.

Confirmed in 1.9.1-pre3. Probably intended.

Confirmed for 1.9.2.

7 more comments

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 21w07a. Video attached.

Can confirm in 1.16.5 and 21w08b.

Adrian Östergård

This is a feature request.

Skylinerw

(Unassigned)

Confirmed

(Unassigned)

attribute, explosion, knockback, knockback_resistance, modifier, resistance

Minecraft 1.6.4, Minecraft 13w38a, Minecraft 13w38b, Minecraft 13w38c, Minecraft 13w39a, ..., 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b

Retrieved