1
How whould i teleport the player 5 blocks behind?
How whould i teleport the/a player 5 blocks behind using a command block?
Create an account or sign in to comment.
4
4
Depends on what you mean by "behind". If you simply mean teleporting the player in a given direction, then _Blip_ is correct.
However, if you mean behind as in actually behind say a mob/entity, then use ^ instead of ~.
Note that if either command is put into a command block just like that, then it will run relative to the command block. If you want it to run relative to an entity, then you will have to execute at said entity.
Hope this helps! :)
/tp <Selector> ~5 ~ ~
However, if you mean behind as in actually behind say a mob/entity, then use ^ instead of ~.
/tp <Selector> ^ ^ ^-5
Note that if either command is put into a command block just like that, then it will run relative to the command block. If you want it to run relative to an entity, then you will have to execute at said entity.
/execute as <Selector> at @s run tp @s ^ ^ ^-5
Hope this helps! :)
1
Thanks!!
1
I had no idea ^s did something :D
1
like this: /tp name ~5 0 0