For my modpack, I need help figuring out how to remove all recipes involving the use of ores (iron, copper, gold, etc) so that they can't output their ore. I would also prefer to change the create recipe so that you require a millstone to go from iron ore to iron nuggets by 5 with a 5/8 chance, with a 5% chance of crushed iron ore. How do I go about this?
I have done the following (trying to do both legacy and current coding), but it doesn't work:
event.remove([{ type: 'minecraft:smelting', output: 'minecraft:iron_ingot' }, { type: 'minecraft:blasting', output: 'minecraft:iron_ingot' }])
event.remove([{ type: 'minecraft:smelting', output: 'minecraft:copper_ingot' }, { type: 'minecraft:blasting', output: 'minecraft:copper_ingot' }])
event.remove([{ type: 'minecraft:smelting', output: 'minecraft:gold_ingot' }, { type: 'minecraft:blasting', output: 'minecraft:gold_ingot' }])
onEvent('recipes', event =>
{
//Remove by recipe ID
[
'minecraft:iron_ingot_from_smelting_iron_ore',
'minecraft:iron_ingot_from_smelting_deepslate_iron_ore',
'minecraft:copper_ingot_from_smelting_copper_ore',
'minecraft:copper_ingot_from_smelting_deepslate_copper_ore',
'minecraft:gold_ingot_from_smelting_gold_ore',
'minecraft:gold_ingot_from_smelting_nether_gold_ore',
'minecraft:gold_ingot_from_smelting_deepslate_gold_ore'
].forEach((recipeID) => event.remove({id: recipeID}));
})