Minecraft – way to count the number of blocks a player steps on

minecraft-commandsminecraft-java-edition

Is there any way I can count the number of blocks a player steps on during gameplay and display it in some kind of scoreboard?

Best Answer

There is a tracked stat for distance travelled: stat.walkOneCm, which will let you know how far the player has walked in blocks/100.