Build a small PVP game in Minecraft 1.16.1 I would like to have a command (s) that could tell whether a player has died and then a message saying who won
There's no command that looks if someone is dead.
/ execute if entity @a [nbt = {Health: 0f}] run command
But it has to be possible somehow, for example with scorebor or something
Of course
There are two ways to test this.
It's also easier with NBTs
You only have the normal death display
Which
There's also a health scoreboard
With scoreboards or with NBTs (see my answer)