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

    const id_prefix = 'powah:kubejs/energizing';

    const recipes = [
        {
            ingredients: [
                { item: 'emendatusenigmatica:signalum_ingot' },
                { item: 'integrateddynamics:crystalized_menril_chunk' },
                { item: 'integrateddynamics:crystalized_menril_chunk' }
            ],
            energy: 1024000,
            result: Item.of('jaept:overcharged_alloy', '{Energy:1024000}').toResultJson(),
            id: 'overcharged_alloy'
        },
        {
            ingredients: [
                { item: 'powah:capacitor_basic' },
                { item: 'powah:capacitor_basic' },
                { item: 'buildinggadgets:construction_paste' }
            ],
            energy: 8000,
            result: Item.of('powah:capacitor_basic_large').toResultJson(),
            id: 'capacitor_basic_large'
        },
        {
            ingredients: [
                { item: 'occultism:otherstone_tablet' },
                { item: 'powah:dielectric_paste' },
                { item: 'powah:dielectric_paste' },
                { item: 'powah:dielectric_paste' },
                { item: 'powah:dielectric_paste' }
            ],
            energy: 8000,
            result: Item.of('powah:blank_card').toResultJson(),
            id: 'blank_card'
        },
        {
            ingredients: [
                { item: 'botania:mana_pearl' },
                { item: 'powah:dielectric_paste' },
                { item: 'powah:dielectric_paste' },
                { item: 'xnet:antenna' },
                { item: 'xnet:antenna' }
            ],
            energy: 8000,
            result: Item.of('powah:aerial_pearl').toResultJson(),
            id: 'aerial_pearl'
        },
        {
            ingredients: [
                { item: 'minecraft:snowball' },
                { item: 'thermal:blitz_powder' }
            ],
            energy: 100000,
            result: Item.of('powah:charged_snowball').toResultJson(),
            id: 'charged_snowball'
        },
        {
            ingredients: [
                { item: 'occultism:soul_gem' },
                { item: 'astralsorcery:resonating_gem' },
                { tag: 'forge:dusts/sapphire' }
            ],
            energy: 40000,
            result: Item.of('kubejs:vibrant_gem', 2).toResultJson(),
            id: 'vibrant_gem'
        },
        {
            ingredients: [
                { item: 'farmersdelight:straw' },
                { item: 'farmersdelight:straw' },
                { item: 'immersiveengineering:wirecoil_redstone' }
            ],
            energy: 2000,
            result: Item.of('botania:redstone_root').toResultJson(),
            id: 'redstone_root'
        },
        {
            ingredients: [
                { item: 'emendatusenigmatica:certus_quartz_gem' }
            ],
            energy: 4000,
            result: Item.of('emendatusenigmatica:charged_certus_quartz_gem').toResultJson(),
            id: 'charged_certus_quartz'
        },
        {
            ingredients: [
                { item: 'emendatusenigmatica:redstone_crystal' },
                { item: 'minecraft:ghast_tear' },
                { item: 'twilightforest:borer_essence' },
                { item: 'twilightforest:borer_essence' }
            ],
            energy: 4000,
            result: Item.of('twilightforest:carminite').toResultJson(),
            id: 'carminite'
        },
        {
            ingredients: [
                { item: 'kubejs:scarlet_gem' },
                { item: 'twilightforest:borer_essence' },
                { item: 'twilightforest:borer_essence' },
                { item: 'twilightforest:borer_essence' },
                { item: 'twilightforest:borer_essence' }
            ],
            energy: 32000,
            result: Item.of('twilightforest:carminite',8).toResultJson(),
            id: 'carminite_multiple'
        },
        {
            ingredients: [
                { item: 'create:shadow_steel' },
                { item: 'twilightforest:moonworm' },
                { tag: 'minecraft:leaves' }
            ],
            energy: 4000,
            result: Item.of('twilightforest:steeleaf_ingot').toResultJson(),
            id: 'steeleaf_ingot'
        },
        {
            ingredients: [
                { item: 'botania:quartz_mana' },
                { item: 'industrialforegoing:fertilizer' },
                { item: 'kubejs:blazing_powder' },
                { item: 'kubejs:blazing_powder' }
            ],
            energy: 2000,
            result: Item.of('botania:quartz_blaze').toResultJson(),
            id: 'quartz_blaze'
        },
        {
            ingredients: [
                { item: 'appliedenergistics2:quartz_glass' },
                { item: 'astralsorcery:illumination_powder' },
                { item: 'kubejs:stainless_steel_nugget' },
                { item: 'kubejs:stainless_steel_nugget' }
            ],
            energy: 4000,
            result: Item.of('appliedenergistics2:quartz_vibrant_glass').toResultJson(),
            id: 'quartz_vibrant_glass'
        },
        {
            ingredients: [
                { item: 'appliedenergistics2:semi_dark_monitor' },
                { item: 'occultism:stable_wormhole' },
                { item: 'appliedenergistics2:engineering_processor' }
            ],
            energy: 40000,
            result: Item.of('appliedenergistics2:terminal').toResultJson(),
            id: 'terminal'
        },
        {
            ingredients: [
                { item: 'industrialforegoing:pity_black_hole_unit' },
                { item: 'storagedrawers:diamond_storage_upgrade' },
                { item: 'storagedrawers:diamond_storage_upgrade' },
                { item: 'eidolon:wicked_weave' },
                { item: 'eidolon:wicked_weave' },
                { item: 'botania:mana_pearl' }
            ],
            energy: 32000,
            result: Item.of('industrialforegoing:simple_black_hole_unit').toResultJson(),
            id: 'simple_black_hole_unit'
        },
        {
            ingredients: [
                { item: 'industrialforegoing:pity_black_hole_tank' },
                { item: 'mob_grinding_utils:jumbo_tank' },
                { item: 'eidolon:wicked_weave' },
                { item: 'eidolon:wicked_weave' },
                { item: 'botania:mana_pearl' }
            ],
            energy: 32000,
            result: Item.of('industrialforegoing:simple_black_hole_tank').toResultJson(),
            id: 'simple_black_hole_tank'
        },
        {
            ingredients: [
                { item: 'emendatusenigmatica:fluix_dust' },
                { item: 'appliedenergistics2:matter_ball' }
            ],
            energy: 8000,
            result: Item.of('appliedenergistics2:fluix_crystal_seed').toResultJson(),
            id: 'fluix_crystal_seed'
        },
        {
            ingredients: [
                { item: 'rftoolsbase:machine_frame' },
                Ingredient.customNBT('rftoolspower:blazing_rod', (tag) => {
                    return (tag.infSteps == 0 && tag.time <= 0);
                }).toJson(),
                { item: 'rftoolspower:power_core1' },
                { item: 'rftoolspower:power_core1' },
                { item: 'rftoolspower:power_core1' },
                { item: 'rftoolspower:power_core1' }
            ],
            energy: 50000,
            result: Item.of('rftoolspower:cell1').toResultJson(),
            id: 'powercell_low'
        },
        {
            ingredients: [
                { item: 'appliedenergistics2:1k_cell_component' },
                { item: 'appliedenergistics2:1k_cell_component' },
                { item: 'appliedenergistics2:1k_cell_component' },
                { item: 'kubejs:dimension_gear' },
                { item: 'appliedenergistics2:calculation_processor' }
            ],
            energy: 4000,
            result: Item.of('appliedenergistics2:4k_cell_component').toResultJson(),
            id: '4k_cell_component'
        },
        {
            ingredients: [
                { item: 'appliedenergistics2:1k_fluid_cell_component' },
                { item: 'appliedenergistics2:1k_fluid_cell_component' },
                { item: 'appliedenergistics2:1k_fluid_cell_component' },
                { item: 'kubejs:dimension_gear' },
                { item: 'appliedenergistics2:calculation_processor' }
            ],
            energy: 4000,
            result: Item.of('appliedenergistics2:4k_fluid_cell_component').toResultJson(),
            id: '4k_fluid_cell_component'
        },
        {
            ingredients: [
                { tag: 'appliedenergistics2:interface' },
                { item: 'integrateddynamics:part_inventory_reader' }
            ],
            energy: 20000,
            result: Item.of('appliedenergistics2:storage_bus').toResultJson(),
            id: 'storage_bus'
        },
        {
            ingredients: [
                { tag: 'appliedenergistics2:fluid_interface' },
                { item: 'integrateddynamics:part_fluid_reader' }
            ],
            energy: 20000,
            result: Item.of('appliedenergistics2:fluid_storage_bus').toResultJson(),
            id: 'fluid_storage_bus'
        },
        /*
        {
            ingredients: [
                { item: 'kubejs:stainless_steel_ingot' },
                { item: 'create:shadow_steel' },
                { item: 'industrialforegoing:fertilizer' }
            ],
            energy: 32000,
            result: {
                item: 'powah:steel_energized',
                count: 2
            },
            id: 'steel_energized'
        }
        */
    ];

    recipes.forEach((recipe) => {
        recipe.type = 'powah:energizing';
        event.custom(recipe).id(`${id_prefix}/${recipe.id}`);
    });
});
