1

How whould i teleport the player 5 blocks behind?

idkmanXDDDlelXD's Avatar idkmanXDDDlelXD8/22/21 2:28 am
1 emeralds 125 4
8/22/2021 6:24 am
idkmanXDDDlelXD's Avatar idkmanXDDDlelXD
How whould i teleport the/a player 5 blocks behind using a command block?
Posted by idkmanXDDDlelXD's Avatar
idkmanXDDDlelXD
Level 1 : New Miner
1

Create an account or sign in to comment.

4

4
08/22/2021 4:14 amhistory
Level 29 : Expert Engineer
SUPERIONtheKnight
SUPERIONtheKnight's Avatar
Depends on what you mean by "behind". If you simply mean teleporting the player in a given direction, then _Blip_ is correct.
/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
08/22/2021 6:24 am
Level 1 : New Miner
idkmanXDDDlelXD
idkmanXDDDlelXD's Avatar
Thanks!!
1
08/22/2021 4:18 am
Level 42 : Master Pixel Puncher
_Blip_
_Blip_'s Avatar
I had no idea ^s did something :D
1
08/22/2021 3:58 am
Level 42 : Master Pixel Puncher
_Blip_
_Blip_'s Avatar
like this: /tp name ~5 0 0
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome