2

This question already has an answer here:

I'm making a minigame map in Minecraft and I cant figure out how can I test if all players from a particular team are in a particular area using Command Blocks (with a radius of 8 blocks, if all players are present the Command Block should give a Redstone output). Can someone help me by providing the correct Minecraft command?

marked as duplicate by MBraedley, Skylinerw, Dragonrage, GodEmperorDune, Dallium Apr 15 '16 at 2:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Please make an attempt to solve this yourself before asking here. We're volunteers, so don't waste our time without putting in some yourself. – Frank Apr 14 '16 at 18:27
  • The only difference with the linked question is that you also have to include the team in the target selectors. – MBraedley Apr 14 '16 at 20:45
2

There is no such command, but you can use /testfor @a[team=<teamname>,rm=8], and invert the comparator output.

  • I tried ur command ash4fun but it would send signal if any player of the same team goes to that area. I want to send signal only if all playera of a specific team (say hiders) are present in that area. – Kartik Pillai Apr 19 '16 at 10:20
  • 1
    What the command does is looks for anyone outside the specified area, and returns true unless it finds someone – ash4fun Apr 19 '16 at 13:56
  • Okkkkk now to get it thx soooooooooooooo much – Kartik Pillai Apr 19 '16 at 14:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.