im trying to use a command where a repeating command block teleports someone to a spot but my command doesnt work

im trying to use a command where a repeating command block teleports someone to a spot but my command doesnt work - Close Up Photo of Computer Codes

I was looking for a command and I found this:

/execute @a[x=a,y=b,z=c,r=d] ~ ~ ~ tp @p e f g

Where:

  • a, b, and c are the XYZ coordinates that you want to teleport players from.
  • d is the radius in blocks around that point where players will be selected (min 1)
  • e, f, and g are the XYZ co-ordinates that you want to teleport players to (i.e. the destination)

My command turned out to be:

execute @a[-122,4,-74,999] ~ ~ ~ tp @-124 27 -74

It doesn't work and I don't know why.



Best Answer

Firstly, the command you found is outdated. It is for pre-1.13 versions of Minecraft.

Secondly, the simplest usage to teleport someone to a spot would be this:

tp Steve -124 27 -74

It seems that this is a working solution to your problem.

To only teleport a player's inside the coordinate 122 4 999, use:

tp @a[x=-122,y=4,z=999,dx=0] -124 27 -74



Pictures about "im trying to use a command where a repeating command block teleports someone to a spot but my command doesnt work"

im trying to use a command where a repeating command block teleports someone to a spot but my command doesnt work - Crop hacker silhouette typing on computer keyboard while hacking system
im trying to use a command where a repeating command block teleports someone to a spot but my command doesnt work - From above of crop anonymous male hacker typing on netbook with data on screen while sitting at desk
im trying to use a command where a repeating command block teleports someone to a spot but my command doesnt work - From below of ethnic boy in hoodie controlling robot using panel while standing in light room



How do you activate a repeated command block?

To get a repeating command block, players must use the /give command like so: /give @p minecraft:repeating_command_block <amount> . Players can also change a normal command block into a repeating command block by selecting the option in the command block GUI.

How do you make a command block teleport you to a certain place?

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.

How do Repeating command blocks work?

A repeat command block executes its command once every one game tick (or more\u200c [BEonly]) until no longer activated.



How to fix the infinite teleport loop without loading a backup!




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

Images: Markus Spiske, Anete Lusina, Sora Shimazaki, Vanessa Loring