Hi, this is a simple code template that unifies all the things you want :
const objs = [
{ t: 'forge:blocks/electrum',i: 'createaddition:electrum_block' },
{ t: "forge:dusts/diamond", i: "createaddition:diamond_grit" },
{ t: /*tag to remove*/, i: /*to this item*/ },
]
//This will remove the tags from the items that are above
ServerEvents.tags('item', event => {
objs.forEach(obj => {
event.remove(obj.t, obj.i)
});
})
//This will remove all the recipes that have items above as input or output.
ServerEvents.recipes(e => {
objs.forEach((obj) => {
e.remove({ output: obj.i });
e.remove({ input: obj.i });
});
})
if you have any question, ask me😁