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

Torabi

The Blast Protection enchantment supposedly reduces explosion knockback...

galaxy_2alex

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.

user-f2760

No response for over a year.

KingSupernova

Confirmed in 1.9.1-pre3. Probably intended.

TheMrZZ

Confirmed for 1.9.2.

tryashtar

Confirmed up through 17w06a.

CreeperMagnet_

Affects up to 18w10d.

CreeperMagnet_

Affects 1.13-pre6. Please keep the issue updated accordingly.

Also, change the example command to

/give @a bedrock{
	AttributeModifiers:[
		{
			AttributeName:generic.knockbackResistance,
			Name:generic.knockbackResistance,
			Amount:1,
			Operation:0,
			UUIDMost:10,
			UUIDLeast:10			
		}
	]
}

as that is proper format for 1.13.

gaspoweredpick

Can confirm for 1.13.2 and 19w03c

Iosiv Visokogorskiy

Can you reproduce this bug in 1.16 pre release 5?

j_p_smith

Confirmed in 1.16.1 and 20w28a. Updated command:

/attribute @s generic.knockback_resistance base set 1
Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w07a. Video attached.

Avoma

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