ServerEvents.recipes((event) => {
    const id_prefix = 'enigmatica:enderio/slicing/';

    const recipes = [
        {
            output: {
                id: 'geneticsresequenced:organic_matter',
                components: { 'geneticsresequenced:entity_type': 'ars_nouveau:wilden_hunter' },
                count: 8
            },
            inputs: [
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'minecraft:goat' }
                },
                { item: 'minecraft:skeleton_skull' },
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'minecraft:wolf' }
                },
                { item: 'malum:imitation_flesh' },
                { item: 'justdirethings:polymorphic_catalyst' },
                { item: 'malum:imitation_flesh' }
            ],
            energy: 20000,
            id: `${id_prefix}wilden_hunter`
        },
        {
            output: {
                id: 'geneticsresequenced:organic_matter',
                components: { 'geneticsresequenced:entity_type': 'minecraft:mooshroom' },
                count: 8
            },
            inputs: [
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'aether:flying_cow' }
                },
                { item: 'minecraft:red_mushroom_block' },
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'aether:flying_cow' }
                },
                { item: 'malum:imitation_flesh' },
                { item: 'justdirethings:polymorphic_catalyst' },
                { item: 'malum:imitation_flesh' }
            ],
            energy: 20000,
            id: `${id_prefix}mooshroom`
        },
        {
            output: {
                id: 'geneticsresequenced:organic_matter',
                components: { 'geneticsresequenced:entity_type': 'aether:cockatrice' },
                count: 8
            },
            inputs: [
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'aether:moa' }
                },
                { item: 'minecraft:skeleton_skull' },

                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'cold_sweat:chameleon' }
                },
                { item: 'malum:imitation_flesh' },
                { item: 'justdirethings:polymorphic_catalyst' },
                { item: 'malum:imitation_flesh' }
            ],
            energy: 20000,
            id: `${id_prefix}cockatrice`
        },
        {
            output: {
                id: 'geneticsresequenced:organic_matter',
                components: { 'geneticsresequenced:entity_type': 'ars_nouveau:wilden_guardian' },
                count: 8
            },
            inputs: [
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'minecraft:polar_bear' }
                },
                { item: 'minecraft:skeleton_skull' },
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'minecraft:guardian' }
                },
                { item: 'malum:imitation_flesh' },
                { item: 'justdirethings:polymorphic_catalyst' },
                { item: 'malum:imitation_flesh' }
            ],
            energy: 20000,
            id: `${id_prefix}wilden_guardian`
        },
        {
            output: {
                id: 'geneticsresequenced:organic_matter',
                components: { 'geneticsresequenced:entity_type': 'ars_nouveau:wilden_stalker' },
                count: 8
            },
            inputs: [
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'minecraft:bat' }
                },
                { item: 'minecraft:skeleton_skull' },
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'minecraft:wolf' }
                },
                { item: 'malum:imitation_flesh' },
                { item: 'justdirethings:polymorphic_catalyst' },
                { item: 'malum:imitation_flesh' }
            ],
            energy: 20000,
            id: `${id_prefix}wilden_stalker`
        },
        {
            output: { id: 'enderio:z_logic_controller', count: 1 },
            inputs: [
                { item: 'malum:soul_stained_steel_plating' },
                { item: 'enderio:zombie_electrode' },
                { item: 'malum:soul_stained_steel_plating' },
                { item: 'malum:imitation_flesh' },
                { item: 'ae2:logic_processor' },
                { item: 'malum:imitation_flesh' }
            ],
            energy: 20000,
            id: `${id_prefix}z_logic_controller`
        },
        {
            output: { id: 'enderio:guardian_diode', count: 1 },
            inputs: [
                { tag: 'c:plates/brass' },
                { item: 'minecraft:conduit' },
                { tag: 'c:plates/brass' },
                { item: 'malum:prismatic_focus_lens' },
                { item: 'enderio:double_layer_capacitor' },
                { item: 'malum:prismatic_focus_lens' }
            ],
            energy: 20000,
            id: `${id_prefix}guardian_diode`
        },
        {
            output: { id: 'enderio:ender_resonator', count: 1 },
            inputs: [
                { tag: 'c:ingots/end_steel' },
                { item: 'enderio:ender_crystal' },
                { tag: 'c:ingots/end_steel' },
                { tag: 'c:gems/prescient_crystal' },
                { item: 'enderio:octadic_capacitor' },
                { tag: 'c:gems/prescient_crystal' }
            ],
            energy: 20000,
            id: `${id_prefix}ender_resonator`
        },
        {
            output: { id: 'enderio:zombie_electrode', count: 1 },
            inputs: [
                { item: 'pneumaticcraft:transistor' },
                { item: 'minecraft:zombie_head' },
                { item: 'pneumaticcraft:transistor' },
                { tag: 'c:gems/pulsating_crystal' },
                { item: 'enderio:basic_capacitor' },
                { tag: 'c:gems/pulsating_crystal' }
            ],
            energy: 20000,
            id: `${id_prefix}zombie_electrode`
        },
        {
            output: {
                id: 'geneticsresequenced:organic_matter',
                components: { 'geneticsresequenced:entity_type': 'ars_nouveau:whirlisprig' },
                count: 8
            },
            inputs: [
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'minecraft:bee' }
                },
                { item: 'starbunclemania:whirli_prop' },
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'minecraft:allay' }
                },
                { item: 'malum:runic_sapball' },
                { item: 'justdirethings:polymorphic_catalyst' },
                { item: 'malum:runic_sapball' }
            ],
            energy: 20000,
            id: `${id_prefix}whirlisprig`
        },
        {
            output: {
                id: 'geneticsresequenced:organic_matter',
                components: { 'geneticsresequenced:entity_type': 'ars_nouveau:drygmy' },
                count: 8
            },
            inputs: [
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'minecraft:goat' }
                },
                { item: 'starbunclemania:drygmy_horns' },
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'minecraft:allay' }
                },
                { item: 'cold_sweat:goat_fur' },
                { item: 'justdirethings:polymorphic_catalyst' },
                { item: 'cold_sweat:goat_fur' }
            ],
            energy: 20000,
            id: `${id_prefix}drygmy`
        },
        {
            output: {
                id: 'geneticsresequenced:organic_matter',
                components: { 'geneticsresequenced:entity_type': 'minecraft:ravager' },
                count: 8
            },
            inputs: [
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'minecraft:sniffer' }
                },
                { item: 'ars_nouveau:wilden_horn' },
                {
                    type: 'neoforge:components',
                    items: 'geneticsresequenced:dna_helix',
                    components: { 'geneticsresequenced:entity_type': 'minecraft:villager' }
                },
                { item: 'malum:imitation_flesh' },
                { item: 'justdirethings:polymorphic_catalyst' },
                { item: 'malum:imitation_flesh' }
            ],
            energy: 20000,
            id: `${id_prefix}ravager`
        },
        {
            output: { id: 'enigmatica:suffused_wildroot', count: 2 },
            inputs: [
                { item: 'enigmatica:dormant_wildroot' },
                { item: 'ars_nouveau:whirlisprig_charm' },
                { item: 'enigmatica:dormant_wildroot' },
                { item: 'enigmatica:primordial_mud' },
                { item: 'malum:rune_of_oaken_might' },
                { item: 'enigmatica:primordial_mud' }
            ],
            energy: 20000,
            id: `${id_prefix}suffused_wildroot`
        },
        {
            output: { id: 'naturesaura:token_joy', count: 2 },
            inputs: [
                { item: 'ars_technica:calibrated_precision_mechanism' },
                { item: 'ars_additions:lost_codex_entry' },
                { item: 'ars_nouveau:magebloom_fiber' },
                { tag: 'c:essences/air' },
                { item: 'supplementaries:statue' },
                { tag: 'c:essences/air' }
            ],
            energy: 20000,
            id: `${id_prefix}token_joy`
        },
        {
            output: { id: 'naturesaura:token_fear', count: 2 },
            inputs: [
                { item: 'ars_technica:calibrated_precision_mechanism' },
                { item: 'ars_additions:lost_codex_entry' },
                { item: 'ars_nouveau:magebloom_fiber' },
                { tag: 'c:essences/earth' },
                { item: 'supplementaries:statue' },
                { tag: 'c:essences/earth' }
            ],
            energy: 20000,
            id: `${id_prefix}token_fear`
        },
        {
            output: { id: 'naturesaura:token_anger', count: 2 },
            inputs: [
                { item: 'ars_technica:calibrated_precision_mechanism' },
                { item: 'ars_additions:lost_codex_entry' },
                { item: 'ars_nouveau:magebloom_fiber' },
                { tag: 'c:essences/fire' },
                { item: 'supplementaries:statue' },
                { tag: 'c:essences/fire' }
            ],
            energy: 20000,
            id: `${id_prefix}token_anger`
        },
        {
            output: { id: 'naturesaura:token_sorrow', count: 2 },
            inputs: [
                { item: 'ars_technica:calibrated_precision_mechanism' },
                { item: 'ars_additions:lost_codex_entry' },
                { item: 'ars_nouveau:magebloom_fiber' },
                { tag: 'c:essences/water' },
                { item: 'supplementaries:statue' },
                { tag: 'c:essences/water' }
            ],
            energy: 20000,
            id: `${id_prefix}token_sorrow`
        }
    ];

    recipes.forEach((recipe) => {
        recipe.type = 'enderio:slicing';
        event.custom(recipe).id(recipe.id);
    });
});
