
# -> Edit value
$scoreboard players add @s OverlyRealistic.Player.Stats.MentalHealth $(amount)

# -> Advancement
advancement grant @s only overly_realistic:advancements/livelyhood/path_to_happyness

# -> Clamp
execute if score @s OverlyRealistic.Player.Stats.MentalHealth matches 101.. run \
    scoreboard players set @s OverlyRealistic.Player.Stats.MentalHealth 100
