1

Having trouble using command block to control border. Ideas?

A1can's Avatar A1can12/16/13 11:48 am
1 emeralds 223 2
12/16/2013 11:56 am
RobbieFitzy's Avatar RobbieFitzy
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?
Posted by A1can's Avatar
A1can
Level 4 : Apprentice Architect
2

Create an account or sign in to comment.

2

RobbieFitzy
12/16/2013 11:56 am
Level 6 : Apprentice Archer
RobbieFitzy's Avatar
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
1
ChrisandGeorge
12/16/2013 11:53 am
Level 1 : New Miner
ChrisandGeorge's Avatar
try without the /
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome