Command Blocks are an extremely useful feature, and mapmakers have been using their unique abilities to do some pretty cool things. However, one major limitation of Command Blocks is that they can't target players within a rectangular area, only a circular one.
While targeting players in a spherical area is definitely useful, it has its limitations. Say, for example, a mapmaker wanted to target all players inside a certain room. Since most rooms are not circular, the mapmaker would have to either hope the players were not in the corners of the room or make the room far enough away from everything that they could cover the whole room in a circle without affecting anyone near the room but not inside it. Alternatively, say the mapmaker wanted to target all players above or below a certain y-value. Currently, there is no way to do this.
I propose the addition of six new player-selection arguments: minx, maxx, miny, maxy, minz, and maxz. These would work just as you might expect. @a[minx=10], for example, would affect all players whose x-value is greater than or equal to 10. @p[maxy=250] would affect the nearest player whose y-value is less than or equal to 250.
In addition to the obvious benefit of allowing rectangular selection (by using all six) these arguments would allow new innovations, like teleporting to safety any players who fell into the void. They could even be combined with the existing spherical selection to make domes, rounded cubes, and other shapes. They should also be very easy for Mojang to implement.
In conclusion, I personally think that this should have been around since Command Blocks were first added. In a game centered around cubes, it makes no sense to have circular selection, but not rectangular. These arguments would be very simple to add, and would be very useful. I hope that they, or close equivalents, are added soon.
Thanks! I just don't know why this hasn't been added already. I don't know exactly how player-selection arguments are implemented, but if the implementation is even halfway-decent adding this should take 30 minutes of coding or less.
Rollback Post to RevisionRollBack
I am an obsessive-compulsive torch placer.
To post a comment, please login or register a new account.
While targeting players in a spherical area is definitely useful, it has its limitations. Say, for example, a mapmaker wanted to target all players inside a certain room. Since most rooms are not circular, the mapmaker would have to either hope the players were not in the corners of the room or make the room far enough away from everything that they could cover the whole room in a circle without affecting anyone near the room but not inside it. Alternatively, say the mapmaker wanted to target all players above or below a certain y-value. Currently, there is no way to do this.
I propose the addition of six new player-selection arguments: minx, maxx, miny, maxy, minz, and maxz. These would work just as you might expect. @a[minx=10], for example, would affect all players whose x-value is greater than or equal to 10. @p[maxy=250] would affect the nearest player whose y-value is less than or equal to 250.
In addition to the obvious benefit of allowing rectangular selection (by using all six) these arguments would allow new innovations, like teleporting to safety any players who fell into the void. They could even be combined with the existing spherical selection to make domes, rounded cubes, and other shapes. They should also be very easy for Mojang to implement.
In conclusion, I personally think that this should have been around since Command Blocks were first added. In a game centered around cubes, it makes no sense to have circular selection, but not rectangular. These arguments would be very simple to add, and would be very useful. I hope that they, or close equivalents, are added soon.
I am an obsessive-compulsive torch placer.
I am an obsessive-compulsive torch placer.