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

    const id_prefix = 'botania:kubejs/terra_plate';
    const recipes = [
        {
            inputs: [
                { tag: 'forge:ingots/manasteel' },
                { tag: 'forge:dusts/dimensional' },
                { item: 'botania:mana_pearl' },
                { tag: 'forge:ingots/steeleaf' },
                { item: 'botania:mana_diamond' },
                { item: 'emendatusenigmatica:charged_certus_quartz_gem' }
            ],
            output: { item: 'botania:terrasteel_ingot' },
            mana: 250000,
            id: 'terrasteel_ingot'
        },
        {
            inputs: [
                { item: 'appliedenergistics2:4k_cell_component' },
                { item: 'appliedenergistics2:4k_cell_component' },
                { item: 'appliedenergistics2:4k_cell_component' },
                { item: 'rftoolsbase:infused_diamond' },
                { item: 'appliedenergistics2:calculation_processor' }
            ],
            output: { item: 'appliedenergistics2:16k_cell_component' },
            mana: 20000,
            id: '16k_cell_component'
        },
        {
            inputs: [
                { item: 'appliedenergistics2:4k_fluid_cell_component' },
                { item: 'appliedenergistics2:4k_fluid_cell_component' },
                { item: 'appliedenergistics2:4k_fluid_cell_component' },
                { item: 'rftoolsbase:infused_diamond' },
                { item: 'appliedenergistics2:calculation_processor' }
            ],
            output: { item: 'appliedenergistics2:16k_fluid_cell_component' },
            mana: 20000,
            id: '16k_fluid_cell_component'
        }
    ];

    recipes.forEach((recipe) => {
        event.custom({
            type: 'botania:terra_plate',
            ingredients: recipe.inputs.map((input) => Ingredient.of(input).toJson()),
            result: Item.of(recipe.output).toJson(),
            mana: recipe.mana
        }).id(`${id_prefix}/${recipe.id}`);
    });
});
