Score based order of deaths
I'm making a minigame and I want to score my players on how long they survive
There will be 8 players in the game and I want to score them in reverse order of who dies first
E.g.
8th place (1st death): 1 point 7th place: 2 points 2nd place: 7 points 1st place (Did not die): 8 points
So I have figured out the steps of how to achieve this but I am struggling a bit with implementing it so any help would be appreciated
- Scoreboard for detecting when a player is dead
- When someones dies I need some way of telling which place they are in, Not sure how to do this though, Maybe another objective to check how many are dead already or using tags? Then add the points to that players score objective
- Detect when there is only one player who has not died yet and give them 8 points, again using tags or a death count objective, depending on which was used before
- Then reset all of the scoreboards/tags so it can be reused
Edit: Just found out you can track time since last death via scoreboard objective, Not entirely sure if using this would make this any easier though