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

    const id_prefix = 'botania:kubejs/petal_apothecary';

    const recipes = [
        {
            inputs: [
                '#botania:petals/white',
                '#botania:petals/white',
                '#botania:petals/white',
                '#botania:petals/white',
                'kubejs:holy_symbol',
                {
                    item: 'astralsorcery:attuned_rock_crystal',
                    type: 'nbt_ingredient_predicate:nbt_includes',
                    nbt: {
                        astralsorcery: {
                            constellationName: 'astralsorcery:aevitas',
                            constellationTrait: 'astralsorcery:alcara'
                        }
                    }
                },
                'atum:papyrus_plant'
            ],
            output: 'botania:pure_daisy',
            count: 1,
            id: 'pure_daisy'
        },
        {
            inputs: [
                '#botania:petals/brown',
                '#botania:petals/brown',
                '#botania:petals/red',
                '#botania:petals/light_gray',
                'immersivepetroleum:petcoke_block',
                'astralsorcery:perk_gem_day',
                'atum:papyrus_plant'
            ],
            output: 'botania:endoflame',
            count: 1,
            id: 'endoflame'
        },
        {
            inputs: [
                '#botania:petals/blue',
                '#botania:petals/blue',
                '#botania:petals/cyan',
                '#botania:petals/cyan',
                '#forge:gems/dimensional',
                'astralsorcery:resonating_gem',
                'atum:papyrus_plant'
            ],
            output: 'botania:hydroangeas',
            count: 1,
            id: 'hydroangeas'
        },
        {
            inputs: [
                'botania:grass_seeds',
                'farmersdelight:straw',
                'farmersdelight:straw',
                'atum:shrub',
                'atum:shrub',
                'botania:rune_air',
                'botania:rune_earth',
                'industrialforegoing:fertilizer'
            ],
            output: 'botania:dry_seeds',
            count: 1,
            id: 'dry_seeds'
        },
        {
            inputs: [
                'botania:grass_seeds',
                'atum:golden_date_enchanted',
                'atum:golden_date_enchanted',
                'kubejs:high_protein_fodder',
                'kubejs:high_protein_fodder',
                'botania:rune_fire',
                'botania:rune_earth',
                'industrialforegoing:fertilizer'
            ],
            output: 'botania:golden_seeds',
            count: 1,
            id: 'golden_seeds'
        },
        {
            inputs: [
                'botania:grass_seeds',
                'mob_grinding_utils:golden_egg',
                'botania:cell_block',
                'botania:cell_block',
                'botania:rune_water',
                'botania:rune_earth',
                'industrialforegoing:fertilizer',
                'industrialforegoing:fertilizer'
            ],
            output: 'botania:vivid_seeds',
            count: 1,
            id: 'vivid_seeds'
        },
        {
            inputs: [
                'botania:grass_seeds',
                'tconstruct:scorched_brick',
                'tconstruct:scorched_brick',
                'occultism:afrit_essence',
                'occultism:afrit_essence',
                'botania:rune_fire',
                'botania:rune_air',
                'industrialforegoing:fertilizer'
            ],
            output: 'botania:scorched_seeds',
            count: 1,
            id: 'scorched_seeds'
        },
        {
            inputs: [
                'botania:grass_seeds',
                '#forge:gems/dimensional',
                '#forge:gems/dimensional',
                Item.of('astralsorcery:infused_glass').ignoreNBT(),
                'botania:rune_water',
                'botania:rune_air',
                'industrialforegoing:fertilizer',
                'industrialforegoing:fertilizer'
            ],
            output: 'botania:infused_seeds',
            count: 1,
            id: 'infused_seeds'
        },
        {
            inputs: [
                'botania:grass_seeds',
                'mob_grinding_utils:rotten_egg',
                'astralsorcery:colored_lens_spectral',
                'astralsorcery:colored_lens_spectral',
                'botania:rune_water',
                'botania:rune_fire',
                'industrialforegoing:fertilizer',
                'industrialforegoing:fertilizer'
            ],
            output: 'botania:mutated_seeds',
            count: 1,
            id: 'mutated_seeds'
        },
        {
            inputs: [
                'botania:grass_seeds',
                'botania:black_lotus',
                'botania:black_lotus',
                'twilightforest:naga_scale',
                'botania:rune_spring',
                'botania:rune_summer',
                'mekanism:bio_fuel',
                'mekanism:bio_fuel'
            ],
            output: 'botania:overgrowth_seed',
            count: 1,
            id: 'overgrowth_seed'
        }
    ]

    recipes.forEach((recipe) => {
        recipe.type = 'botania:petal_apothecary';
        recipe.ingredients = recipe.inputs.map((input) => Ingredient.of(input).toJson());
        recipe.output = { item: recipe.output, count: recipe.count };

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

})