
# -> Tag item ent
tag @s add OverlyRealistic.ForgedToolNewProcess

# -> Increase blacksmithing XP
execute on origin run \
    function overly_realistic:players/wisdom/blacksmithing/add_to_skill_xp_c_heat_cool_equipment

# --> Modify item

$execute if items entity @s contents iron_sword run \
    item modify entity @s contents overly_realistic:forgery/iron_sword/iron_tool_forge_$(process)
$execute if items entity @s contents iron_axe run \
    item modify entity @s contents overly_realistic:forgery/iron_axe/iron_tool_forge_$(process)
$execute if items entity @s contents iron_pickaxe run \
    item modify entity @s contents overly_realistic:forgery/iron_pickaxe/iron_tool_forge_$(process)
$execute if items entity @s contents iron_shovel run \
    item modify entity @s contents overly_realistic:forgery/iron_shovel/iron_tool_forge_$(process)
$execute if items entity @s contents iron_hoe run \
    item modify entity @s contents overly_realistic:forgery/iron_hoe/iron_tool_forge_$(process)
