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

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

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

# -> Remove debuff
attribute @s attack_speed modifier remove overly_realistic:low_carbs_attack_speed_debuff
