-
Bug
-
Resolution: Unresolved
-
None
-
1.17.1, 21w43a, 1.18.1, 22w06a, 22w15a, 1.19 Pre-release 4, 1.19, 1.19.4, 23w18a, 1.20.2, 23w44a, 1.20.5, 1.20.6, 24w18a, 1.21.3, 1.21.4 Pre-Release 3
-
None
-
Community Consensus
-
Commands
-
Low
-
Platform
The attribute minecraft:attack_knockback doesn't seem to be working in a consistent way when applying knockback to attacks blocked by a shield. If a mob has any value of attack knockback above 0, the knockback applied to a player blocking isn't proportional to the attribute value. Normal hits work as expected (but for some mobs don't, see MC-269226).
This is not consistent with ravagers and hoglins/zoglins, which have an attack knockback base value above 0 and deal knockback to players blocking with a shield.
How to reproduce
- Summon a husk with an attack_knockback of 5, switch to survival.
/execute summon minecraft:husk run attribute @s minecraft:attack_knockback base set 5
The husk attacks you applying high knockback to you.
If you are blocking with a shield, the husk doesn't apply any knockback.
Expected result
Mobs with an attack knockback value above 0 would knockback players blocking with a shield, like ravagers and hoglins/zoglins.
Observed result
Mobs with attack knockback don't deal increased knockback to players blocking, despite normal hits doing so.
- relates to
-
MC-271698 Ravagers knockback strength to players blocking with a shield is not affected by changing the attack_knockback attribute to different values
- Open