onEvent('recipes', event =>{

    //Dragon Wing
    event.shaped('2x rats:dragon_wing', [
        'NNN',
        'WWN',
        '  W'
    ],{
        N: /iceandfire:dragonscales/,
        W: 'minecraft:blaze_rod'
    })

    // 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'
    })
})