execute as @a[team=Ingame,scores={mined=1..}] at @s run scoreboard players remove @s mined 1
execute as @a[team=Ingame,scores={mined=..0}] at @s run effect give @s hunger 1 127 true
execute as @a[scores={Death=1..}] run team join Spectators @s
execute as @a[scores={Death=1..}] run scoreboard players remove Detection LastManStanding 1
execute as @a[scores={Death=1..}] if entity @s run execute as @a at @s run playsound block.note_block.pling master @a ~ ~ ~ 1 2 1
execute as @a[scores={Death=1..}] run scoreboard players reset @s Death
schedule function usdp:hunger_detection_clock 5t