Testfor team score not working

Testfor team score not working - Free stock photo of adult, banking, boss

I'm developing a Minecraft mini-game and I want to execute a command when a team reach 0 points.

I've created a dummy objective:

/scoreboard objective add health dummy Health

And 3 teams:

/scoreboard teams add A-team teama
/scoreboard teams add B-team teamb
/scoreboard teams add C-team teamc

All teams start with 1000 points and depending what they do their points will be decreased, I want to execute a command when one team reachs 0 points. I'm using this but it doesn't work:

/testfor @a[team=A-team, score_health_min=0]
  • I'm using Minecraft 1.9.1

Thanks in advance and sorry for my bad English.






Pictures about "Testfor team score not working"

Testfor team score not working - People having a Meeting
Testfor team score not working - Girl in White Long Sleeve Shirt Sitting on Black Office Rolling Chair
Testfor team score not working - Man in Black Suit Jacket Sitting Beside Woman in Beige Blazer





Comparator Testfor Problem fix




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Pavel Danilyuk, Pavel Danilyuk, Vlada Karpovich, Vlada Karpovich