events.listen("recipes", function (e) {
  var types = ["quartz", "diamond", "emerald", "quartz"];
  types.forEach((S) => {
    e.custom({
      type: "immersiveengineering:metal_press",
      mold: { item: "immersiveengineering:mold_gear" },
      result: {
        item: "thermal:" + S + "_gear",
      },

      input: {
        count: 4,
        base_ingredient: {
          item: "minecraft:" + S,
        },
      },
      energy: 2400,
    });
  });
  var types = ["signalum", "enderium", "lumium"];
  types.forEach((S) => {
    // craft gear dans metal press
    e.custom({
      type: "immersiveengineering:metal_press",
      mold: { item: "immersiveengineering:mold_gear" },
      result: {
        item: "thermal:" + S + "_gear",
      },

      input: {
        count: 4,
        base_ingredient: {
          item: "thermal:" + S + "_ingot",
        },
      },
      energy: 2400,
    });
    // craft plate dans metal press
    e.custom({
      type: "immersiveengineering:metal_press",
      mold: { item: "immersiveengineering:mold_plate" },
      result: {
        item: "thermal:" + S + "_plate",
      },

      input: {
        count: 1,
        base_ingredient: {
          item: "thermal:" + S + "_ingot",
        },
      },
      energy: 2400,
    });
  });
  e.custom({
    type: "immersiveengineering:metal_press",
    mold: { item: "immersiveengineering:mold_gear" },
    result: {
      item: "thermal:lapis_gear",
    },

    input: {
      count: 4,
      base_ingredient: {
        item: "minecraft:lapis_lazuli",
      },
    },
    energy: 2400,
  });

  //sapphire et ruby

  var types = ["sapphire", "ruby"];
  types.forEach((S) => {
    e.custom({
      type: "immersiveengineering:metal_press",
      mold: { item: "immersiveengineering:mold_plate" },
      result: {
        item: "kubejs:" + S + "_plate",
      },

      input: {
        count: 1,
        base_ingredient: {
          item: "thermal:" + S,
        },
      },
      energy: 2400,
    });
    e.custom({
      type: "immersiveengineering:metal_press",
      mold: { item: "immersiveengineering:mold_gear" },
      result: {
        item: "kubejs:" + S + "_gear",
      },

      input: {
        count: 4,
        base_ingredient: {
          item: "thermal:" + S,
        },
      },
      energy: 2400,
    });
  });

  e.custom({
    type: "immersiveengineering:metal_press",
    mold: { item: "immersiveengineering:mold_rod" },
    result: {
      count: 2,
      item: "cursed_realm_remastered:maudit_bone_rod",
    },

    input: {
      count: 1,
      base_ingredient: {
        item: "cursed_realm_remastered:maudit_bone",
      },
    },
    energy: 2400,
  });
});
