Mojira Archive
MC-267436

Cannot move while sneaking when player's generic.step_height ≥(Collidable block's hitbox total height under the player)+1.5

When player's generic.step_height is greater than or equal to ((Collidable block's hitbox total height under the player)+1.5) blocks, they can't move while sneaking.

Steps to reproduce:

1.Create a normal superflat world (4 blocks thick) and run the command /attribute @s minecraft:generic.step_height base set 5.5

(5.5 can be replaced by a larger number)

2.Press shift and W(Sneak button and move forward button).

Observed results:

You can't move forward when you are sneaking.

Expected results:

You can move forward when you are sneaking.

Code Analysis is in the comments.

 

Duplicate

COMETC2021A1

2023-12-19, 07:18 AM

2023-12-19, 10:25 AM

2023-12-19, 10:25 AM

0

4

Unconfirmed

(Unassigned)

23w51b

-