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

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

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

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

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

# -> 10-33
item modify entity @s armor.body overly_realistic:hunger/apply_exhaustion_0_1
