
# -> If block below is hot then proceed
execute unless block ~ ~-0.5 ~ #overly_realistic:can_smelt_on run \
    return fail

# -> If timer is over the limit then modify item
execute if score @s OverlyRealistic.General.ArbitraryData matches 2400.. run \
    return run \
        execute as @s[tag=!OverlyRealistic.ForgedToolNewProcess] run \
            function overly_realistic:general/forgery/iron_tools/set_iron_tool_new_process {process:"heated"}

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

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

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