Teleport Player

Teleport Player - Person in White Nike Soccer Shoes Standing on Black Floor

I'm making a maze, and at certain parts the players need to be teleported. This is my command so far:

/tp @a [x=-1034, y=34, z=-302 r=2] ~ ~ ~30

So this says, if a player is within 2 blocks of these coordinates then teleport the player 30 blocks south (positive z).

I can't have the command blocks at x=-1034, y=34 and z=-302, which is why that part of the command is necessary.

Can someone tell me if this command exists please!



Best Answer

The reason why it isn't working is because there is a space between the @a and the square brackets.

This command should work.

/tp @a[x=-1034,y=34,z=-302,r=2] ~ ~ ~30



Pictures about "Teleport Player"

Teleport Player - Free stock photo of athlete, fitness, long tennis
Teleport Player - Free stock photo of activity, athlete, boy
Teleport Player - Man in White Jersey Shirt and Pants Playing Baseball



What is the command to teleport a player in Minecraft?

You can teleport to a set of coordinates or teleport another player using the /tp command in Minecraft (see also /teleport command).

What is the teleport command?

To teleport, tap the Chat icon once again, bring up the text box and type /tp YourUsername X Y Z, with X representing the east/west coordinate, Y representing the vertical coordinate and Z representing the north/south coordinate.



HOW TO TELEPORT OBJECTS IN UNITY 🎮 | Teleport Player and GameObjects in Unity | Unity Tutorial




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: cottonbro, ramiz haider, Kindel Media, Mark Milbert