
# -> Add to forge
scoreboard players add @s OverlyRealistic.World.HeatedWroughtIron_Player_ForgePercent 5

# -> Add extra to forge if player is using an iron forging hammer
execute if items entity @s weapon.mainhand *[custom_data~{IsForgingHammer:1b,forging_hammer_type:"iron"}] run \
    scoreboard players add @s OverlyRealistic.World.HeatedWroughtIron_Player_ForgePercent 5

# -> Clamp
scoreboard players set @s[scores={OverlyRealistic.World.HeatedWroughtIron_Player_ForgePercent=101..}] OverlyRealistic.World.HeatedWroughtIron_Player_ForgePercent 100
