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

Holding Ctrl to sprint then attacking causes the sprint distance statistic to not increment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.17.1
    • None
    • Confirmed
    • (Unassigned)

      When holding Ctrl to sprint, the minecraft.custom:minecraft.sprint_one_cm statistic increments as normal. However, if the player attacks while sprinting using this method, then they will still be sprinting after the attack, however the score will no longer increment until the player stops sprinting and then starts sprinting again.

      Steps to Reproduce:

      1. Create a scoreboard objective to track the player sprinting.

      /scoreboard objectives add sprintDist minecraft.custom:minecraft.sprint_one_cm
      

       2. Display the objective on the sidebar.

      /scoreboard objectives setdisplay sidebar sprintDist
      

      3. Equip the player with a weapon and summon an enemy.

      /give @s iron_sword
      /summon spider

      4. Attack the enemy while sprinting by holding the Ctrl key. Keep the Ctrl key pressed at all times and observe that the score stops incrementing after the attack lands.

      5. Also observe that the score will never increment until the player stops sprinting completely (and then starts sprinting again), either by releasing the W key or by the sprint being interrupted (e.g. by running into a wall).

      Note that this bug does not occur if the player double taps W or taps Ctrl to sprint as, in both cases, the player will stop sprinting as soon as they land the attack.

            Unassigned Unassigned
            darkstar634 Dark Star
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: