const VINTAGE_STORAGE_UNPACKING = [
    {
        remove: 'createnuclear:crafting/raw_lead_from_decompacting',
        input: { item: 'createnuclear:raw_lead_block' },
        output: 'createnuclear:raw_lead'
    },
    {
        remove: 'createnuclear:crafting/raw_uranium_from_decompacting',
        input: { tag: 'forge:storage_blocks/raw_uranium' },
        output: 'createnuclear:raw_uranium'
    },
    {
        remove: 'vintage:craft/sulfur_block_to_items',
        input: { tag: 'forge:storage_blocks/sulfur' },
        output: 'vintage:sulfur'
    }
]

ServerEvents.recipes(event => {
    VINTAGE_STORAGE_UNPACKING.forEach(recipe => {
        event.remove({ id: recipe.remove })

        event.custom({
            type: 'vintage:vibrating',
            ingredients: [recipe.input],
            results: [
                {
                    item: recipe.output,
                    count: 9
                }
            ],
            processingTime: 300
        }).id(`factorio_nuclear:vibrating/storage_unpacking/${recipe.output.replace(':', '/')}`)
    })
})
