tag @s add dead
scoreboard players set @s Death 0
gamemode spectator

# -------- Msg ------------
title @s title [{"text":"☠ ","color":"dark_red","bold":false},{"translate":"msg.death.title","color":"red","bold":true},{"text":" ☠","color":"dark_red","bold":false}]
execute if entity @a[tag=!dead] run title @s subtitle [{"text":"[!]","color":"red","bold":true},{"translate":"msg.death.subtitle","color":"gray","bold":false}]
title @s times 10 60 10

execute if entity @a[tag=!dead] run tellraw @s [{"text":"[!]","color":"red","bold":true},{"translate":"msg.death.subtitle","color":"gray","bold":false}]


execute unless entity @a[tag=!dead] run function game:death/game_over
