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.
There are numerous ways to do this, but each one has its disadvantages...
Give the player blindness using the
/effectcommand. Blinded players can't sprint. However, the player will also have limited vision.
Drain the player's hunger. This cannot be instant though, but again you can use the
/effectcommand to give them hunger.
Just give the player a high slowness level. They can still sprint, but at a certain level sprinting will still be really slow like normal walking.
Or just use RikerW's method, but also give the player a "corrupt" jump boost effect to disable the player from jumping. Use levels 128–250, according to the wiki.