How do I use a testfor for Lives?
//ads -- adsterra.com -- native banner
?>
I want to see if when a decoy player when it loses its lives and it goes to 0, it will do a testfor and when that is finished it will teleport everyone to the spawn and say "This Team Has Won" (I just need help with the testfor)
Best Answer
Instead, make it that when they die, you have a scoreboard that goes up every death.
/scoreboard objectives add {Name} deathCount
To test the deaths:
/testfor @p[score_Score_min={Lives they have}]
Hoped this helped!
EDIT: I hope this is what your after:
/testfor @p[score_Lives_min=0,score_Lives=0]
Pictures about "How do I use a testfor for Lives?"



How do you use Testfor in Minecraft?
How to Enter the CommandHow do you use Testfor items?
The /testfor command became obsolete in Minecraft 1.13, and has been replaced by the /execute command*. It will do the same as typing /testfor @e {SelectedItem:{id:"<item>"}} and then putting a comparator to the command block with the command, and then running the command which you wanna run.How to pass a nicotine test | Nicotine test for Life Insurance
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Andrea Piacquadio, Andrea Piacquadio, Andrea Piacquadio, Karolina Grabowska
