Knockback enchantment bypasses the knockback resistance attribute
Expectations: When changing the attribute "generic.knockbackResistance" to base:1.0, it should make the mob not being affected by any knockback.
Bug: When a mob has the knockback resistance set to 1.0, it can still be affected by knockback from swords with the knockback enchantment on.
How to reproduce bug/how I found the bug:
1. Run the command "summon Witch ~ ~1 ~ {Attributes:[
,
{Name:generic.knockbackResistance,Base:1.0},
{Name:generic.maxHealth,Base:400.0},
{Name:generic.followRange,Base:20}]}" in a command block.
You will then get a witch, with no movement, doesn't get affected by the knockback your fists deal, a health amount of 200 hearts, and follows players up to 20 blocks. So far everything is as it should.
2. Enchant a diamond sword with knockback 2, and hit the witch. The witch will now fly away a few blocks, which it shouldn't be able to do.
Final summary: Giving a witch full knockback resistance will still be bypassed by the knockback enchantment.
Environment
Windows 7
Created Issue:
Knockback enchantment bypasses the knockback resistance attribute
Expectations: When changing the attribute "generic.knockbackResistance" to base:1.0, it should make the mob not being affected by any knockback.
Bug: When a mob has the knockback resistance set to 1.0, it can still be affected by knockback from swords with the knockback enchantment on.
How to reproduce bug/how I found the bug:
{Name:generic.movementSpeed,Base:0.001}
1. Run the command "summon Witch ~ ~1 ~ {Attributes:[,
{Name:generic.knockbackResistance,Base:1.0},
{Name:generic.maxHealth,Base:400.0},
{Name:generic.followRange,Base:20}]}" in a command block.
You will then get a witch, with no movement, doesn't get affected by the knockback your fists deal, a health amount of 200 hearts, and follows players up to 20 blocks. So far everything is as it should.2. Enchant a diamond sword with knockback 2, and hit the witch. The witch will now fly away a few blocks, which it shouldn't be able to do.
Final summary: Giving a witch full knockback resistance will still be bypassed by the knockback enchantment.
Environment
Windows 7
- Unresolved
- Open
- Unconfirmed
- Creative
- Attribute Knockback NBT-tags generic.knockbackResistance
- 1.7.4
A comment with security level 'global-moderators' was removed.
Entities that have a knockbackResistance of 1.0 still get knocked back when shot by a bow with Punch enchantment. I also tested this with the Knockback enchantment on a sword, but in that case it worked as expected.
Expected result:
Entities that have knockbackResistance of 1.0 (100% chance of resistance) should not get knocked back by a bow with Punch enchantment.
Actual result:
Entities with knockbackResistance of 1.0 get knocked back by a bow with Punch enchantment.
How to reproduce:
1. Get a bow with Punch enchantment.
2. Summon in an entity with knockbackResistance of 1.0.
/summon minecraft:creeper ~ ~ ~ {Attributes:[{Name:generic.knockbackResistance,Base:1.0d}]}
3. Shoot the entity with the bow and you'll see it getting knocked back.
I've tested this with zombies, skeletons, creepers and blazes. Don't have time to test the other entities at the moment of writing this, but I'm expecting the same bugged result.
I couldn't find this bug being reported anywhere. I searched for well over 20 minutes.
The closest case I found was related to Knockback enchantment bypassing knockbackResistance, MC-45077, but that got fixed.
Is this still a concern in the current Minecraft version 14w11b / Launcher version 1.3.11 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.
This issue is still relevant, just tested it in the 14w11b snapshot. Post updated.
Is this still a concern in the current Minecraft version 14w21b / Launcher version 1.4.4 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.
This bug still exists in Minecraft version 14w21b/ Launcher version 1.4.4. Post updated.
Thread updated, due to issue still occuring in Minecraft version 14w30c.
Thread updated. Issue still existing in latest Minecraft snapshot.
Updated - Still an issue in 1.8.1.
i keep on getting iuess on when i try and load up the game i keep on getting crash reports from them
I'm unable to reproduce this bug, maybe it already has been fixed? Please test again in the upcoming snapshot (15w46a)
Fixed somewhere between 15w45a and 1.8.1.