ServerEvents.recipes(event => {

    event.shaped('extendedcrafting:the_ultimate_catalyst', [
      ' A ',
      'ABA',
      ' A '
    ], {
      A:'extendedcrafting:the_ultimate_component',
      B:'avaritia:neutron_gear'
    })

    event.shapeless('extendedcrafting:basic_component', [
      'extendedcrafting:luminessence',
      'extendedcrafting:black_iron_slate',
      Item.of('powah:steel_energized', 2)
      
    ])

    event.shapeless('extendedcrafting:advanced_component', [
      'extendedcrafting:luminessence',
      'extendedcrafting:black_iron_slate',
      Item.of('powah:crystal_blazing', 2)
      
    ])

    event.shapeless('extendedcrafting:elite_component', [
      'extendedcrafting:luminessence',
      'extendedcrafting:black_iron_slate',
      Item.of('powah:crystal_niotic', 2)
      
    ])

    event.shapeless('extendedcrafting:ultimate_component', [
      'extendedcrafting:luminessence',
      'extendedcrafting:black_iron_slate',
      Item.of('powah:crystal_spirited', 2)
      
    ])

    event.shaped('extendedcrafting:basic_catalyst', [
      ' A ',
      'ABA',
      ' A '
    ], {
      A:'extendedcrafting:basic_component',
      B:'thermal:invar_gear'
    })

    event.shaped('extendedcrafting:advanced_catalyst', [
      ' A ',
      'ABA',
      ' A '
    ], {
      A:'extendedcrafting:advanced_component',
      B:'thermal:lumium_gear'
    })

    event.shaped('extendedcrafting:elite_catalyst', [
      ' A ',
      'ABA',
      ' A '
    ], {
      A:'extendedcrafting:elite_component',
      B:'thermal:sapphire_gear'
    })

    event.shaped('extendedcrafting:ultimate_catalyst', [
      ' A ',
      'ABA',
      ' A '
    ], {
      A:'extendedcrafting:ultimate_component',
      B:'thermal:emerald_gear'
    })

    event.shaped('extendedcrafting:basic_table',[
        'ABA',
        'CDC',
        'AEA'
    ], {
      A:'extendedcrafting:basic_component',
      B:'extendedcrafting:basic_catalyst',
      C:'avaritia:double_compressed_crafting_table',
      D:'minecraft:iron_block',
      E:'extendedcrafting:black_iron_slate',
    })

    event.custom({
      type: "draconicevolution:fusion_crafting",
              "result": {
              "item": "extendedcrafting:ultimate_singularity",
              "count": 2
            },
      catalyst: {
        item: "extendedcrafting:ultimate_singularity"
      },
      total_energy: 100000000,
      tier: "CHAOTIC", 
      ingredients: [
          { item: 'mystical_extended_tier:ornium_ingot_block'},
          { item: 'mystical_extended_tier:ouranium_block'},
          { item: 'mystical_extended_tier:tornium_gemstone_block'},
          { item: 'enderio:end_steel_block'},
          { item: 'projecte:red_matter_block'},
          { item: 'mystical_extended_tier:lightium_coal_block'},
          { item: 'minecraft:emerald_block'},
          { item: 'minecraft:lapis_block'},
          { item: 'minecraft:gold_block'},
          { item: 'minecraft:redstone_block'},
          { item: 'extendedcrafting:nether_star_block'},
          { item: 'extendedcrafting:flux_star_block'},
          { item: 'extendedcrafting:ender_star_block'},
          { item: 'minecraft:honey_block'},
          { item: 'minecraft:amethyst_block'},
          { item: 'minecraft:netherite_block'},
          { item: 'minecraft:diamond_block'},
          { item: 'minecraft:iron_block'},
          { item: 'botania:corporea_block'},
          { item: 'botania:dragonstone_block'},
          { item: 'botania:mana_diamond_block'},
          { item: 'botania:elementium_block'},
          { item: 'botania:terrasteel_block'},
          { item: 'botania:manasteel_block'}
      ]
    })

    event.custom({
      type: 'extendedcrafting:combination',
      powerCost: 1000000,
      input: {
          "item": 'extendedcrafting:the_ultimate_ingot'
      },
      ingredients: [
        { item: 'mystical_extended_tier:ornium_ingot_block'},
        { item: 'mystical_extended_tier:ouranium_block'},
        { item: 'mystical_extended_tier:tornium_gemstone_block'},
        { item: 'enderio:end_steel_block'},
        { item: 'projecte:red_matter_block'},
        { item: 'mystical_extended_tier:lightium_coal_block'},
        { item: 'minecraft:emerald_block'},
        { item: 'minecraft:lapis_block'},
        { item: 'minecraft:gold_block'},
        { item: 'minecraft:redstone_block'},
        { item: 'extendedcrafting:nether_star_block'},
        { item: 'extendedcrafting:flux_star_block'},
        { item: 'extendedcrafting:ender_star_block'},
        { item: 'minecraft:honey_block'},
        { item: 'minecraft:amethyst_block'},
        { item: 'minecraft:netherite_block'},
        { item: 'minecraft:diamond_block'},
        { item: 'minecraft:iron_block'},
        { item: 'botania:corporea_block'},
        { item: 'botania:dragonstone_block'},
        { item: 'botania:mana_diamond_block'},
        { item: 'botania:elementium_block'},
        { item: 'botania:terrasteel_block'},
        { item: 'botania:manasteel_block'}
    ],
      result: {
          "item":'extendedcrafting:the_ultimate_block',
          "count": 1
      }
    })

    event.custom({
        "type": "extendedcrafting:shapeless_table",
        "ingredients": [
            { "item": "extendedcrafting:redstone_ingot" },
            { "item": "extendedcrafting:enhanced_redstone_ingot" },
            { "item": "mysticalagriculture:supremium_ingot" },
            { "item": "mysticalagriculture:awakened_supremium_ingot" },
            { "item": "enderio:redstone_alloy_ingot" },
            { "item": "ad_astra:calorite_ingot" },
            { "item": "twilightforest:fiery_ingot" },
            { "item": "minecraft:copper_ingot" },
            { "item": "enderio:conductive_alloy_ingot" },
            { "item": "thermal:signalum_ingot" },
            { "item": "thermal:bronze_ingot" },
            { "item": "minecraft:gold_ingot" },
            { "item": "alltheores:brass_ingot" },
            { "item": "thermal:electrum_ingot" },
            { "item": "enderio:vibrant_alloy_ingot" },
            { "item": "mysticalagriculture:imperium_ingot" },
            { "item": "thermal:lumium_ingot" },
            { "item": "mysticalagriculture:inferium_ingot" },
            { "item": "mysticalagriculture:prudentium_ingot" },
            { "item": "mysticalagriculture:tertium_ingot" },
            { "item": "mekanism:ingot_osmium" },
            { "item": "immersiveengineering:ingot_uranium" },
            { "item": "mystical_extended_tier:ornium_ingot" },
            { "item": "botania:manasteel_ingot" },
            { "item": "extendedcrafting:ender_ingot" },
            { "item": "extendedcrafting:enhanced_ender_ingot" },
            { "item": "draconicevolution:draconium_ingot" },
            { "item": "draconicevolution:awakened_draconium_ingot" },
            { "item": "thermal:enderium_ingot" },
            { "item": "megacells:sky_steel_ingot" },
            { "item": "botania:elementium_ingot" },
            { "item": "industrialforegoing:pink_slime_ingot" },
            { "item": "mysticalagradditions:insanium_ingot" },
            { "item": "minecraft:iron_ingot" },
            { "item": "thermal:lead_ingot" },
            { "item": "thermal:silver_ingot" },
            { "item": "thermal:nickel_ingot" },
            { "item": "immersiveengineering:ingot_steel" },
            { "item": "enderio:dark_steel_ingot" },
            { "item": "extendedcrafting:black_iron_ingot" },
            { "item": "immersiveengineering:ingot_hop_graphite" },
            { "item": "enderio:soularium_ingot" },
            { "item": "twilightforest:knightmetal_ingot" },
            { "item": "avaritia:neutron_ingot" },
            { "item": "minecraft:netherite_ingot" },
            { "item": "botania:terrasteel_ingot" },
            { "item": "botania:gaia_ingot" },
            { "item": "extendedcrafting:crystaltine_ingot" },
            { "item": "avaritia:crystal_matrix_ingot" },
            { "item": "mysticalagriculture:prosperity_ingot" },
            { "item": "twilightforest:ironwood_ingot" },
            { "item": "pneumaticcraft:ingot_iron_compressed" },
            { "item": "enderio:end_steel_ingot" },
            { "item": "alltheores:platinum_ingot" },
            { "item": "alltheores:iridium_ingot" },
            
        ],
        "result": {
            "item": "extendedcrafting:the_ultimate_ingot"
        }
        })

    event.custom({
      type: 'powah:energizing',
      ingredients: [
        { item: 'thermal:gunpowder_block'},
        { item: 'minecraft:redstone_block'},
        { item: 'minecraft:glowstone',
          count: 2
        }
      ],
      energy: 1500000,
      result: {
        item: 'extendedcrafting:luminessence'
      }
    })

    event.custom({
        "type": "extendedcrafting:shaped_table",
        "pattern": [
            "         ",
            "         ",
            "         ",
            "   ABA   ",
            "   CDC   ",
            "   AEA   ",
            "         ",
            "         ",
            "         "
        ],
        "key": {
            "A": {
            "item": "extendedcrafting:black_iron_ingot"
            },
            "B": {
            "item": "extendedcrafting:elite_catalyst"
            },
            "C": {
            "item": "extendedcrafting:elite_component"
            },
            "D": {
            "item": "extendedcrafting:frame"
            },
            "E": {
            "item": "extendedcrafting:black_iron_slate"
            }
        },
        "result": {
            "item": 'extendedcrafting:compressor'
        }
        })

    event.custom({
        "type": "extendedcrafting:shaped_table",
        "pattern": [
            "         ",
            "         ",
            "         ",
            "   ABA   ",
            "   CDC   ",
            "   AEA   ",
            "         ",
            "         ",
            "         "
        ],
        "key": {
            "A": {
            "item": "extendedcrafting:black_iron_ingot"
            },
            "B": {
            "item": "extendedcrafting:ultimate_catalyst"
            },
            "C": {
            "item": "extendedcrafting:ultimate_component"
            },
            "D": {
            "item": "extendedcrafting:frame"
            },
            "E": {
            "item": "extendedcrafting:black_iron_slate"
            }
        },
        "result": {
            "item": 'extendedcrafting:crafting_core'
        }
        })
})

/*ServerEvents.recipes(event => {
    event.remove({ output: 'extendedcrafting:ultimate_singularity' })

    event.custom({
        type: "extendedcrafting:shapeless_table",
        tier: 4,
        ingredients: [
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:glowstone" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:gold" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:nickel" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:lead" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:iron" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:copper" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:diamond" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:platinum" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:tin" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:silver" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:aluminium" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:redstone" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:coal" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:emerald" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:lapis" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:invar" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:electrum" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:steel" } },
            { item: "extendedcrafting:singularity", nbt: { Id: "extendedcrafting:nether_star" } }
        ],
        result: { item: "extendedcrafting:ultimate_singularity" }
    })
})*/