ServerEvents.recipes((event) => {
  //furnace
  event
    .custom({
      type: "minecraft:crafting_shaped",
      category: "misc",
      pattern: ["AAA", "ABA", "AAA"],
      key: {
        A: {
          item: "minecraft:cobblestone",
        },
        B: {
          item: "framedblocks:framed_cube",
        },
      },
      result: {
        item: "minecraft:furnace",
      },
      show_notification: true,
    })
    .id("minecraft:furnace");

  //prudentium furnace
  event
    .custom({
      type: "minecraft:crafting_shaped",
      category: "misc",
      pattern: ["AAA", "ABA", "ACA"],
      key: {
        A: {
          item: "mysticalagriculture:prudentium_block",
        },
        B: {
          item: "mysticalagriculture:inferium_furnace",
        },
        C: {
          item: "minecraft:campfire",
        },
      },
      result: {
        item: "mysticalagriculture:prudentium_furnace",
      },
      show_notification: true,
    })
    .id("mysticalagriculture:prudentium_furnace");

  //tertium furnace

  event
    .custom({
      type: "minecraft:crafting_shaped",
      category: "misc",
      pattern: ["AAA", "ABA", "ACA"],
      key: {
        A: {
          item: "mysticalagriculture:tertium_block",
        },
        B: {
          item: "mysticalagriculture:prudentium_furnace",
        },
        C: {
          item: "minecraft:campfire",
        },
      },
      result: {
        item: "mysticalagriculture:tertium_furnace",
      },
      show_notification: true,
    })
    .id("mysticalagriculture:tertium_furnace");

  //imperium furnace

  event
    .custom({
      type: "minecraft:crafting_shaped",
      category: "misc",
      pattern: ["AAA", "ABA", "ACA"],
      key: {
        A: {
          item: "mysticalagriculture:imperium_block",
        },
        B: {
          item: "mysticalagriculture:tertium_furnace",
        },
        C: {
          item: "minecraft:soul_campfire",
        },
      },
      result: {
        item: "mysticalagriculture:imperium_furnace",
      },
      show_notification: true,
    })
    .id("mysticalagriculture:imperium_furnace");

  //supremium furnace

  event
    .custom({
      type: "minecraft:crafting_shaped",
      category: "misc",
      pattern: ["AAA", "ABA", "ACA"],
      key: {
        A: {
          item: "mysticalagriculture:supremium_block",
        },
        B: {
          item: "mysticalagriculture:imperium_furnace",
        },
        C: {
          item: "minecraft:soul_campfire",
        },
      },
      result: {
        item: "mysticalagriculture:supremium_furnace",
      },
      show_notification: true,
    })
    .id("mysticalagriculture:supremium_furnace");

  //awakened_supremium_furnace

  event
    .custom({
      type: "minecraft:crafting_shaped",
      category: "misc",
      pattern: ["AAA", "ABA", "ACA"],
      key: {
        A: {
          item: "mysticalagriculture:awakened_supremium_block",
        },
        B: {
          item: "mysticalagriculture:supremium_furnace",
        },
        C: {
          item: "bloodmagic:reagentlava",
        },
      },
      result: {
        item: "mysticalagriculture:awakened_supremium_furnace",
      },
      show_notification: true,
    })
    .id("mysticalagriculture:awakened_supremium_furnace");

  //insanium_furnace

  event
    .custom({
      type: "minecraft:crafting_shaped",
      category: "misc",
      pattern: ["AAA", "ABA", "ACA"],
      key: {
        A: {
          item: "mysticalagradditions:insanium_block",
        },
        B: {
          item: "mysticalagriculture:awakened_supremium_furnace",
        },
        C: {
          item: "bloodmagic:lavacrystal",
        },
      },
      result: {
        item: "mysticaladaptations:insanium_furnace",
      },
      show_notification: true,
    })
    .id("mysticaladaptations:insanium_furnace");

  //rainbow_plating

  event
    .custom({
      type: "minecraft:crafting_shaped",
      category: "misc",
      pattern: ["ABC", "DEF", "GHI"],
      key: {
        A: {
          item: "ironfurnaces:copper_furnace",
        },
        B: {
          item: "ironfurnaces:iron_furnace",
        },
        C: {
          item: "ironfurnaces:gold_furnace",
        },
        D: {
          item: "ironfurnaces:silver_furnace",
        },
        E: {
          item: "ironfurnaces:diamond_furnace",
        },
        F: {
          item: "ironfurnaces:emerald_furnace",
        },
        G: {
          item: "ironfurnaces:crystal_furnace",
        },
        H: {
          item: "ironfurnaces:obsidian_furnace",
        },
        I: {
          item: "ironfurnaces:netherite_furnace",
        },
      },
      result: {
        item: "ironfurnaces:rainbow_plating",
        count: 8,
      },
      show_notification: true,
    })
    .id("ironfurnaces:rainbow_plating");

  //rainbow_core

  event
    .custom({
      type: "minecraft:crafting_shaped",
      category: "misc",
      pattern: ["ABC", "DED", "FGH"],
      key: {
        A: {
          item: "minecraft:red_stained_glass",
        },
        B: {
          item: "minecraft:orange_stained_glass",
        },
        C: {
          item: "minecraft:yellow_stained_glass",
        },
        D: {
          item: "mysticaladaptations:insanium_furnace",
        },
        E: {
          item: "minecraft:green_stained_glass",
        },
        F: {
          item: "minecraft:blue_stained_glass",
        },
        G: {
          item: "minecraft:purple_stained_glass",
        },
        H: {
          item: "minecraft:magenta_stained_glass",
        },
      },
      result: {
        item: "ironfurnaces:rainbow_core",
      },
      show_notification: true,
    })
    .id("ironfurnaces:rainbow_core");
});
