#Mixed coordinates

1 messages · Page 1 of 1 (latest)

trail coral
#

So normally you can't do /tp ~1 ^5 ~ because minecraft doesn't allow mixed coordinates, is there a simple way to bypass this?. In the circumstance im using, the command i am trying to achieve is /tp @e[tag=1-1] ^-1 ~5 ^

Is there any simple way of doing it instead of doing /data or /scoreboard

simple yarrow
#

you could perhaps use a macro that stores one coordinate?

#

are you trying to maintain the z value?

#

because you could store the z, run the tp command, and tp then to subtract your current z value from the old one and then run tp @s ~ ~ ~$(old-new-value)

icy hazel
#

execute positioned ~ ~5 ~ run tp @s ^-5 ^ ^

#

for example

trail coral
#

wow...

trail coral
#

thanks!

#

I tested it out and ofcourse it works

#

its really simple, thanks for the help!