events.listen("recipes", function (e) {
  e.custom({
    type: "extendedcrafting:shaped_table",
    pattern: [
      "    A    ",
      "   BBB   ",
      "   BCB   ",
      "   BDB   ",
      "    G    ",
      "    G    ",
      "    G    ",
      "    G    ",
      "    G    ",
    ],
    key: {
      A: {
        item: "draconicevolution:draconic_io_crystal",
      },
      B: {
        item: "draconicevolution:infused_obsidian",
      },
      C: {
        item: "draconicmachinery:staffof_creativity",
      },
      D: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        count: 1,
        nbt: '{Id:"extendedcrafting:nanorite"}',
      },

      G: {
        type: "forge:nbt",
        item: "powah:energy_hopper_nitro",
        count: 1,
        nbt: "{lollipoptile_stack_nbt:{energy_stored_main_energy:40000000L}}",
      },
    },
    result: {
      item: "kubejs:antenne_transpondeur",
    },
  });

  e.custom({
    type: "extendedcrafting:shaped_table",
    pattern: [
      "   AAA   ",
      "  ABCBA  ",
      "  ADEFA  ",
      "  AAGAA  ",
      "  AFHDA  ",
      "  AAGAA  ",
      "  ADEFA  ",
      "  ABCBA  ",
      "   AAA   ",
    ],
    key: {
      A: {
        item: "pneumaticcraft:advanced_pcb",
      },
      B: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        count: 1,
        nbt: '{Id:"extendedcrafting:copper"}',
      },
      C: {
        item: "mekanism:teleportation_core",
      },
      D: {
        item: "pneumaticcraft:capacitor",
      },
      E: {
        item: "appliedenergistics2:creative_storage_cell",
      },
      F: {
        item: "pneumaticcraft:transistor",
      },
      G: {
        item: "pneumaticcraft:turbine_rotor",
      },
      H: {
        item: "draconicevolution:chaotic_flight_module",
      },
    },
    result: {
      item: "kubejs:circuit_transpondeur",
    },
  });

  e.custom({
    type: "extendedcrafting:shaped_table",
    pattern: [
      "  AAAAA  ",
      " ABCCCBA ",
      " ACCDCCA ",
      " ACCCCCA ",
      "  ACCCA  ",
      "  AECEA  ",
      "  ACCCA  ",
      "  ABCBA  ",
      "  AAAAA  ",
    ],
    key: {
      A: {
        item: "mekanismadditions:gray_plastic",
      },
      B: {
        item: "create:black_valve_handle",
      },
      C: {
        item: "mekanismadditions:light_gray_plastic",
      },
      D: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        count: 1,
        nbt: '{Id:"extendedcrafting:aethium"}',
      },
      E: {
        item: "appliedenergistics2:creative_energy_cell",
      },
    },
    result: {
      item: "kubejs:coque_transpondeur",
    },
  });
  e.custom({
    type: "extendedcrafting:shaped_table",
    pattern: [
      "  AAAAA  ",
      " ACCCCCA ",
      " ACCCCCA ",
      " ACCCCCA ",
      "  ACCCA  ",
      "  ACCCA  ",
      "  ACCCA  ",
      "  ACCCA  ",
      "  AAAAA  ",
    ],
    key: {
      A: {
        item: "mekanismadditions:black_reinforced_plastic",
      },

      C: {
        item: "kubejs:vitre_lumineuse",
      },
    },
    result: {
      item: "kubejs:coque_avant_transpondeur",
    },
  });
  e.custom({
    type: "extendedcrafting:shaped_table",
    pattern: [
      " AAAAAAA ",
      " ABCDCEA ",
      " ACCCCCA ",
      " AFCGCHA ",
      " ACCCCCA ",
      " AICJCKA ",
      " ACCCCCA ",
      " ACCLCCA ",
      " AAAAAAA ",
    ],
    key: {
      A: {
        item: "mekanismadditions:gray_plastic",
      },
      B: {
        item: "kubejs:rune_1",
      },
      C: {
        item: "mekanismadditions:white_plastic_glow",
      },
      D: {
        item: "kubejs:rune_2",
      },
      E: {
        item: "kubejs:rune_3",
      },
      F: {
        item: "kubejs:rune_4",
      },
      G: {
        item: "kubejs:rune_5",
      },
      H: {
        item: "kubejs:rune_6",
      },
      I: {
        item: "kubejs:rune_7",
      },
      J: {
        item: "kubejs:rune_8",
      },
      K: {
        item: "kubejs:rune_9",
      },
      L: {
        item: "kubejs:rune_0",
      },
    },
    result: {
      item: "kubejs:clavier_transpondeur",
    },
  });
  e.custom({
    type: "extendedcrafting:shaped_table",
    pattern: ["ABA", "BCB", "ABA"],
    key: {
      A: {
        item: "mekanism:structural_glass",
      },
      B: {
        item: "kubejs:chaotic_glass",
      },
      C: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        count: 1,
        nbt: '{Id:"extendedcrafting:lumium"}',
      },
    },
    result: {
      item: "kubejs:vitre_lumineuse",
    },
  });

  e.custom({
    type: "extendedcrafting:shaped_table",
    pattern: [
      "         ",
      " ABBBBBC ",
      " DEFGFED ",
      " DFHIJFD ",
      " DGKLMGD ",
      " DFNOPFD ",
      " DEFGFED ",
      " CBBBBBA ",
      "         ",
    ],
    key: {
      A: {
        item: "mekanism:hdpe_stick",
      },
      B: {
        item: "powah:dielectric_rod_horizontal",
      },
      C: {
        item: "kubejs:hdpe_stick_2",
      },
      D: {
        item: "powah:dielectric_rod",
      },
      E: {
        type: "forge:nbt",
        item: "extendedcrafting:singularity",
        count: 1,
        nbt: '{Id:"extendedcrafting:redstone"}',
      },
      F: {
        item: "mekanism:structural_glass",
      },
      G: {
        item: "botania:lens_storm",
      },
      H: {
        item: "astralsorcery:colored_lens_push",
      },
      I: {
        item: "astralsorcery:colored_lens_growth",
      },
      J: {
        item: "astralsorcery:glass_lens",
      },
      K: {
        item: "astralsorcery:colored_lens_regeneration",
      },
      L: {
        item: "rftoolsutility:creative_screen",
      },
      M: {
        item: "astralsorcery:colored_lens_fire",
      },
      N: {
        item: "astralsorcery:colored_lens_damage",
      },
      O: {
        item: "astralsorcery:colored_lens_break",
      },
      P: {
        item: "astralsorcery:colored_lens_spectral",
      },
    },
    result: {
      item: "kubejs:ecran_transpondeur",
    },
  });

  e.custom({
    type: "extendedcrafting:shaped_table",
    pattern: [
      " A     A ",
      "AAA   AAA",
      "ABA   ACA",
      "AAADDDAAA",
      "EEEFGFEEE",
      "EEEHGHEEE",
      "EIEDDDEIE",
      "EEE   EEE",
      "EEE   EEE",
    ],
    key: {
      A: {
        item: "mekanismadditions:orange_reinforced_plastic",
      },
      B: {
        item: "integrateddynamics:energy_battery_creative",
      },
      C: {
        item: "powah:energy_cell_creative",
      },
      D: {
        item: "mininggadgets:upgrade_battery_3",
      },
      E: {
        item: "mekanismadditions:black_reinforced_plastic",
      },
      F: {
        item: "extendedcrafting:the_ultimate_ingot",
      },
      G: {
        item: "appliedenergistics2:singularity",
      },
      H: {
        item: "extendedcrafting:ultimate_singularity",
      },
      I: {
        item: "colossal_battery:battery_inner_tier_ultimate",
      },
    },
    result: {
      item: "kubejs:batterie_transpondeur",
    },
  });

  e.custom({
    type: "betterendforge:infusion",
    input: {
      item: "bigreactors:reinforced_reactorcreativewatergenerator",
    },
    output: "kubejs:transpondeur",
    time: 600,
    catalysts: [
      {
        item: "kubejs:batterie_transpondeur",
        index: 0,
      },
      {
        item: "kubejs:coque_avant_transpondeur",
        index: 1,
      },
      {
        item: "kubejs:ecran_transpondeur",
        index: 2,
      },
      {
        item: "kubejs:circuit_transpondeur",
        index: 3,
      },
      {
        item: "kubejs:coque_transpondeur",
        index: 4,
      },
      {
        item: "kubejs:antenne_transpondeur",
        index: 5,
      },
      {
        item: "kubejs:clavier_transpondeur",
        index: 6,
      },
      {
        item: "kubejs:tube_plein_glue",
        index: 7,
      },
    ],
  });
  // craft de la super colle dans le mixer
  e.custom({
    type: "immersiveengineering:mixer",
    inputs: [
      { item: "thermal:rosin" },
      { item: "industrialforegoing:pink_slime" },
    ],
    result: { fluid: "kubejs:super_colle", amount: 20 },
    fluid: { tag: "minecraft:water", amount: 500 },
    energy: 3200,
  });

  e.custom({
    type: "immersiveengineering:bottling_machine",
    result: { item: "kubejs:tube_plein_glue" },
    input: { item: "kubejs:tube_vide_glue" },
    fluid: { tag: "minecraft:supercolle", amount: 1000 },
  });
});
