/*
 * Hide specified items from recipe viewers and remove their recipes
 */

const DELETED_ITEMS = [
    'modern_industrialization:replicator'
];

// Hide items
ServerEvents.tags("item", (event) => {
    DELETED_ITEMS.forEach(item => {
        event.add("c:hidden_from_recipe_viewers", item);
        console.log(`Hid item from recipe viewers: ${item}`);
    });
});

// Remove all recipes that output hidden items
ServerEvents.recipes(event => {
    DELETED_ITEMS.forEach(item => {
        event.remove({ output: item });
        console.log(`Removed recipes for: ${item}`);
    });
});
