ServerEvents.recipes((event) => {
  const recipes = [
    {
      output: "draconicevolution:basic_crafting_injector",
      pattern: ["ABA", "CDC", "CCC"],
      key: {
        A: "infinity_nexus_mod:infinity_nugget",
        B: "draconicevolution:draconium_core",
        C: "#forge:stone",
        D: "minecraft:iron_block",
      },
      id: "inp_draconicevolution:basic_crafting_injector",
    },

    {
      output: "draconicevolution:crafting_core",
      pattern: ["ABA", "BCB", "ABA"],
      key: {
        A: "minecraft:lapis_block",
        B: "infinity_nexus_mod:infinity_nugget",
        C: "draconicevolution:draconium_core",
      },
      id: "inp_draconicevolution:crafting_core",
    },

    {
      output: "draconicevolution:draconium_core",
      pattern: ["ABA", "BCB", "ABA"],
      key: {
        A: "draconicevolution:draconium_block",
        B: "minecraft:gold_block",
        C: "infinity_nexus_mod:infinity_nugget",
      },
      id: "inp_draconicevolution:draconium_core",
    },

    {
      output: "draconicevolution:wyvern_core",
      pattern: ["ABA", "BCB", "ABA"],
      key: {
        A: "draconicevolution:draconium_block",
        B: "draconicevolution:draconium_core",
        C: "#forge:nether_stars",
      },
      id: "draconicevolution:wyvern_core",
    },
    {
      output: "draconicevolution:particle_generator",
      pattern: ["ABA", "CDC", "ACA"],
      key: {
        A: "minecraft:blaze_rod",
        B: "minecraft:ender_eye",
        C: "minecraft:redstone_block",
        D: "infinity_nexus_mod:gold_machine_casing",
      },
      id: "inp_draconicevolution:particle_generator",
    },

    {
      output: "draconicevolution:energy_pylon",
      pattern: ["ABA", "CDC", "ABA"],
      key: {
        A: "draconicevolution:draconium_block",
        B: "pneumaticcraft:transfer_gadget",
        C: "botania:mana_pearl",
        D: "minecraft:redstone_block",
      },
      id: "inp_draconicevolution:energy_pylon",
    },
  ];

  recipes.forEach((recipe) => {
    if (recipe.id) {
      event.shaped(recipe.output, recipe.pattern, recipe.key).id(recipe.id);
    } else {
      event.shaped(recipe.output, recipe.pattern, recipe.key);
    }
  });
});
