1

Command Block Area Selection

LiquidChildren1's Avatar LiquidChildren16/1/13 1:18 am
1 emeralds 1.6k 8
6/2/2013 12:16 pm
LiquidChildren1's Avatar LiquidChildren1
With a command block, you can specify an x,y,and z coordinate, as well as a radius around it for the command to apply to, like saying /testfor @p[3,65,27,r=10]

But I'm wondering, can you leave out one of the coordinates, to make a cylindrical area of application, rather than a spherical? Like, if you leave out the Y coordinate, will it still affect people with the same X and Z, no matter how high up or down?
Posted by LiquidChildren1's Avatar
LiquidChildren1
Level 25 : Expert Engineer
36

Create an account or sign in to comment.

8

1
06/02/2013 12:16 pm
Level 25 : Expert Engineer
LiquidChildren1
LiquidChildren1's Avatar
Yes that is what I mean, so tht the area of effect will work for any value of Y, which would look like a vertical line, but since a radius is specified, it would be like a cylinder with no maximum and minimum height.

Does this actually work, though?
1
06/02/2013 7:56 am
Level 16 : Journeyman Engineer
atomick86
atomick86's Avatar
Kahanamoku
/testfor @p[3,65,27,r=10]

You mean testfor @p[x=3,y=65,z=27,r=10] right??
then you would instead write:testfor @p[x=3,z=27,r=10]

That's exactly what he means
1
06/02/2013 7:30 am
Level 1 : New Miner
Kahanamoku
Kahanamoku's Avatar
/testfor @p[3,65,27,r=10]

You mean testfor @p[x=3,y=65,z=27,r=10] right??
then you would instead write:testfor @p[x=3,z=27,r=10]
1
06/01/2013 6:59 am
Level 26 : Expert Cake
eccsdee
eccsdee's Avatar
I didn't know you could do that 0_0
1
06/01/2013 6:46 am
Level 22 : Expert Crafter
Neptonic
Neptonic's Avatar
Someone, just go check the wiki...
1
06/01/2013 6:44 am
Level 96 : Overlord Fish
FiskFille
FiskFille's Avatar
No, you can't. Even IF it works, it will think you only specified the X and Y coordinates. That would just break the game.
1
06/01/2013 1:24 am
Level 22 : Expert Crafter
Neptonic
Neptonic's Avatar
I believe that you can leave some coordinates blank and it will TP you in a straight line.
1
06/01/2013 6:33 am
Level 16 : Journeyman Engineer
atomick86
atomick86's Avatar
I think that is true, but as for making it as a cylinder, I doubt you can do that, sorry
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome