#Teleportation in a specific area

1 messages · Page 1 of 1 (latest)

opaque imp
#

I want the player to teleport (insert coordinates here) when going into a specific area (Heres one of the commands ive tried: execute as @a[x=-15,y=14,z=966,dx=2,dy=2,dx=0] at @s run tp ~-19 ~-6 ~7) And is there a way to rotate the player 90 degrees when tp'ing?

digital fieldBOT
#

-# (helpers summoned) <@&1166082198152159386> <@&1202694677766348840>

tired trench
#

I mean in theory that looks like it should work fine, as long as you're actually inside that area.

You can rotate the player as they teleport by doing /tp @s <coordinates> <horizontal rotation> <vertical rotation>

It won't work without the @s in the tp command, and the two rotation values do support tilde notation, so you could do ~90 ~ to rotate them 90 degrees but keep them looking up/down the same amount they were looking

opaque imp
#

The text is red in the command block so that is very weird

#

I figured out what was wrong, i mistyped one letter and have spent a long time trying to fix it lol