So i'm trying to make a command block that will only tp the player if they are within a certain radius of the command block, sorta like.
Will only tp "Dinodaw" if "Dinodaw" is within 10 blocks of the command block
I can't seem to figure it out any help would be nice.
Will only tp "Dinodaw" if "Dinodaw" is within 10 blocks of the command block
I can't seem to figure it out any help would be nice.
7
/tp @p[r=10] y, x, z
R = Radius
R = Radius
What i did is: /tp @p x, y, z
Or try this one:
/tp @a[r=10,name=dinodaw] x y z
Regards,
Mr Chucky
/tp @a[r=10,name=dinodaw] x y z
Regards,
Mr Chucky
Thanks everyone that replied, I'll have to try that.
you guys are saying the commands and not also the redstone if you want it so you dont have to pull a lever or something you will have 2 command blocks #1 will be a the command /testfor @p[x,y,z,RADIUSHERE] then #2 will have the command /tp @p X Y Z
the first command block of the /testfor command will have to have a repeater so that it keeps going off testing for the player in the radius you set then attach a comparator to the /testfor command block also so that when you are in the radius it will send of a redstone signal to the next command block then the next command block will will tp you to wherever you set it to ,now if you dont know what X Y and Z is their the coordinates of the minecraft world to see them you simply press F3 then look for the X Y and Z coordinates those Numbers will be where you teleport to Hope That Helps You
the first command block of the /testfor command will have to have a repeater so that it keeps going off testing for the player in the radius you set then attach a comparator to the /testfor command block also so that when you are in the radius it will send of a redstone signal to the next command block then the next command block will will tp you to wherever you set it to ,now if you dont know what X Y and Z is their the coordinates of the minecraft world to see them you simply press F3 then look for the X Y and Z coordinates those Numbers will be where you teleport to Hope That Helps You
/tp @a[r=10] x y z
will teleport all players within 10 blocks to x, y, z
will teleport all players within 10 blocks to x, y, z
/tp Dinodaw[r=10] tp location
