ServerEvents.recipes((e) => {
  const recipes = [
    {
      output: "sophisticatedbackpacks:copper_backpack",
      pattern: ["AAA", "ABA", "ACA"],
      key: {
        A: "minecraft:copper_block",
        B: "sophisticatedbackpacks:backpack",
        C: "infinity_nexus_miner:copper_structure",
      },
    },
    {
      output: "sophisticatedbackpacks:iron_backpack",
      pattern: ["AAA", "ABA", "ACA"],
      key: {
        A: "minecraft:iron_block",
        B: "sophisticatedbackpacks:copper_backpack",
        C: "infinity_nexus_miner:iron_structure",
      },
    },
    {
      output: "sophisticatedbackpacks:gold_backpack",
      pattern: ["AAA", "ABA", "ACA"],
      key: {
        A: "silentgear:blaze_gold_block",
        B: "sophisticatedbackpacks:iron_backpack",
        C: "infinity_nexus_miner:gold_structure",
      },
    },
    {
      output: "sophisticatedbackpacks:diamond_backpack",
      pattern: ["AAA", "ABA", "ACA"],
      key: {
        A: "botania:mana_diamond_block",
        B: "sophisticatedbackpacks:gold_backpack",
        C: "infinity_nexus_miner:diamond_structure",
      },
    },
    {
      output: "sophisticatedbackpacks:netherite_backpack",
      pattern: ["AAA", "ABA", "ACA"],
      key: {
        A: "minecraft:netherite_block",
        B: "sophisticatedbackpacks:diamond_backpack",
        C: "infinity_nexus_miner:netherite_structure",
      },
    },
  ];

  recipes.forEach((recipe) => {
    const outputId = recipe.output.split(":")[1]; // Extrai a parte após o ":"
    const recipeId = `infinitynexus:${outputId}`;

    e.shaped(recipe.output, recipe.pattern, recipe.key).id(recipeId);
  });
});
