The player's X and Z motion will remain at 0.0d unless the player jumps while sprinting, then it updates to the actual motion for about 1-3 seconds, then goes back to 0.0d.
I really have no other way of explaining this then to say just try it out. Use this command in a repeating command block.
execute as @a store result score @s [score] run data get entity @s Motion[0] 100000
Set the [score] to your sidebar, and try just running around. The score will stay on 0 until you start sprint-jumping.
Thank you for your report!
We're tracking this issue as MC-122814, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as Won't Fix, which means this is considered a bug but won't be fixed. The description of that ticket or the comments might explain the rationale. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit