I'm playing on bedrock and I'm making a UHC map. I have a scoreboard set up where it lists everyone still alive, and once people die they get taken off the scoreboard. I want a command to test when only one person is left on the scoreboard. This last survivor would be the winner and I would like to have a title appear when they win.

For my UHC I have a repeating command block setting the players spawn point inside an enclosed bedrock box. When the player dies and spawns in this box, they land on a pressure plate resetting their score on the alive scoreboard, hence taking their name off the display. After their score is reset, the are teleported into a room where they have the option to spectate.


Use this command /execute store result score players playerCount if entity @e[type=player,scores={deaths=0..0}] what this will do is store the amount of players in a scoreboard. Make sure to add playerCount as a scoreboard

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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