
# -> Add value
scoreboard players operation @s OverlyRealistic.Player.Stats.Proteins += #or.central_value_set_proteins OverlyRealistic.General.ArbitraryData

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

# -> Clamp amount
execute if score @s OverlyRealistic.Player.Stats.Proteins matches 51.. run \
    scoreboard players set @s OverlyRealistic.Player.Stats.Proteins 50

# -> Remove debuff
attribute @s attack_damage modifier remove overly_realistic:low_proteins_attack_damage_debuff
