tp @s ~ -59 ~
spreadplayers ~ ~ 0 200 under -55 false @s
execute if score @s ghost matches 2.. run scoreboard players set @s ghost 1
execute if score @s ghost matches 1 run function survivalplus:tools/pot/ghostexit
gamemode adventure @s[gamemode=!creative]
function survivalplus:tools/clear_debuffs
execute if block ~ ~-1 ~ air run attribute @s minecraft:safe_fall_distance modifier add -912389712980319 1000 add_value
execute if block ~ ~-1 ~ air run attribute @s minecraft:gravity modifier add -2019738196270891 .2 add_multiplied_total
execute if block ~ ~-1 ~ air run tag @s add skysafe
advancement revoke @s only survivalplus:finale/backrooms/enter
advancement revoke @s only survivalplus:hardmode/void_failsafe
advancement revoke @s only survivalplus:hardmode/wall_failsafe
execute in survivalplus:backrooms if entity @e[tag=backroomexit,distance=..100] run function survivalplus:finale/backrooms/spread