ServerEvents.recipes((event) => {
  event.remove({ output: "createcobblestone:mechanical_generator" });
  
  const recipe = {
    type: "create:mechanical_crafting",
    accept_mirrored: false,
    category: "misc",
    key: {
      A: {
        item: "create:brass_casing",
      },
      B: {
        item: "create:brass_block",
      },
      D: {
        item: "create:mechanical_drill",
      },
      L: {
        item: "minecraft:lava_bucket",
      },
      W: {
        item: "minecraft:water_bucket",
      }
    },
    pattern: [
        "BAAAB",
        "AWDLA",
        "AWDLA",
        "AWDLA",
        "BAAAB"
    ],
    result: {
      count: 1,
      id: "createcobblestone:mechanical_generator",
    },
    show_notification: false,
  };

  event.custom(recipe);
});
