mojira.dev
MC-182638

Guardians lasers inflict inverted knockback when blocked by a shield

The Bug

When blocking a guardian laser with a shield, the magic penetrates the shield and inflicts damage, but the magic doesn't knock back the player correctly. Instead of knocking the player back, the player is knocked towards the guardian or elder guardian.

Steps to Reproduce

  • Obtain a shield and switch into survival mode.

  • Summon a guardian nearby.

    /summon minecraft:armor_stand ~ ~ ~ {Passengers:[{id:"minecraft:guardian"}]}
  • When the guardian notices you, make sure that you're facing in its direction and start blocking with the shield.

  • When you block its attack using the shield, take note as to whether or not guardians inflict inverted knockback to their opponents when blocking their attack with shields.

Observed Behavior

Guardians inflict inverted knockback to their opponents (the knockback inflicted pushes you closer to the guardian, instead of away from it) when blocking their attack with shields.

Expected Behavior

Guardians would not inflict inverted knockback to their opponents when blocking their attack with shields. Instead, the knockback inflicted from blocking a guardian's attack should push you away from them, not closer to them.

Linked issues

Attachments

Comments 13

Can confirm in 1.16.3.

This might be a consequence of MC-147694.

Can confirm for 20w46a.

Can confirm in 20w51a.

3 more comments

Can confirm in 1.18.2 and 22w18a.

confirmed in 1.12.1 and 24w35a

Shield absolutely has no reason to launch defender forward.

Relates to MC-147694. Mojang wrote attacker.knockback into defender.knockback.

Origin147694.png

seems to be fixed since 26.3 pre-1

Tested this myself and I can confirm this issue is fixed in 26.3 Pre-Release 1. I’m marking this ticket as fixed.

gaspoweredpick

(Unassigned)

Confirmed

Combat, Player

1.15.2, 20w18a, 20w21a, 1.16.1, 1.16.2 Pre-release 1, , 24w35a, 1.21.3, 1.21.4, 1.21.5, 1.21.10

26.3 Pre-Release 1

Retrieved