So the problem I have here is I want to teleport a player standing at 1 34 70
to 273 33 -5
.
I have tried using a clock with testfor @a [x=1.3,y=34,z=70]
hooked up to a tp @p 273 33 -5
but when I go to 1 34 70
I don't get teleported.
minecraft-commandsminecraft-java-edition
So the problem I have here is I want to teleport a player standing at 1 34 70
to 273 33 -5
.
I have tried using a clock with testfor @a [x=1.3,y=34,z=70]
hooked up to a tp @p 273 33 -5
but when I go to 1 34 70
I don't get teleported.
Best Answer
I can see several issues with your setup.
testfor
here. The beauty of target selectors is that they work the same in all commands, includingtp
.@a
and the[]
(the target selector arguments)All things considered, the command you are looking for is simply
or using 4 argument shorthand: