
# --> Store 

# -> Leather
execute store result storage overly_realistic:lay_figure_menus resource_cost_iron_chain_mesh int 1 run \
    scoreboard players get @s OverlyRealistic.World.LayFigure_ResourceRequirement_IronChainMesh


# -> Pay resource cost
function overly_realistic:players/non_setting_triggers/events/event_100048/build_cost_pay with storage overly_realistic:lay_figure_menus


# -> Create item
function overly_realistic:general/custom_blocks/lay_figure/give_armor/leggings/chainmail_leggings

# -> Open success UI
dialog show @s overly_realistic:lay_figure/success_screens/build_armor_success

# -> Increase blacksmithing XP
function overly_realistic:players/wisdom/blacksmithing/add_to_skill_xp_c_craft_equipment
