#execute unless entity @e[tag=tickdelay] run summon marker ~ ~ ~ {Tags:[special,tickdelay]}
execute if score @s sanity matches -19..-1 at @s run function survivalplus:tools/sanity/minor
execute if score @s sanity matches -49..-20 at @s run function survivalplus:tools/sanity/low
execute if score @s sanity matches -75..-50 at @s run function survivalplus:tools/sanity/med
execute if score @s sanity matches -100..-76 at @s run function survivalplus:tools/sanity/high
execute if score @s sanity matches ..-101 at @s run function survivalplus:tools/sanity/insane

execute at @s[predicate=survivalplus:backrooms] unless entity @e[tag=smiler,distance=..10] run function survivalplus:tools/sanity/smiler/prespawn