ServerEvents.recipes((event) => {
  const recipes = [
    {
      output: "infinity_nexus_mod:voxel_t",
      pattern: ["ABC", "DEF", "GBH"],
      key: {
        A: "chemlib:tungsten_ingot",
        B: "ironfurnaces:rainbow_core",
        C: "silentgear:tyrian_steel_ingot",
        D: "farmersdelight:kelp_roll",
        E: "silentgear:glittery_dust",
        F: "redstone_arsenal:flux_elytra",
        G: "extendedcrafting:ender_star",
        H: "extendedcrafting:flux_star",
      },
      id: "inp_infinity_nexus_mod_voxel_t",
    },
    {
      output: "infinity_nexus_mod:voxel_s",
      pattern: ["ABC", "DEF", "GHI"],
      key: {
        A: "mysticalagradditions:creative_essence",
        B: {
          "type": "forge:nbt",
          "item": "hostilenetworks:prediction",
          "count": 1,
          "nbt": "{data_model:{id:\"hostilenetworks:ender_dragon\"}}"
        },
        C: "extendedcrafting:luminessence",
        D: "mob_grinding_utils:solid_xp_block",
        E: "tiab:time_in_a_bottle",
        F: "ironchest:obsidian_chest",
        G: "trashcans:ultimate_trash_can",
        H: "metalbarrels:obsidian_barrel",
        I: "extendedcrafting:the_ultimate_ingot",
      },
      id: "inp_infinity_nexus_mod_voxel_s",
    },
    {
      output: "infinity_nexus_mod:voxel_d",
      pattern: ["ABC", "DEF", "GHI"],
      key: {
        A: "farmersdelight:straw_bale",
        B: "minecraft:beacon",
        C: Item.of('constructionwand:diamond_wand', '{Damage:0,wand_options:{}}'),
        D: "chipped:mason_table",
        E: "framedblocks:framed_reinforcement",
        F: "supplementaries:statue",
        G: "torchmaster:feral_flare_lantern",
        H: "minecraft:dragon_head",
        I: "elevatorid:elevator_lime",
      },
      id: "inp_infinity_nexus_mod_voxel_d",
    },
    {
      output: "infinity_nexus_mod:voxel_e",
      pattern: ["ABC", "DEF", "GHI"],
      key: {
        A: "sophisticatedbackpacks:advanced_filter_upgrade",
        B: "gobber2:gobber2_ingot_end",
        C: "reliquary:infernal_chalice",
        D: "malum:etheric_nitrate",
        E: {
          "type": "forge:nbt",
          "item": "minecraft:lingering_potion",
          "count": 1,
          "nbt": '{Potion:"quark:strong_resilience"}'
        },
        F: "evilcraft:blood_orb_filled",
        G: "bloodmagic:corrupted_dust",
        H: "easy_villagers:villager",
        I: "mysticalagradditions:insanium_apple",
      },
      id: "inp_infinity_nexus_mod_voxel_e",
    },
    {
      output: "infinity_nexus_mod:voxel_w",
      pattern: ["ABC", "DEI", "FGH"],
      key: {
        A: "naturesaura:gold_leaf",
        B: "botanicpledge:world_ash_branch",
        C: "reliquary:phoenix_down",
        D: "botania:gaia_ingot",
        E: "elementalcraft:pure_element_holder",
        F: "bloodmagic:etherealslate",
        G: "naturesaura:infused_iron",
        H: "forbidden_arcanus:eternal_stella",
        I: "occultism:iesnium_ingot",
      },
      id: "inp_infinity_nexus_mod_voxel_w",
    },
    {
      output: "infinity_nexus_mod:voxel_n",
      pattern: ["ABC", "DEF", "GHI"],
      key: {
        A: "pneumaticcraft:printed_circuit_board",
        B: "draconicevolution:draconic_relay_crystal",
        C: "powah:capacitor_nitro",
        D: "mekanism:qio_drive_supermassive",
        E: "bigreactors:ludicrite_ingot",
        F: "infinity_nexus_mod:iridium_ingot",
        G: "thermalendergy:endergy_upgrade_3",
        H: "enderio:octadic_capacitor",
        I: "industrialforegoing:machine_frame_supreme",
      },
      id: "inp_infinity_nexus_mod_voxel_n",
    }
  ];

  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);
    }
  });
});