Minecraft – How to make people stop running with a command

minecraft-commandsminecraft-java-edition

I'm making a map and when I give them slowness it's still possible for them to walk a little faster (or run with slowness on) but I want them still walking. Can anyone can help me? It has to be a command.

Best Answer

An option would be to detect when a player is sprinting via sprintOnecm statistic and give them a higher slowness effect when they are sprinting such that sprinting and walking would be no different. Just make sure the player can't jump using a high jump boost level.