'use strict';
onEvent('recipes', (event) => {
    if (global.isNormalMode) {
        return;
    }
    const id_prefix = 'enigmatica:expert/kubejs/shapeless/';
    const recipes = [
        {
            output: 'kubejs:engineers_school_project',
            inputs: [
                'kubejs:construction_tools',
                'kubejs:engineering_student_meals',
                'kubejs:landscaping_materials',
                'kubejs:foundation_materials',
                'kubejs:building_materials',
                'kubejs:building_materials',
                'kubejs:building_materials',
                'kubejs:building_materials',
                'kubejs:building_materials'
            ],
            id: `${id_prefix}engineers_school_project`
        },
        {
            output: 'kubejs:engineers_school_upgrades',
            inputs: ['kubejs:computer_package', 'kubejs:fluid_drill_package'],
            id: `${id_prefix}engineers_school_upgrades`
        },
        {
            output: 'kubejs:cpu_core_mk_1026',
            inputs: ['rftoolscontrol:cpu_core_500'],
            id: `${id_prefix}cpu_tier_one_conversion`
        },
        {
            output: 'rftoolscontrol:cpu_core_500',
            inputs: ['kubejs:cpu_core_mk_1026'],
            id: `${id_prefix}cpu_tier_one_reversion`
        },
        {
            output: 'kubejs:cpu_core_eg_28222',
            inputs: ['rftoolscontrol:cpu_core_1000'],
            id: `${id_prefix}cpu_tier_two_conversion`
        },
        {
            output: 'rftoolscontrol:cpu_core_1000',
            inputs: ['kubejs:cpu_core_eg_28222'],
            id: `${id_prefix}cpu_tier_two_reversion`
        },
        {
            output: 'kubejs:cpu_core_as_81221',
            inputs: ['rftoolscontrol:cpu_core_2000'],
            id: `${id_prefix}cpu_tier_three_conversion`
        },
        {
            output: 'rftoolscontrol:cpu_core_2000',
            inputs: ['kubejs:cpu_core_as_81221'],
            id: `${id_prefix}cpu_tier_three_reversion`
        }
    ];

    recipes.forEach((recipe) => {
        event.shapeless(recipe.output, recipe.inputs).id(recipe.id);
    });
});
