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
- Ensure you are in survival or adventure mode:
/gamemode survival
- Give yourself 100% knockback resistance:
/attribute @s generic.knockback_resistance base set 1
- Give yourself 100% damage resistance (for easier testing):
/effect give @s resistance 1000 4 true
- Summon a pillager and allow it to attack you:
/summon pillager
→
You are not knocked back by the pillager's arrows - Summon a creeper and allow it to explode next to you:
/summon creeper
→
You are knocked back by the explosion
- Invalid
[Mod] Skylinerw- 19
- 14
- Confirmed
- (Unassigned)
- attribute explosion knockback knockback_resistance modifier resistance
1.6.4 - 21w08b
1.6.4 13w38a 13w38b 13w38c 13w39a 13w39b 13w41a 1.7.1 1.7.2 13w47a 13w47b 13w47c 1.7.3 1.7.4 14w02b 14w02c 14w04b 14w05b 14w06a 14w06b 14w11b 14w30c 14w31a 14w32a 1.9.1-pre3 1.9.2 1.10.2 16w32a 16w32b 16w33a 1.11.2 17w06a 1.12.2 18w03b 18w10d 1.13-pre6 1.13 18w31a 18w32a 1.13.2 19w03c 19w12b 19w13b 19w14a 19w14b 1.14-pre2 20w06a 1.16.1 20w28a 1.16.2-pre1 1.16.3 20w51a 21w03a 1.16.5 21w05b 21w06a 21w07a 21w08b
Created Issue:
Attribute "knockbackResistance" Inaffective Against Explosions
Giving an item a 'knockbackResistance' 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.
Giving an item a 'knockbackResistance' 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.
EDIT:
An example command to obtain an item with the proper knockback resistance:
/give @a bedrock 1 0 {
{ AttributeName:generic.knockbackResistance, Name:generic.knockbackResistance, Amount:1, Operation:0, UUIDMost:10, UUIDLeast:10 }
AttributeModifiers:[]
}
Giving an item a 'knockbackResistance' 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.
EDIT:
An example command to obtain an item with the proper knockback resistance:
/give @a bedrock 1 0 {
AttributeModifiers:[{AttributeName:generic.knockbackResistance,Name:generic.knockbackResistance,Amount:1,Operation:0,UUIDMost:10,UUIDLeast:10}]
}Giving an item a 'knockbackResistance' 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.
EDIT:
An example command to obtain an item with the proper knockback resistance:
/give @a bedrock 1 0 {AttributeModifiers:[
{AttributeName:generic.knockbackResistance,Name:generic.knockbackResistance,Amount:1,Operation:0,UUIDMost:10,UUIDLeast:10}]}
Giving an item a 'knockbackResistance' 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.
EDIT:
An example command to obtain an item with the proper knockback resistance:
/give @a bedrock 1 0 {AttributeModifiers:[
{AttributeName:generic.knockbackResistance,Name:generic.knockbackResistance,Amount:1,Operation:0,UUIDMost:10,UUIDLeast:10}]}
Giving an item a 'knockbackResistance' 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.
EDIT:
An example command to obtain an item with the proper knockback resistance:
/give @a bedrock 1 0 { AttributeModifiers:[ { AttributeName:generic.knockbackResistance, Name:generic.knockbackResistance, Amount:1, Operation:0, UUIDMost:10, UUIDLeast:10 } ] }
relates to
Giving an item a 'knockbackResistance' 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.
EDIT:
An example command to obtain an item with the proper knockback resistance:
/give @a bedrock1 0{ AttributeModifiers:[ { AttributeName:generic.knockbackResistance, Name:generic.knockbackResistance, Amount:1, Operation:0, UUIDMost:10, UUIDLeast:10 } ] }
Giving an item a 'knockbackResistance' 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.
EDIT:
An example command to obtain an item with the proper knockback resistance:
/give @a bedrock{ AttributeModifiers:[ { AttributeName:generic.knockbackResistance, Name:generic.knockbackResistance, Amount:1, Operation:0, UUIDMost:10, UUIDLeast:10 } ] }The bug
Giving an item a knockbackResistance 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.
EDIT:
An example command to obtain an item with the proper knockback resistance:
/give @a bedrock{ AttributeModifiers:[ { AttributeName:generic.knockbackResistance, Name:generic.knockbackResistance, Amount:1, Operation:0, UUIDMost:10, UUIDLeast:10 } ] }
Attribute "knockbackResistance"InaffectiveAgainstExplosionsAttribute "knockbackResistance" 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.
EDIT:
An example command to obtain an item with the proper knockback resistance:
/give @a bedrock{ AttributeModifiers:[ { AttributeName:generic.knockbackResistance, Name:generic.knockbackResistance, Amount:1, Operation:0, UUIDMost:10, UUIDLeast:10 } ] }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
- Ensure you are in survival or adventure mode:
/gamemode survival- Give yourself 100% knockback resistance:
/attribute @s generic.knockback_resistance base set 1- Give yourself 100% damage resistance (for easier testing):
/effect give @s resistance 1000 4 true- Summon a pillager and allow it to attack you:
/summon pillager→
You are not knocked back by the pillager's arrows
- Summon a creeper and allow it to explode next to you:
/summon creeper→
You are knocked back by the explosion
Attribute "knockbackResistance" ineffective against explosionsAttribute "knockback_resistance" ineffective against explosions
relates to
relates to
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.
Confirmed up through 17w06a.
Affects up to 18w10d.
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.
Can confirm for 1.13.2 and 19w03c
Can you reproduce this bug in 1.16 pre release 5?
Confirmed in 1.16.1 and 20w28a. Updated command:
Can confirm in 21w03a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 21w07a. Video attached.
Can confirm in 1.16.5 and 21w08b.
This is a feature request.