I'm currently building an adventure map for PvP. I would like to have a function that executes a command as soon as a player dies. To be more precise, a player dies and the title "THE WINNER IS: Player Name" is displayed on the screen for all participants. Show that with the titles, etc. I know everything, all I want to do is detect that a player has died.
Does something like that work with command blocks? Alternatively, does anyone know a plugin for Java Minecraft 1.16.1 that can do that?
/ scoreboard objectives add death death count
You can do it with a scoreboard.