1

Redstone Command Help

DeamonPrince 8/17/14 12:10 pm
338
8/20/2014 1:43 am
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
Posted by
DeamonPrince
Level 5 : Apprentice Architect
0

  Have something to say?

JoinSign in

4

Skylinerw
08/20/2014 1:43 am
Level 16 : Journeyman System
48productions
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.

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.
1
TheRedSkorpion
08/17/2014 4:40 pm
Level 20 : Expert System
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:
/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
1
48productions
08/17/2014 12:44 pm
Level 29 : Expert System
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.
1
anonpmc1206640
08/17/2014 12:25 pm
Level 12 : Journeyman Miner
[deleted]
1

Welcome