function survivalplus:tools/sanity/shadow/idle
execute if entity @p[distance=..4,scores={sanity=..-50}] run tp @s ^ ^ ^.04
execute if entity @p[distance=4..10,scores={sanity=..-76}] run tp @s ^ ^ ^.04
execute if entity @p[distance=..10,scores={sanity=..-101}] run tp @s ^ ^ ^.06
execute positioned ~-.5 ~ ~-.5 if entity @a[dx=0,dy=1] run function survivalplus:tools/sanity/shadow/touch