1
Redstone Command Help
I was wondering how i could testfor a players in a 100x100 plot using testfor command to start the game i am making.
Thanks in advance
Thanks in advance
4
48productionssmaxs1
Do that and in the commnad block put /testfor @p[r=100]
That would only work if you are testing for only 1 player.
Use the above circuit (Make sure the command block is in the center of the plot!), but put this command inside instead:
/testfor @a[r=100,c=10] r=100 means that the command block will search for players within a radius of 100. c=10 means that the command block is looking for exactly 10 players. Change the 10 to be however many players you need to start the game you are making!
r=100 + c=10 = The comparator next to the command block will only output a signal if there are 10 players within a 100 block radius of the command block.
There are better ways to do this. This is the easiest to do.
This is incorrect. The "count" parameter is only the maximum, not minimum (and there is no minimum parameter for count). It will output if it finds any number of players, but will cap at 10. You have to use the signal strength itself to determine when there are 10 or more players, but even in that case the "count" tag is useless.
If you are testing is a 100x100 plot, the radius (r) argument will do a circle. You should then use dx, dy and dz do make a search in a volume (cube or prism). Note that the dx, dy and dz can only be positive. Check the wiki for more clear explanation
Let's say the corner with the lowest coord is 0,0,0 and the corner with the hightest coord is 100,256,100 (like 2 opposite corners in a cube), the commad should be:
(I assume your plot is the world heigth so from 0 to 256 or whatever the world heigth is)
the reason why I use the x,y and z argment is because I assume that the command block wont be at that specific location (bottom corner). Hope it helped
Let's say the corner with the lowest coord is 0,0,0 and the corner with the hightest coord is 100,256,100 (like 2 opposite corners in a cube), the commad should be:
/testfor @p[x=0,y=0,z=0,dx=100,dy=256,dz=100](I assume your plot is the world heigth so from 0 to 256 or whatever the world heigth is)
the reason why I use the x,y and z argment is because I assume that the command block wont be at that specific location (bottom corner). Hope it helped
smaxs1
Do that and in the commnad block put /testfor @p[r=100]
That would only work if you are testing for only 1 player.
Use the above circuit (Make sure the command block is in the center of the plot!), but put this command inside instead:
/testfor @a[r=100,c=10] r=100 means that the command block will search for players within a radius of 100. c=10 means that the command block is looking for exactly 10 players. Change the 10 to be however many players you need to start the game you are making!
r=100 + c=10 = The comparator next to the command block will only output a signal if there are 10 players within a 100 block radius of the command block.
There are better ways to do this. This is the easiest to do.
[deleted]

