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: 100000,
            result: Item.of('jaept:overcharged_alloy', '{Energy:100000}').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' }
            ],
            energy: 100000,
            result: Item.of('powah:charged_snowball').toResultJson(),
            id: 'charged_snowball'
        },
        {
            ingredients: [
                { item: 'occultism:soul_gem' },
                { item: 'astralsorcery:resonating_gem' },
                { item: 'emendatusenigmatica:sapphire_dust' }
            ],
            energy: 40000,
            result: Item.of('kubejs:vibrant_gem', 2).toResultJson(),
            id: 'vibrant_gem'
        },
        {
            ingredients: [
                { item: 'botania:livingwood_twig' },
                { 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: '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',4).toResultJson(),
            id: 'carminite'
        },
        {
            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_core2' },
                { item: 'rftoolspower:power_core2' },
                { item: 'rftoolspower:power_core2' },
                { item: 'rftoolspower:power_core2' }
            ],
            energy: 50000,
            result: Item.of('rftoolspower:cell2').toResultJson(),
            id: 'powercell_medium'
        },
        {
            ingredients: [
                { item: 'appliedenergistics2:4k_cell_component' },
                { item: 'appliedenergistics2:4k_cell_component' },
                { item: 'appliedenergistics2:4k_cell_component' },
                { item: 'rftoolsbase:infused_diamond' },
                { item: 'appliedenergistics2:calculation_processor' }
            ],
            energy: 30000,
            result: Item.of('appliedenergistics2:16k_cell_component').toResultJson(),
            id: '16k_cell_component'
        },
        {
            ingredients: [
                { 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' }
            ],
            energy: 30000,
            result: Item.of('appliedenergistics2:16k_fluid_cell_component').toResultJson(),
            id: '16k_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: 'lazierae2:fluix_iron_ingot' }
            ],
            energy: 40000,
            result: Item.of('lazierae2:fluix_steel_ingot').toResultJson(),
            id: 'fluix_steel_ingot'
        },
        {
            ingredients: [
                { item: 'modularrouters:blank_module' },
                { item: 'integratedtunnels:part_player_simulator' },
                { item: 'pedestals:coin/attack' }
            ],
            energy: 10000,
            result: Item.of('modularrouters:activator_module').toResultJson(),
            id: 'activator_module'
        },
        {
            ingredients: [
                { item: 'modularrouters:blank_module' },
                { item: 'create:content_observer' },
                { item: 'integrateddynamics:part_redstone_writer' }
            ],
            energy: 10000,
            result: Item.of('modularrouters:detector_module').toResultJson(),
            id: 'detector_module'
        },
        {
            ingredients: [
                { item: 'modularrouters:blank_module' },
                { item: 'pedestals:coin/dropper' }
            ],
            energy: 10000,
            result: Item.of('modularrouters:dropper_module').toResultJson(),
            id: 'dropper_module'
        },
        {
            ingredients: [
                { item: 'modularrouters:blank_module' },
                { item: 'powah:ender_core' },
                { item: 'integratedtunnels:part_exporter_energy' }
            ],
            energy: 10000,
            result: Item.of('modularrouters:energy_output_module').toResultJson(),
            id: 'energy_output_module'
        },
        {
            ingredients: [
                { item: 'modularrouters:blank_module' },
                { item: 'integratedtunnels:part_exporter_world_item' }
            ],
            energy: 10000,
            result: Item.of('modularrouters:flinger_module').toResultJson(),
            id: 'flinger_module'
        },
        {
            ingredients: [
                { item: 'modularrouters:blank_module' },
                { item: 'pedestals:coin/fluidrelay' },
                { item: 'integratedtunnels:part_importer_world_fluid' }
            ],
            energy: 10000,
            result: Item.of('modularrouters:fluid_module').toResultJson(),
            id: 'fluid_module'
        },
        {
            ingredients: [
                { item: 'modularrouters:blank_module' },
                { item: 'pedestals:coin/placer' }
            ],
            energy: 10000,
            result: Item.of('modularrouters:placer_module').toResultJson(),
            id: 'placer_module'
        },
        {
            ingredients: [
                { item: 'modularrouters:blank_module' },
                { item: 'pedestals:coin/import' }
            ],
            energy: 10000,
            result: Item.of('modularrouters:puller_module_1').toResultJson(),
            id: 'puller_module_1'
        },
        {
            ingredients: [
                { item: 'modularrouters:blank_module' },
                { item: 'pedestals:coin/export' }
            ],
            energy: 10000,
            result: Item.of('modularrouters:sender_module_1').toResultJson(),
            id: 'sender_module_1'
        },
        {
            ingredients: [
                { item: 'modularrouters:blank_module' },
                { item: 'pedestals:coin/magnet' },
                { item: 'botania:tiny_planet' }
            ],
            energy: 10000,
            result: Item.of('modularrouters:vacuum_module').toResultJson(),
            id: 'vacuum_module'
        },
        {
            ingredients: [
                { item: 'modularrouters:blank_module' },
                { item: 'modularrouters:blank_upgrade' }
            ],
            energy: 4000,
            result: Item.of('modularrouters:augment_core',2).toResultJson(),
            id: 'augment_core'
        },
        {
            ingredients: [
                { item: 'botania:cell_block' },
                { item: 'botania:terrasteel_nugget' },
                { item: 'mekanism:bio_fuel' },
                { item: 'mekanism:bio_fuel' },
                { item: 'mekanism:bio_fuel' }
            ],
            energy: 40000,
            result: Item.of('kubejs:neuron',4).toResultJson(),
            id: 'neuron'
        },
        /*
        {
            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}`);
    });
});
