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

    const id_prefix = 'appliedenergistics2:kubejs/aggregator';

    const recipes = [
        {
            inputs: [
                'emendatusenigmatica:charged_certus_quartz_gem',
                'materialis:pink_slime_crystal',
                'botania:quartz_red'
            ],
            output: '2x emendatusenigmatica:fluix_gem',
            time: 25,
            energy: 20000,
            id: 'fluix_gem'
        },
        {
            inputs: [
                'lazierae2:carbonic_fluix_dust',
                'kubejs:stainless_steel_dust',
                'appliedenergistics2:sky_dust'
            ],
            output: 'kubejs:fluix_steel_dust',
            time: 40,
            energy: 20000,
            id: 'fluix_steel_dust'
        },
        {
            inputs: [
                'lazierae2:carbonic_fluix_dust',
                'kubejs:vibrant_gem',
                'botania:corporea_spark'
            ],
            output: 'lazierae2:resonating_gem',
            time: 120,
            energy: 20000,
            id: 'resonating_gem'
        },
        {
            inputs: [
                'lazierae2:carbonic_fluix_dust',
                'appliedenergistics2:matter_ball',
                'kubejs:neuron'
            ],
            output: 'lazierae2:speculation_core_1',
            time: 20,
            energy: 10000,
            id: 'speculation_core_1'
        }
    ];

    recipes.forEach((recipe) => {

        let constructed_recipe = {
            type: 'lazierae2:aggregator',
            process_time: recipe.time,
            energy_cost: recipe.energy,
            output: Item.of(recipe.output).toResultJson(),
            input: recipe.inputs.map((input) => Ingredient.of(input).toJson())
        };

        event.custom(constructed_recipe).id(`${id_prefix}/${recipe.id}`);

    });

});