console.info("[SOCIETY] addMailboxRecipes.js loaded");

ServerEvents.recipes((e) => {
  const recipes = [
    { type: "autumnity:maple", mailbox: "everycomp:rfm/autumnity/maple_mail_box" },
    { type: "atmospheric:kousa", mailbox: "everycomp:rfm/atmospheric/kousa_mail_box" },
    { type: "meadow:pine", mailbox: "everycomp:rfm/meadow/pine_mail_box" },
    { type: "atmospheric:aspen", mailbox: "everycomp:rfm/atmospheric/aspen_mail_box" },
    { type: "atmospheric:yucca", mailbox: "everycomp:rfm/atmospheric/yucca_mail_box" },
    { type: "atmospheric:rosewood", mailbox: "everycomp:rfm/atmospheric/rosewood_mail_box" },
    { type: "atmospheric:morado", mailbox: "everycomp:rfm/atmospheric/morado_mail_box" },
    { type: "beachparty:palm", mailbox: "everycomp:rfm/beachparty/palm_mail_box" },
    { type: "atmospheric:grimwood", mailbox: "everycomp:rfm/atmospheric/grimwood_mail_box" },
    { type: "atmospheric:laurel", mailbox: "everycomp:rfm/atmospheric/laurel_mail_box" },
    { type: "vinery:dark_cherry", mailbox: "everycomp:rfm/vinery/dark_cherry_mail_box" },
    { type: "betterarcheology:rotten", mailbox: "everycomp:rfm/betterarcheology/rotten_mail_box" },
    { type: "quark:ancient", mailbox: "everycomp:rfm/quark/ancient_mail_box" },
    { type: "quark:azalea", mailbox: "everycomp:rfm/quark/azalea_mail_box" },
    { type: "quark:blossom", mailbox: "everycomp:rfm/quark/blossom_mail_box" },
    { type: "botania:dreamwood", mailbox: "everycomp:rfm/botania/dreamwood_mail_box" },
    { type: "botania:livingwood", mailbox: "everycomp:rfm/botania/livingwood_mail_box" },
    { type: "minecraft:pale_oak", mailbox: "everycomp:rfm/minecraft/pale_oak_mail_box", },
    { type: "windswept:chestnut", mailbox: "everycomp:rfm/windswept/chestnut_mail_box", },
    { type: "windswept:pine", mailbox: "everycomp:rfm/windswept/pine_mail_box", },
    { type: "windswept:holly", mailbox: "everycomp:rfm/windswept/holly_mail_box", },
    { type: "cluttered:poplar", mailbox:  "everycomp:rfm/cluttered/poplar_mail_box", },
    { type: "cluttered:willow", mailbox: "everycomp:rfm/cluttered/willow_mail_box", },
    { type: "cluttered:sycamore", mailbox:  "everycomp:rfm/cluttered/sycamore_mail_box", },
    { type: "cobblemon:apricorn", mailbox:  "everycomp:rfm/cobblemon/apricorn_mail_box", },
  ];

  recipes.forEach((recipe) => {
    const { type, mailbox } = recipe;
    // Thanks Vaskii for having slabs be x_planks_slab
    e.shaped(mailbox, ["sss", "pbp", " f "], {
      s:
        type.includes("botania") || type.includes("quark") ? `${type}_planks_slab` : `${type}_slab`,
      p: `${type}_planks`,
      b: "minecraft:barrel",
      f: `${type}_fence`,
    });
  });
});
