How to check if mule is moving?

i wanted to make stamina for them but there is no scoreboard that can track distance traveled on them unlike for horses
Continue to help post