// custom_vanilla_recipes.js

onEvent('recipes', event => {
  const metals = [
    'iron',
    'gold'
  ];

  metals.forEach(name => {
    const ore   = `fortunable_iron_and_gold:raw_${name}`;
    const ingot = `minecraft:${name}_ingot`;
    const nug   = `minecraft:${name}_nugget`;

    // Remove receitas padrão (se existirem)
    event.remove({ type: 'minecraft:smelting', input: ore });
    event.remove({ type: 'minecraft:blasting', input: ore });

    // Smelting: minério → pepita
    event.smelting(nug, ore)
      .xp(0.1)
      .cookingTime(200);

    // Blasting: minério → lingote
    event.blasting(ingot, ore)
      .xp(0.7)
      .cookingTime(100);
  });
});
