#execute if score @s Insomnia matches 72000.. if predicate survivalplus:5chance run scoreboard players remove @s sanity 1
scoreboard players remove @s[predicate=survivalplus:5chance,predicate=survivalplus:light/8] sanity 1
scoreboard players remove @s[predicate=survivalplus:5chance,predicate=survivalplus:light/7] sanity 1
scoreboard players remove @s[predicate=survivalplus:5chance,predicate=survivalplus:light/6] sanity 1
scoreboard players remove @s[predicate=survivalplus:5chance,predicate=survivalplus:light/5] sanity 1
scoreboard players remove @s[predicate=survivalplus:5chance,predicate=survivalplus:light/4] sanity 1
scoreboard players remove @s[predicate=survivalplus:5chance,predicate=survivalplus:light/3] sanity 1
scoreboard players remove @s[predicate=survivalplus:5chance,predicate=survivalplus:light/2] sanity 1
scoreboard players remove @s[predicate=survivalplus:5chance,predicate=survivalplus:light/1] sanity 1
scoreboard players remove @s[predicate=survivalplus:5chance,predicate=survivalplus:light/0] sanity 1
advancement revoke @s only survivalplus:tools/tick/losesanity