scoreboard players add @s[scores={sanity=..19}] sanity 1
scoreboard players add @s[scores={sanity=..19},predicate=survivalplus:25chance] sanity 1
advancement revoke @s only survivalplus:tools/tick/gainsanity