1
Having trouble using command block to control border. Ideas?
Hi Everyone,
I am currently designing an adventure map and I need to prevent players from climbing above walls. I am using a rotating signal and a command block to periodically check an 80 block diameter (40 block radius). The command block is in the center of the circle. Below is the syntax that I am using:
/tp @p[x=83,y=115,z=79,r=41,rm=3] 96.5 70 79.5
Does anyone know if the radius is actually circular? I would expect a 40x40x40 block to be policed by the command block. Any player that goes into that area will be teleported back to the start point. Unfortunately it is not working. I could be 20 blocks away and when I go above the allowed area nothing happens. Oddly enough if I go about 3 blocks higher it catches me. Almost as if the radius is not measuring the way I would expect.
Any ideas?
I am currently designing an adventure map and I need to prevent players from climbing above walls. I am using a rotating signal and a command block to periodically check an 80 block diameter (40 block radius). The command block is in the center of the circle. Below is the syntax that I am using:
/tp @p[x=83,y=115,z=79,r=41,rm=3] 96.5 70 79.5
Does anyone know if the radius is actually circular? I would expect a 40x40x40 block to be policed by the command block. Any player that goes into that area will be teleported back to the start point. Unfortunately it is not working. I could be 20 blocks away and when I go above the allowed area nothing happens. Oddly enough if I go about 3 blocks higher it catches me. Almost as if the radius is not measuring the way I would expect.
Any ideas?
Create an account or sign in to comment.
2
![RobbieFitzy's Avatar](https://static.planetminecraft.com/files/avatar/742935.png)
A1canHi Everyone,
I am currently designing an adventure map and I need to prevent players from climbing above walls. I am using a rotating signal and a command block to periodically check an 80 block diameter (40 block radius). The command block is in the center of the circle. Below is the syntax that I am using:
/tp @p[x=83,y=115,z=79,r=41,rm=3] 96.5 70 79.5
Does anyone know if the radius is actually circular? I would expect a 40x40x40 block to be policed by the command block. Any player that goes into that area will be teleported back to the start point. Unfortunately it is not working. I could be 20 blocks away and when I go above the allowed area nothing happens. Oddly enough if I go about 3 blocks higher it catches me. Almost as if the radius is not measuring the way I would expect.
Any ideas?
Maybe you should check the starting height [Y] then compare it to the other height that you want max height, try maybe 15 blocks for y difference, and maybe 50x50x50 instead to make sure
![ChrisandGeorge's Avatar](https://static.planetminecraft.com/files/avatar/1461548_0.jpg)
try without the /