Description
The minecraft.custom:minecraft.sprint_one_cm randomly fails to increase some ticks while sprinting.
Expected Behavior
When sprinting at a constant speed across flat terrain, the minecraft.custom:minecraft.sprint_one_cm scoreboard objectives should increase constantly each tick.
Actual Behavior
The objectives randomly fail to increase on some ticks, at seemingly inconsistent times.
Possible Relationship
Possibly related to MC-56229, though it occurs even if you don't attack. It occurs even if you do nothing except hold down sprint and forward, in fact.
Reproduction Setup
Create a world. Add an objective called Sprinting of type minecraft.custom:minecraft.sprint_one_cm, and an objective called RunTime of type dummy. Then set up three command blocks which run this chain every tick:
execute as @a[scores={RunTime=1..}] if score @s Sprinting <= @s RunTime run tellraw @s ["Sprinting: ",{"score":{"name":"@s","objective":"Sprinting"}}," | RunTime: ",{"score":{"name":"@s","objective":"RunTime"}}]
execute as @a if score @s Sprinting <= @s RunTime run scoreboard players set @s Sprinting 0
execute as @a run scoreboard players operation @s RunTime = @s Sprinting
Now sprint. You'd expect to only get any tellraw output when you stop sprinting, but in fact you get the output at random values of Sprinting, and it resets at those random times, because it hasn't increased since the last tick even though you're sprinting at a constant speed. (See attached screenshot for some example output.)
Another way to test is to simply tellraw to players with a Sprinting score of 0 and then reset the score to 0 after, then sprint; you expect no output while sprinting as it should always be set to at least 1 each tick while sprinting, but you'll occasionally still get output anyway as it fails to increase from 0. That's just harder to see when the output is all the same and constantly flowing, though.
Is this still an issue in the latest 1.14 development snapshot?