Minecraft – Sonic the hedgehog style boost pads in Minecraft

minecraft-commandsminecraft-java-edition

Is there a way using command blocks or plugins to alter a player's momentum (xyz) when they step on a pressure plate? /entitydata works for mobs, but unfortunately it does not affect players.

Best Answer

Use /entitydata to modify the motion tag of the entitiy:

/entitydata @e {Motion:[X,Y,Z]}

Note the XYZ is in double format, example:

/entitydata @e {Motion:[0.0,1.0,0.0]}