
# -> Add to value
$scoreboard players add @s OverlyRealistic.Player.Stats.Intelligence $(amount)

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

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