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

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

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

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

# -> 20,000
execute if score #or.global_exh_value OverlyRealistic.General.ArbitraryData matches 20000..29999 run \
    return run \
        item modify entity @s armor.body overly_realistic:hunger/apply_exhaustion_0_5

# -> 10,000
item modify entity @s armor.body overly_realistic:hunger/apply_exhaustion_0_3
