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

    const id_prefix = 'botania:kubejs/terra_plate';
    const recipes = [
        {
            inputs: [
                '#forge:ingots/manasteel',
                '#forge:dusts/dimensional',
                'botania:mana_pearl',
                '#forge:ingots/steeleaf',
                'botania:mana_diamond',
                'emendatusenigmatica:charged_certus_quartz_gem'
            ],
            output: 'botania:terrasteel_ingot',
            mana: 500000,
            id: 'terrasteel_ingot'
        },
        {
            inputs: [
                'appliedenergistics2:16k_cell_component',
                'appliedenergistics2:16k_cell_component',
                'appliedenergistics2:16k_cell_component',
                '#forge:gears/fluix_steel',
                'appliedenergistics2:calculation_processor'
            ],
            output: 'appliedenergistics2:64k_cell_component',
            mana: 20000,
            id: '64k_cell_component'
        },
        {
            inputs: [
                'appliedenergistics2:16k_fluid_cell_component',
                'appliedenergistics2:16k_fluid_cell_component',
                'appliedenergistics2:16k_fluid_cell_component',
                '#forge:gears/fluix_steel',
                'appliedenergistics2:calculation_processor'
            ],
            output: 'appliedenergistics2:64k_fluid_cell_component',
            mana: 20000,
            id: '64k_fluid_cell_component'
        },
        {
            inputs: [
                'modularrouters:fluid_module',
                'modularrouters:fluid_module',
                'modularrouters:fluid_module',
                'modularrouters:fluid_module',
                'appliedenergistics2:fluix_pearl'
            ],
            output: '4x modularrouters:fluid_module_2',
            mana: 80000,
            id: 'fluid_module_2'
        },
        {
            inputs: [
                'modularrouters:puller_module_1',
                'modularrouters:puller_module_1',
                'modularrouters:puller_module_1',
                'modularrouters:puller_module_1',
                'appliedenergistics2:fluix_pearl'
            ],
            output: '4x modularrouters:puller_module_2',
            mana: 80000,
            id: 'puller_module_2'
        },
        {
            inputs: [
                'modularrouters:sender_module_1',
                'modularrouters:sender_module_1',
                'modularrouters:sender_module_1',
                'modularrouters:sender_module_1',
                'appliedenergistics2:fluix_pearl'
            ],
            output: '4x modularrouters:sender_module_2',
            mana: 80000,
            id: 'sender_module_2'
        },
        {
            inputs: [
                'rftoolspower:power_core2',
                'create:shadow_steel',
                '#forge:dusts/fluix_steel',
                'powah:photoelectric_pane',
                '#forge:dusts/fluix_steel',
                'create:shadow_steel'
            ],
            output: 'rftoolspower:power_core3',
            mana: 50000,
            id: 'power_core3'
        }
    ];

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