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?
-
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
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. – Tom Apr 19 '16 at 10:20
-
1What 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
-