Reproduce:
/scoreboard objectives add sprint stat.sprintOneCm
/scoreboard objectives setdisplay sidebar sprint
Hit a mob while running, be sure to hold sprint key, the score stops increasing after you hit it.
Press sprint.
Press forward.
Don't release sprint.
Hit mob.
You still sprint, but stat.sprintOneCm stops counting.
Linked issues
Comments 10
You are still running after hitting a mob. You can tell that by observing your moving speed. It's faster than walking. How is that not counted as sprinting distance? Doesn't make sense imo.
no, you actually stop sprinting (at least I am)
press sprint
press forward
release sprint
hit mob
you walk
You remind me an important detail I forgot to mention. I was holding the sprint key. If you hold it while running, you still have the same speed after hitting. I always thought that is intended, is it not?
Hmm... even if that's the case, I don't have to do extra inputs to keep myself running. Shouldn't the score continue to increase after the brief period?
Relates to MC-69459
Dupe of MC-56229
because you stop running when hitting a mob, start sprinting again, and it'll increase normally