ServerEvents.recipes((event) => {
  event.custom({
    type: "minecraft:crafting_shaped",
    pattern: [
      "ABA",
      "ACA",
      "ADA"
    ],
    key: {
      A: {
        item: "minecraft:emerald",
      },
      B: {
        type: "forge:nbt",
        item: "minecraft:crossbow",
        count: 1,
        nbt: "{Damage:0}",
      },
      C: {
        item: "minecraft:light_gray_banner",
      },
      D: {
        item: "easy_villagers:villager",
      }
    },
    result: {
      type: "forge:nbt",
      item: "gateways:gate_pearl",
      count: 1,
      nbt: "{gateway:\"gateways:basic/illager\"}"
    },
    show_notification: true,
  }).id("gateway:illager");

   event.custom({
      type: "minecraft:crafting_shaped",
      pattern: [
        "ABA",
        "ACA",
        "ADA"
      ],
      key: {
        A: {
          item: "minecraft:rotten_flesh",
        },
        B: {
          item: "minecraft:egg",
        },
        C: {
          item: "minecraft:iron_ingot",
        },
        D: {
          item: "easy_villagers:villager",
        }
      },
      result: {
      type: "forge:nbt",
      item: "gateways:gate_pearl",
      count: 1,
      nbt: "{gateway:\"gateways:basic/zombies\"}"
      },
      show_notification: true,
    }).id("gateway:zombies");

  event
    .custom({
      type: "minecraft:crafting_shaped",
      category: "misc",
      pattern: ["ABA", "BCD", "ABA"],
      key: {
        A: {
          item: "minecraft:iron_ingot",
        },
        B: {
          item: "minecraft:iron_bars",
        },
        D: {
          item: "modularrouters:blank_module",
        },
        C: {
          item: "tiab:time_in_a_bottle",
        },
      },
      result: {
        item: "modularrouters:modular_router",
      },
      show_notification: true,
    })
    .id("modularrouters:modular_router");

  event
    .custom({
      type: "minecraft:crafting_shaped",
      category: "misc",
      pattern: ["AAA", "BCD", "AAA"],
      key: {
        A: {
          item: "minecraft:iron_ingot",
        },
        B: {
          item: "minecraft:netherite_pickaxe",
        },
        D: {
          item: "minecraft:player_head",
        },
        C: {
          item: "infinity_nexus_mod:voxel_n",
        },
      },
      result: {
        item: "modularrouters:player_module",
      },
      show_notification: true,
    })
    .id("modularrouters:player_module");
});
