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

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

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

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

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

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