
# -> Globalize value
scoreboard players operation #or.global_exh_value OverlyRealistic.General.ArbitraryData = @s OverlyRealistic.Player.HasBeenHealed_Exhaustion

# -> Reset counter
scoreboard players reset @s OverlyRealistic.Player.HasBeenHealed_Exhaustion

# -> 6+
execute if score #or.global_exh_value OverlyRealistic.General.ArbitraryData matches 6.. run \
    return run \
        item modify entity @s armor.body overly_realistic:hunger/apply_exhaustion_1_0

# -> 4-5
execute if score #or.global_exh_value OverlyRealistic.General.ArbitraryData matches 4..5 run \
    return run \
        item modify entity @s armor.body overly_realistic:hunger/apply_exhaustion_0_8

# -> 1-3
execute if score #or.global_exh_value OverlyRealistic.General.ArbitraryData matches 1..3 run \
    return run \
        item modify entity @s armor.body overly_realistic:hunger/apply_exhaustion_0_4
