#execute unless score @e[tag=tickdelay,limit=1] bounce matches 1 run tp @s ~ ~ ~ ~.3 ~
#execute if entity @e[tag=tickdelay,scores={bounce=1}] run tp @s ~ ~ ~ ~-.3 ~
execute if predicate survivalplus:1chance run function survivalplus:tools/sanity/shadow/prespawn
execute if score @s[predicate=survivalplus:1chance] sanity matches ..-200 run damage @s 1 generic
execute if predicate survivalplus:1chance run function survivalplus:tools/sanity/sounds/sort
effect give @s darkness 1 0 true
effect give @s blindness 2 0 true
stopsound @s music
stopsound @s record
execute if predicate survivalplus:50chance if predicate survivalplus:1chance run function survivalplus:tools/cursed/cursed
execute if predicate survivalplus:1chance run playsound minecraft:ambient.nether_wastes.additions master @s ~ ~ ~ 2 0
execute if predicate survivalplus:1chance run playsound minecraft:ambient.warped_forest.additions master @s ~ ~ ~ 2 0
execute if predicate survivalplus:50chance if predicate survivalplus:1chance run playsound entity.warden.heartbeat master @s ~ ~ ~ 2 0
execute if predicate survivalplus:2chance run scoreboard players remove @s sanity 1