ServerEvents.recipes(event => {


    const recipes_smithing = [
        {//copper_backpack
            output: 'sophisticatedbackpacks:copper_backpack',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:backpack',
            input: 'create:copper_sheet',
            id: 'chunklock_create:smithing/copper_backpack'
        },
        {//iron_backpack
            output: 'sophisticatedbackpacks:iron_backpack',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:copper_backpack',
            input: 'create:iron_sheet',
            id: 'chunklock_create:smithing/iron_backpack'
        },
        {//gold_backpack
            output: 'sophisticatedbackpacks:gold_backpack',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:iron_backpack',
            input: 'create:golden_sheet',
            id: 'chunklock_create:smithing/gold_backpack'
        },
        {//diamond_backpack
            output: 'sophisticatedbackpacks:diamond_backpack',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:gold_backpack',
            input: 'minecraft:diamond',
            id: 'chunklock_create:smithing/diamond_backpack'
        },
        {//netherite_backpack
            output: 'sophisticatedbackpacks:netherite_backpack',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:diamond_backpack',
            input: 'minecraft:netherite_ingot',
            id: 'chunklock_create:smithing/netherite_backpack'
        },
         {//advanced_compacting_upgrade
            output:'sophisticatedbackpacks:advanced_compacting_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:compacting_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_compacting_upgrade'
        },
        {//advanced_deposit_upgrade
            output:'sophisticatedbackpacks:advanced_deposit_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:deposit_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_deposit_upgrade'
        },
        {//advanced_feeding_upgrade
            output:'sophisticatedbackpacks:advanced_feeding_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:feeding_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_feeding_upgrade'
        },
        {//advanced_filter_upgrade
            output:'sophisticatedbackpacks:advanced_filter_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:filter_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_filter_upgrade'
        },
        {//advanced_magnet_upgrade
            output:'sophisticatedbackpacks:advanced_magnet_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:magnet_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_magnet_upgrade'
        },
        {//advanced_pickup_upgrade
            output:'sophisticatedbackpacks:advanced_pickup_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:pickup_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_pickup_upgrade'
        },
        {//advanced_refill_upgrade
            output:'sophisticatedbackpacks:advanced_refill_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:refill_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_refill_upgrade'
        },
        {//advanced_restock_upgrade
            output:'sophisticatedbackpacks:advanced_restock_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:restock_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_restock_upgrade'
        },
         {//advanced_smelting_upgrade
            output:'sophisticatedbackpacks:auto_smelting_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:smelting_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_smelting_upgrade'
        },
        {//advanced_void_upgrade
            output:'sophisticatedbackpacks:advanced_void_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:void_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_void_upgrade'
        },
         {//advanced_smoking_upgrade
            output:'sophisticatedbackpacks:auto_smoking_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:smoking_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_smoking_upgrade'
        },
         {//advanced_blasting_upgrade
            output:'sophisticatedbackpacks:auto_blasting_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:blasting_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_blasting_upgrade'
        },
         {//advanced_pump_upgrade
            output:'sophisticatedbackpacks:advanced_pump_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:pump_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_pump_upgrade'
        },
         {//xp_pump_upgrade
            output:'sophisticatedbackpacks:xp_pump_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:advanced_pump_upgrade',
            input: 'create:experience_block',
            id: 'chunklock_create:smithing/xp_pump_upgrade'
        },
        {//advanced_tool_swapper_upgrade
            output:'sophisticatedbackpacks:advanced_tool_swapper_upgrade',
            template:'sophisticatedbackpacks:upgrade_base',
            upgrade:'sophisticatedbackpacks:tool_swapper_upgrade',
            input: 'minecraft:gold_block',
            id: 'chunklock_create:smithing/advanced_tool_swapper_upgrade'
        },
        {//blast_furnace
            output:'minecraft:blast_furnace',
            template:'#forge:raw_materials',
            upgrade:'minecraft:furnace',
            input: 'minecraft:coal_block',
            id: 'chunklock_create:smithing/blast_furnace'
        },
        {//smoker
            output:'minecraft:smoker',
            template:'#forge:raw_foods',
            upgrade:'minecraft:furnace',
            input: 'minecraft:campfire',
            id: 'chunklock_create:smithing/smoker'
        },
        
    ];
    recipes_smithing.forEach((recipe) => {
        event.smithing(recipe.output,recipe.template,recipe.upgrade, recipe.input).id(recipe.id);
    });

    event.smithing(
        'minecraft:netherite_ingot',                     // arg 1: output
        'chunklock_create:heart', // arg 2: the smithing template
        'minecraft:iron_ingot',                          // arg 3: the item to be upgraded
        'minecraft:black_dye'                            // arg 4: the upgrade item
      )






})