scoreboard players remove .respawn death 1
effect give @e slowness 1 10 true
execute if score .respawn death matches 1..30 run tp @a 45.99 -59 16.99 180 0
execute if score .respawn death matches 30 run function main:hub/start
execute if score .respawn death matches 1..30 run item replace entity @a armor.head with paper[item_model="minecraft:blank",custom_name='" "',equippable={slot:"head",camera_overlay:"custom/overlay/black_screen",equip_sound:"item.armor.equip_leather"}] 1
execute if score .respawn death matches 1 as @a at @s run function main:hub/death/end
execute if score .respawn death matches 1.. run schedule function main:hub/death/tick 1t