Teleportation Coordinates Question [duplicate]

Teleportation Coordinates Question [duplicate] - Crop faceless multiethnic interviewer and job seeker going through interview

How do I make a teleporter that doesn't need a pressure plate to activate?

In other words I would like to execute a command which is executed when one steps in a certain location. For example, a command that would test if someone is somewhere and then teleport them somewhere else.

I have a few ideas, but I do not know how I know to complete the assignment. Maybe these commands?

/execute <playername> ~ ~ ~ /tp <playername> ~ ~ ~
/execute <playername> ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ minecraft:redstone


Best Answer

The /execute command only needs to be used when the command sender or origin of execution needs to change, which is not the case here.

The selector parameters x, y, and z for coordinates, and r for radius, will be included in the selector for /tp. For example, the following teleports players who are within 1 block of (10, 64, 10) to (15, 64, 15).

/tp @a[x=10,y=64,z=10,r=1] 15 64 15



Pictures about "Teleportation Coordinates Question [duplicate]"

Teleportation Coordinates Question [duplicate] - Two Women Holding Pen
Teleportation Coordinates Question [duplicate] - Teacher Asking a Question to the Class
Teleportation Coordinates Question [duplicate] - Silhouette of Person Sitting Beside Body of Water



Is teleportation in Minecraft a cheat?

With the Tp command in Minecraft, you can teleport anyone or anything anywhere. If you're playing the Java version, you can even teleport between the Overworld and the Nether. Use the Tp cheat the same way you use any other Minecraft cheat: Enable cheats in your world's settings.

What is the command for teleporting to coordinates?

You can teleport to any location as long as you have its coordinates. To do it, type your command like this: /tp X Y Z. So for example, if you're trying to teleport to the location 70, 70, 70, you'll type: /tp 70 70 70.

How do you use a command block to teleport someone with a command block?

Type this command in when having the command block GUI open /teleport @p <x> <y> <z> . Then, activate the command block with redstone (including buttons, levers, and pressure plates), and they will be sent to their destination. The player can set up multiple different teleports.



Make A Teleport For Almost Any Game




More answers regarding teleportation Coordinates Question [duplicate]

Answer 2

/execute (playername) (x) (y) (z) /tp (playername) (x) (y) (z) (as you said) should work just fine! That is the easy way; you could use the other one you said too, just hook it up to a redstone mechanism where the redstone placed by the /fill command is next to a redstone block which will activate the redstone, and have a command block containing just the /tp command being powered upon the redstone being placed.

If you want this to be a one-time thing, then don't worry about this, but if you want this to be reused then add an extra command block being powered the redstone filling the redstone to air (preferably before a repeater; make this command block powered after the /tp one) so it can be placed again upon the same player walking in that spot.

I recommend the /execute (playername) (x) (y) (z) /tp (playername) (x) (y) (z) one as it is much easier and only uses one command (depended on the clock to keep it running; if you use a /setblock or /fill clock it is a minimum of three command blocks.

Bear in mind you don't have to do a certain player; instead of /execute (playername)... you can have @p (nearest player to the command block; useful if you place the command block close to the position where the player needs to be), @a (useful if you want all the players in the world/on the server to be teleported to the same place) or @e (useful if you want it to be able to be activated by entities (e.g. Items, minecarts or mobs).

You can also make it even more specific when using @e! Add some tags after it to change the name of the entity needed, the type of entity needed and so much more!

/execute @e[type=Zombie,name=Bob] (x) (y) (z) /tp @e[type=Zombie,name=Bob] (x) (y) (z)

With that command, say you had more than one zombie named Bob. If one walked in those coordinates, all zombie Bobs would be teleported. If you only want the one that stepped in the position to be teleported, put the command block one block underneath the position and do this:

/execute @e[type=Zombie,name=Bob] (x) (y) (z) /tp @e[type=Zombie,name=Bob,range=3]

Of course, this won't work when more than one of the Bobs are within three blocks of the command block, but the command can be changed accordingly.

Hope this helps!

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

Images: Alex Green, Tirachard Kumtanom, Max Fischer, Download a pic Donate a buck! ^