
# -> If block is cold then proceed
execute unless block ~ ~ ~ #overly_realistic:can_unheat_on run \
    return fail

# -> If timer is over the limit then modify item
execute if score @s OverlyRealistic.General.ArbitraryData matches 3400.. run \
    return run \
        function overly_realistic:general/forgery/iron_tools/set_iron_tool_new_process {process:"unheated"}

# -> Advancement
execute on origin run \
    advancement grant @s only overly_realistic:advancements/iron_age/forging/ice_cold

# -> Increase timer
scoreboard players add @s OverlyRealistic.General.ArbitraryData 1

# -> Particle
particle campfire_cosy_smoke ~ ~0.1 ~ 0.1 0.05 0.1 0.01 1 normal @a
