
# -> Reset adv trigger
advancement revoke @s only overly_realistic:items/consumption/eat_maggot

# -> Sanity RNG
scoreboard players set #or.central_value_set_mental_health OverlyRealistic.General.ArbitraryData 2
execute if score @s OverlyRealistic.Player.Stats.MentalHealth matches 1.. \
    if predicate overly_realistic:items/foods/rotten_flesh_sanity_decrease_rng run \
        function overly_realistic:players/mental_health/decrease_mental_health

# -> Food illness value
scoreboard players add @s OverlyRealistic.Player.FoodIllnessAmount 5

# -> Increase proteins
scoreboard players set #or.central_value_set_proteins OverlyRealistic.General.ArbitraryData 1
function overly_realistic:players/macronutrients/add_proteins

# -> Increase fats
scoreboard players set #or.central_value_set_fats OverlyRealistic.General.ArbitraryData 1
function overly_realistic:players/macronutrients/add_fats
