Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-267436

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 23w51b
    • None
    • Windows 11,Java 17
    • Unconfirmed
    • (Unassigned)

      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.

       

            Unassigned Unassigned
            COMETC2021A1 COMETC2021A1
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: