scoreboard players remove @s lives 1
execute as @s[scores={lives=1..}] run function mctsts:game/respawn_init
execute as @s[scores={lives=1..}] run function mctsts:game/death_message
execute as @s[scores={lives=..0}] at @s run tp @s @r[gamemode=adventure,distance=0.001..]
execute as @s[scores={lives=..0}] run function mctsts:game/elimination_message
gamemode spectator @s
clear @s minecraft:fishing_rod
clear @s minecraft:carved_pumpkin
execute at @s run kill @e[type=minecraft:fishing_bobber,distance=..0.1]
tp @s @r[gamemode=adventure]