onEvent('recipes', event =>{

    // chests
    Ingredient.of('#quark:revertable_chests')
              .stacks
              .forEach(stack => {
    event.shaped(stack, [
        'BBB',
        'B B',
        'BBB'
    ],{
        B: '#minecraft:planks'
    })})
    // Rats dragon wing
    event.shaped('2x rats:dragon_wing', [
        'NNN',
        'WWN',
        '  W'
    ],{
        N: /iceandfire:dragonscales/,
        W: 'minecraft:blaze_rod'
    })

    // Withering blaze rod
    event.shaped('2x kubejs:withering_blazed_rod', [
        '  N',
        ' W ',
        'W  '
    ],{
        N: 'create_stuff_additions:blazing_alloy',
        W: 'iceandfire:witherbone'
    })
    
    //Blaze ingot
    event.shaped('silentgear:blaze_gold_ingot', [
        'AAA',
        'AAA',
        'AAA'
    ],{
        A: 'silentgear:blaze_gold_nugget'
    })

    // Farmers delight sweet berry cheesecake
    event.shaped('farmersdelight:sweet_berry_cheesecake', [
        'BBB',
        'BBB',
        'CPM'
    ],{
        B: '#forge:berries',
        C: '#forge:cheese',
        M: '#forge:milk',
        P: /farmersdelight:pie_crust/
    })
    event.shaped('farmersdelight:sweet_berry_cheesecake', [
        'BBB',
        'BBB',
        'MPC'
    ],{
        B: '#forge:berries',
        C: '#forge:cheese',
        M: '#forge:milk',
        P: /farmersdelight:pie_crust/
    })

    // CREATE CRAFTING:
    // Mixing:
    // Netherite ingot
    event.recipes.create.mixing('minecraft:netherite_ingot', [
        'minecraft:netherite_scrap',
        'minecraft:netherite_scrap',
        'minecraft:netherite_scrap',
        'minecraft:netherite_scrap',
        'minecraft:gold_ingot',
        'minecraft:gold_ingot',
        'minecraft:gold_ingot',
        'minecraft:gold_ingot'
    ]).heated()

    // Blaze gold
    event.recipes.create.mixing('silentgear:blaze_gold_ingot', [
        'minecraft:blaze_powder',
        'minecraft:blaze_powder',
        'minecraft:blaze_powder',
        'minecraft:blaze_powder',
        'minecraft:gold_ingot'
    ]).heated() 
    
    // Mechanical Crafting:
    // Dragon upgrade
    event.recipes.create.mechanical_crafting('rats:rat_upgrade_dragon', [
        ' CCC ',
        'CPIPC',
        'CPRPC',
        'CPFPC',
        ' CCC ' 
    ],{
        C: /iceandfire:dragonscale_.*/,
        P: 'rats:dragon_wing',
        R: 'rats:rat_upgrade_asbestos',
        I: 'rats:rat_upgrade_flight',
        F: 'rats:rat_upgrade_warrior'
    })

    // Jet chestplate
    event.recipes.create.mechanical_crafting('create_stuff_additions:encased_jet_chestplate', [
        'ANNND',
        'FIWIF',
        ' ICI ' 
    ],{
        N: 'create:brass_sheet',
        I: 'create:brass_ingot',
        F: 'create:encased_fan',
        D: 'rats:dragon_wing',
        C: 'create:precision_mechanism',
        W: 'create:large_cogwheel',
        A: 'kubejs:phantom_wing'   
    })

    // Ice&Fire Tools:
    // Ice sword
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_ice_sword', [
        'I',
        'I',
        'I',
        'N',
        'N' 
    ],{
        N: 'kubejs:withering_blazed_rod',
        I: 'iceandfire:dragonsteel_ice_ingot'
    })

    // Ice pick
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_ice_pickaxe', [
        '  I  ',
        ' III ',
        'IINII',
        '  N  ',
        '  N  ' 
    ],{
       N: 'kubejs:withering_blazed_rod',
       I: 'iceandfire:dragonsteel_ice_ingot'
    })

    // Ice axe
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_ice_axe', [
        'I I',
        ' I ',
        'INI',
        ' N ',
        ' N ' 
    ],{
       N: 'kubejs:withering_blazed_rod',
       I: 'iceandfire:dragonsteel_ice_ingot'
    })

    // Ice shovel
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_ice_shovel', [
        ' I ',
        'III',
        ' N ',
        ' N ',
        ' N ' 
    ],{
       N: 'kubejs:withering_blazed_rod',
       I: 'iceandfire:dragonsteel_ice_ingot'
    })

    // Ice hoe
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_ice_hoe', [
        'III  ',
        '  I  ',
        '  N  ',
        '  N  ',
        '  N  ' 
    ],{
       N: 'kubejs:withering_blazed_rod',
       I: 'iceandfire:dragonsteel_ice_ingot'
    })

    // Fire sword
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_fire_sword', [
        'I',
        'I',
        'I',
        'N',
        'N' 
    ],{
        N: 'kubejs:withering_blazed_rod',
        I: 'iceandfire:dragonsteel_fire_ingot'
    })

   // Fire pick
   event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_fire_pickaxe', [
        '  I  ',
        ' III ',
        'IINII',
        '  N  ',
        '  N  ' 
    ],{
        N: 'kubejs:withering_blazed_rod',
        I: 'iceandfire:dragonsteel_fire_ingot'
    })
    
    // Fire axe
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_fire_axe', [
        'I I',
        ' I ',
        'INI',
        ' N ',
        ' N ' 
    ],{
        N: 'kubejs:withering_blazed_rod',
        I: 'iceandfire:dragonsteel_fire_ingot'
    })

    // Fire shovel
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_fire_shovel', [
        ' I ',
        'III',
        ' N ',
        ' N ',
        ' N ' 
    ],{
        N: 'kubejs:withering_blazed_rod',
        I: 'iceandfire:dragonsteel_fire_ingot'
    })

    // Fire hoe
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_fire_hoe', [
        'III  ',
        '  I  ',
        '  N  ',
        '  N  ',
        '  N  ' 
    ],{
        N: 'kubejs:withering_blazed_rod',
        I: 'iceandfire:dragonsteel_fire_ingot'
    })

    // Lighting sword
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_lightning_sword', [
        'I',
        'I',
        'I',
        'N',
        'N' 
    ],{
        N: 'kubejs:withering_blazed_rod',
        I: 'iceandfire:dragonsteel_lightning_ingot'
    })

   // Lighting pick
   event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_lightning_pickaxe', [
        '  I  ',
        ' III ',
        'IINII',
        '  N  ',
        '  N  ' 
    ],{
        N: 'kubejs:withering_blazed_rod',
        I: 'iceandfire:dragonsteel_lightning_ingot'
    })

    // Lighting axe
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_lightning_axe', [
        'I I',
        ' I ',
        'INI',
        ' N ',
        ' N ' 
    ],{
        N: 'kubejs:withering_blazed_rod',
        I: 'iceandfire:dragonsteel_lightning_ingot'
    })
    
    // Lighting shovel
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_lightning_shovel', [
        ' I ',
        'III',
        ' N ',
        ' N ',
        ' N ' 
    ],{
        N: 'kubejs:withering_blazed_rod',
        I: 'iceandfire:dragonsteel_lightning_ingot'
    })

    // Lighting hoe
    event.recipes.create.mechanical_crafting('iceandfire:dragonsteel_lightning_hoe', [
        'III  ',
        '  I  ',
        '  N  ',
        '  N  ',
        '  N  ' 
    ],{
        N: 'kubejs:withering_blazed_rod',
        I: 'iceandfire:dragonsteel_lightning_ingot'
    })
    
})

