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

"Hold" option behaves differently for sprinting and sneaking

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.19.2, 22w42a, 22w43a, 23w05a
    • Confirmed
    • Input, Player

      The bug

      The Controls menu allows for sprinting and sneaking to be switched between "hold" (default) and "toggle" modes. However, the behaviour of the "hold" mode is not alike for each mode; sneaking will only last until the held key is released, whereas sprinting will persist past that point.

      How to reproduce

      1. Have both "Sprint" and "Sneak" set to "Hold" in Options > Controls
      2. Start walking
      3. While in the middle of walking, hold down the assigned sneaking key
      4. Note how the player's movement changes for the duration the key is held for
      5. Release the assigned sneaking key
      6. Note how the player's movement changes after the key is released while the player continues to move
      7. Repeat steps 2-6, replacing the sneak key with the sprint key

      Expected results

      The player's movement would be consistent between sneaking and sprinting according to the following:

      • Prior to holding key: normal walking
      • While holding key: modified movement
      • After releasing key: normal walking

      Actual results

      Sneaking follows the above criteria just fine:

      • Prior to holding key: normal walking
      • While holding key: sneaking
      • After releasing key: normal walking

      However, sprinting deviates from these requirements at the end:

      • Prior to holding key: normal walking
      • While holding key: sprinting
      • After releasing key: sprinting

      How to fix

      As the current sprinting behaviour is effectively normalized at this point, it may be advisable to implement it as a new, third toggleable behaviour type (perhaps named "Persist"?) rather than forcing it to match sneaking. Sprinting would be this new third type by default, whereas sneaking would remain the traditional "Hold" (but could be changed to "Persist" by a player if desired).

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: