onEvent('recipes', (event) => {
    event.shaped('apotheosis:enchantment_library', ['ABA', 'BCB', 'ABA'], {
        A: 'apotheosis:hellshelf',
        B: 'extendedcrafting:the_ultimate_ingot',
        C: 'extendedcrafting:ultimate_singularity'
    }).id('kubejs:apotheosis/enchantment_library')

    //event.shaped(Item.of('apotheosis:ender_library'), ['ABA', 'CDC', 'ACA'], {
    //    A: 'apotheosis:pearl_endshelf',
    //    B: 'atmadditions:atm_star',
    //    C: 'minecraft:experience_bottle',
    //    D: Item.of('apotheosis:enchantment_library')
    //}).id('kubejs:apotheosis/ender_library')

   // event.custom({type: 'apotheosis:keep_nbt_enchanting',
   //     type: "minecraft:crafting_shaped",
   //     conditions: [{
   //       type: "apotheosis:module",
   //       module: "enchantment"
   //     }],
   //     group: "something",
   //     pattern: [
   //       "ABA",
   //       "CDC",
   //       "ACA"
   //     ],
   //     key: {
   //       A: {
   //         "item": "apotheosis:pearl_endshelf"
   //       },
   //       B: {
   //         "item": "atmadditions:atm_star"
   //       },
   //       C: {
   //         "item": "minecraft:experience_bottle"
   //       },
   //       D: {
   //         "item": "apotheosis:enchantment_library"
   //       }
   //     },
   //     result: {
   //       item: "apotheosis:ender_library",
   //       count: 1
   //     }})
  // let customFusion = (event, output, craftingTier, energy, middleItem, ingredientList) => {
    //crafting tier: 1.draconium, 2.wyvern, 3.draconic, 4.chaotic
  // let tiers = ['WYVERN', 'DRACONIC', 'CHAOTIC']
  // event.custom({
  //   type: 'draconicevolution:fusion_crafting',
  //   result: { item: output },
  //   catalyst: { item: middleItem },
  //   total_energy: energy,
  //   tier: (craftingTier > 4 && craftingTier <= 1) ? 'DRACONIUM' : tiers[craftingTier - 2],
  //   ingredients: ingredientList.map(item => (item.charAt(0) === '#') ? { tag: item.substring(1) } : { item: item })
  // })

  // customFusion(event, Item.of('apotheosis:ender_library'), 3, 356000000, Item.of('apotheosis:enchantment_library'), [
  //  'apotheosis:pearl_endshelf',
  //  'apotheosis:pearl_endshelf',
  //  'apotheosis:pearl_endshelf',
  //  'apotheosis:pearl_endshelf',
  //  'minecraft:experience_bottle',
  //  'minecraft:experience_bottle',
  //  'minecraft:experience_bottle',
  //  'atmadditions:atm_star_shard'
  //]).id('kubejs:fusion_crafting:apotheosis/ender_library')}
})
