mojira.dev
MC-110243

Sneaking + Hit = Moved Wrongly / No Knockback

If you are sneaking and then get hit, you will be teleported backwards and Moved wrongly will be displayed in the console.
This is critical as it means you can avoid knockback in pvp.

Previously Entity.move had a 1 block buffer in all directions for all Entities. In 1.11, the size of this buffer is set in a field and is higher for horses, endermen, but 0 for players. Setting it to 1 for players removed the issue.

Linked issues

Comments 2

This knockback-cancel caused by sneaking only works when a player is on the ground, by the way.

This is still an issue on 1.16.5.  Hitting a player with a knockback 2 sword while the player is shifting on the edge of a block, hitting the player towards air.  Attached video is on a spigot server, but this issue also occurs on vanilla LAN server: https://www.youtube.com/watch?v=KU8On7tw9M0

md_5

Nathan Adams

Confirmed

knockback, sneak

Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 17w14a, Minecraft 17w15a

Minecraft 1.12 Pre-Release 3

Retrieved