onEvent('recipes', (event) => {

    const id_prefix = 'occultism:kubejs/crushing';

    const recipes = [
        {
            input: { item: 'bloodmagic:blankslate' },
            output: 'kubejs:bloodslate_dust',
            count: 1,
            time: 80,
            ignore_crushing_multiplier: true,
            id: 'bloodslate_dust_1'
        },
        {
            input: { item: 'bloodmagic:reinforcedslate' },
            output: 'kubejs:bloodslate_dust',
            count: 2,
            time: 100,
            ignore_crushing_multiplier: true,
            id: 'bloodslate_dust_2'
        },
        {
            input: { item: 'bloodmagic:infusedslate' },
            output: 'kubejs:bloodslate_dust',
            count: 4,
            time: 120,
            ignore_crushing_multiplier: true,
            id: 'bloodslate_dust_4'
        },
        {
            input: { item: 'bloodmagic:demonslate' },
            output: 'kubejs:bloodslate_dust',
            count: 8,
            time: 140,
            ignore_crushing_multiplier: true,
            id: 'bloodslate_dust_8'
        },
        {
            input: { item: 'bloodmagic:etherealslate' },
            output: 'kubejs:bloodslate_dust',
            count: 16,
            time: 160,
            ignore_crushing_multiplier: true,
            id: 'bloodslate_dust_16'
        },
        {
            input: { tag: 'bloodmagic:crystals/demon' },
            output: 'bloodmagic:corrupted_tinydust',
            count: 2,
            time: 100,
            ignore_crushing_multiplier: false,
            id: 'corrupted_tinydust'
        },
        {
            input: { item: 'buildinggadgets:construction_block_dense' },
            output: 'buildinggadgets:construction_paste',
            count: 1,
            time: 200,
            ignore_crushing_multiplier: false,
            id: 'construction_paste'
        }
    ];

    recipes.forEach((recipe) => {

        event.custom({
                type: 'occultism:crushing',
                ingredient: recipe.input,
                result: {
                    item: recipe.output,
                    count: recipe.count
                },
                crushing_time: recipe.time,
                ignore_crushing_multiplier: recipe.ignore_crushing_multiplier
        }).id(`${id_prefix}/${recipe.id}`);
        
    });

    ores.forEach(type => {
        const ore = `#forge:ores/${type}`;
        const crushed = itemOf(`#create:crushed_ores/${type}`);
        if(crushed != null) {
            event.custom({
                type: 'occultism:crushing',
                ingredient: Ingredient.of(ore).toJson(),
                result: Item.of(crushed).toResultJson(),
                crushing_time: 80,
                ignore_crushing_multiplier: false
            }).id(`${id_prefix}/${type}`);
        }
    });
});