onEvent('recipes', (event) => {
    const id_prefix = 'enigmatica:base/astralsorcery/infuser/';

    data = {
        recipes: [
            {
                input: { item: 'thermal:blizz_rod' },
                fluid: 'astralsorcery:liquid_starlight',
                consumptionChance: 0.1,
                output: 'thermal:blizz_powder',
                count: 4,
                duration: 100
            },
            {
                input: { item: 'thermal:basalz_rod' },
                fluid: 'astralsorcery:liquid_starlight',
                consumptionChance: 0.1,
                output: 'thermal:basalz_powder',
                count: 4,
                duration: 100
            },
            {
                input: { item: 'thermal:blitz_rod' },
                fluid: 'astralsorcery:liquid_starlight',
                consumptionChance: 0.1,
                output: 'thermal:blitz_powder',
                count: 4,
                duration: 100
            },
            {
                input: { tag: 'forge:dusts/iron' },
                fluid: 'astralsorcery:liquid_starlight',
                consumptionChance: 0.1,
                output: 'astralsorcery:stardust',
                count: 1,
                duration: 100
            },
            {
                input: Ingredient.of([
                    'byg:amaranth',
                    'byg:cyan_amaranth',
                    'byg:magenta_amaranth',
                    'byg:orange_amaranth',
                    'byg:purple_amaranth'
                ]),
                fluid: 'astralsorcery:liquid_starlight',
                consumptionChance: 1.1,
                output: 'astralsorcery:glow_flower',
                count: 1,
                duration: 100
            },
            {
                input: { item: 'resourcefulbees:starry_honeycomb' },
                fluid: 'astralsorcery:liquid_starlight',
                consumptionChance: 0.1,
                output: 'astralsorcery:starmetal_ingot',
                count: 3,
                duration: 100
            },
            {
                input: { item: 'resourcefulbees:starry_honeycomb_block' },
                fluid: 'astralsorcery:liquid_starlight',
                consumptionChance: 0.1,
                output: 'astralsorcery:starmetal',
                count: 3,
                duration: 100
            }
        ]
    };

    data.recipes.forEach((recipe) => {
        fallback_id(
            event.custom({
                type: 'astralsorcery:infuser',
                fluidInput: recipe.fluid,
                input: recipe.input,
                output: {
                    item: recipe.output,
                    count: recipe.count
                },
                consumptionChance: recipe.consumptionChance,
                duration: recipe.duration,
                consumeMultipleFluids: false,
                acceptChaliceInput: true,
                copyNBTToOutputs: false
            }),
            id_prefix
        );
    });
});
