I've got a vanilla server for 1.10 and I already did a scoreboard with two different Teams (red
, blue
). Now I want to check if either a player on team red or a player on team blue dies and to have a redstone output out of it.
Minecraft – How to detect if a player out of one team dies
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – How to set up a scorebord variable to act as a bool and later test for it
- Minecraft – How to make that when a team gets a specific amount of kills the player wins
- Minecraft – How to execute different redstone circuits according to a scoreboard variable
- Minecraft – How to testfor a player positively even if the player is dead
- Minecraft 1.12 reliably detect player-player interaction
- Minecraft – How to set players to different teams
- Minecraft – (Java Minecraft 1.14) How to save a player’s scoreboard team temporarily for later use
Best Answer
Set up an objective to keep track of deaths:
To test if a a player on red team had died, run this command:
To test if a player on blue team had died, run this command:
You'll then probably need to set their
Deaths
back to 0 after doing what you want to do: