The bug
If you sprint attack an entity and hold down your sprint key (for me, it's SHIFT
), you will continue to sprint, but the scoreboard will not increase. It's only when you resprint that it will start increasing again.
Linked issues
Comments
15w43a
Confirmed for 1.13.1.
How to reproduce
Add a scoreboard, set it display and add yourself to the scoreboard with score of 0.
/scoreboard objectives add attackSprint minecraft.custom:minecraft.sprint_one_cm /scoreboard objectives setdisplay sidebar attackSprint /scoreboard players add @p attackSprint 0
Spawn a cow, start attacking it while sprinting.
Observe how the score will stop increasing after the first hit while you are still sprinting.
confirmed for 1.15 and 1.15.1
Confirmed for 1.17.1
Confirmed. I suspect this is because attacking ends your sprint when not holding down the sprint key.