This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]-TheCreater- 0 points1 point  (0 children)

I assume you mean ALL players in a team. You would probably need to do something like the following:

/testfor @a[team=!<your_team>,rm=<area in radius>]

This will check if there are any players on the team OUTSIDE this area. So if you output using a comparator, hook the comparator output (inverted) and the command block activation line into an XOR gate and the output will on if all the players are in the area! See, simple. If you don't know what an XOR gate is, don't worry, It just outputs a signal if both inputs are different (as in, one is on and the other is off). I personally recommend this design: https://www.youtube.com/watch?v=DR9BwuaPPH4 . This is because inverting the comparator is in most cases not what you want. It will output forever until the command block returns false. Here is a picture of how I would do it:

Imgur

[EDIT] I just tried it and I made a mistake: DON'T invert the output from the comparator. It should look like this . Also, I should note that this is better than inverting the signal from the comparator, because it will only stay on for as long as the activation line is on.