onEvent('recipes', event => {

    const id_prefix = 'create:kubejs/mechanical_crafting';
    const recipes = [
        {
            output: 'create:furnace_engine',
            pattern: ['AABC', 'DEFG', 'AABC'],
            key: {
                A: 'emendatusenigmatica:lumium_plate',
                B: 'eidolon:gold_inlay',
                C: 'emendatusenigmatica:brass_ingot',
                D: Item.of('tconstruct:large_plate', '{Material:"materialis:brass"}'),
                E: 'create:precision_mechanism',
                F: 'minecraft:piston',
                G: 'create:brass_casing'
            },
            id: 'furnace_engine'
        },
        {
            output: 'create:flywheel',
            pattern: [' AAA ', 'ABBBA', 'ABCBA', 'ABBBA', ' AAA '],
            key: {
                A: 'emendatusenigmatica:brass_ingot',
                B: 'emendatusenigmatica:lumium_rod',
                C: 'create:brass_casing'
            },
            id: 'flywheel'
        },
        {
            output: 'create:rotation_speed_controller',
            pattern: ['ABA', 'ACA', 'DED', 'FFF'],
            key: {
                A: 'emendatusenigmatica:brass_ingot',
                B: 'create:metal_bracket',
                C: 'create:precision_mechanism',
                D: 'create:brass_casing',
                E: 'create:shaft',
                F: 'emendatusenigmatica:lumium_plate'
            },
            id: 'rotation_speed_controller'
        },
        {
            output: 'create:mechanical_arm',
            pattern: ['ABC', '  B', ' D ', 'EFE', 'GGG'],
            key: {
                A: 'kubejs:andesite_hand',
                B: 'emendatusenigmatica:lumium_rod',
                C: 'create:precision_mechanism',
                D: 'create:electron_tube',
                E: 'emendatusenigmatica:brass_plate',
                F: 'create:cogwheel',
                G: 'create:brass_casing'
            },
            id: 'mechanical_arm'
        },
        {
            output: '2x create:crushing_wheel',
            pattern: [' AAA ', 'ABCBA', 'ACDCA', 'ABCBA', ' AAA '],
            key: {
                A: 'appliedenergistics2:sky_stone_block',
                B: 'create:shadow_steel_casing',
                C: 'create:andesite_casing',
                D: 'kubejs:andesite_alloy_block'
            },
            id: 'crushing_wheel'
        },
        {
            output: 'createaddition:alternator',
            pattern: ['  A  ', ' BCB ', 'BCDCB', ' BEB '],
            key: {
                A: 'create:andesite_alloy',
                B: 'emendatusenigmatica:cast_iron_plate',
                C: 'createaddition:copper_spool',
                D: 'kubejs:inductive_mechanism',
                E: 'createaddition:capacitor'
            },
            id: 'alternator'
        },
        {
            output: 'createaddition:electric_motor',
            pattern: ['  A  ', ' BCB ', 'BCDCB', ' BEB '],
            key: {
                A: 'create:andesite_alloy',
                B: 'emendatusenigmatica:brass_plate',
                C: 'createaddition:copper_spool',
                D: 'kubejs:inductive_mechanism',
                E: 'createaddition:capacitor'
            },
            id: 'electric_motor'
        },
        {
            output: 'bloodmagic:alchemytable',
            pattern: ['AABAA', ' CDC ', 'EFEFE'],
            key: {
                A: 'jaept:scarlet_rope',
                B: 'eidolon:worktable',
                C: 'bloodmagic:blankrune',
                D: 'integrateddynamics:portable_logic_programmer',
                E: 'bloodmagic:reinforcedslate',
                F: 'create:metal_bracket'
            },
            id: 'alchemy_table'
        },
        {
            output: 'miniutilities:iron_drum',
            pattern: ['AAAAA', 'ABBBA', 'ABCBA', 'ABBBA', 'AAAAA'],
            key: {
                A: 'emendatusenigmatica:aluminum_plate',
                B: 'mob_grinding_utils:tank',
                C: 'bloodmagic:reagentholding'
            },
            id: 'iron_drum'
        },
        {
            output: '24x integrateddynamics:variable',
            pattern: [' AAA ', 'ABBBA', 'ABCBA', 'ABBBA', ' AAA '],
            key: {
                A: 'integrateddynamics:crystalized_menril_chunk',
                B: 'minecraft:paper',
                C: 'tconstruct:pattern'
            },
            id: 'variable'
        },
        {
            output: 'integrateddynamics:mechanical_squeezer',
            pattern: ['BBCBB', 'BDEDB', 'CFGFC', 'BDHDB', 'BBCBB'],
            key: {
                B: 'integrateddynamics:crystalized_menril_block',
                C: 'emendatusenigmatica:enderium_plate',
                D: 'create:shadow_steel_casing',
                E: 'createaddition:electric_motor',
                F: 'integrateddynamics:energy_battery',
                G: 'integrateddynamics:squeezer',
                H: 'create:fluid_tank'
            },
            id: 'mechanical_squeezer'
        },
        {
            output: 'integrateddynamics:mechanical_drying_basin',
            pattern: ['AACAA', 'BDEDB', 'BFGFB', 'BDHDB', 'AA AA'],
            key: {
                A: 'integrateddynamics:crystalized_menril_block',
                B: 'emendatusenigmatica:cast_iron_plate',
                C: 'integrateddynamics:logic_director',
                D: 'create:shadow_steel_casing',
                E: 'createaddition:electric_motor',
                F: 'integrateddynamics:energy_battery',
                G: 'integrateddynamics:drying_basin',
                H: 'create:basin'
            },
            id: 'mechanical_drying_basin'
        },
        {
            output: 'bloodmagic:incensealtar',
            pattern: ['A A', 'BCB', 'DED', 'DFD', 'BGB'],
            key: {
                A: 'quark:thatch_stairs',
                B: 'quark:thatch',
                C: 'minecraft:netherrack',
                D: 'emendatusenigmatica:brass_rod',
                E: 'integrateddynamics:logic_director',
                F: 'bloodmagic:selfsacrificerune',
                G: 'quark:thatch_slab'
            },
            id: 'incense_altar'
        },
        {
            output: 'masterfulmachinery:mechanical_artifact_assembler_controller',
            pattern: ['AAEAA', 'ABCBA', 'ECDCE', 'ABCBA', 'AAEAA'],
            key: {
                A: 'create:brass_casing',
                B: 'bloodmagic:infusedslate',
                C: 'create:electron_tube',
                D: 'integrateddynamics:part_display_panel',
                E: 'bloodmagic:blankrune'
            },
            id: 'mechanical_artifact_assembler_controller'
        },
        {
            output: 'mob_grinding_utils:saw',
            pattern: [' ABA ', 'ABCBA', 'ADGDA', ' ACA ', ' EFE '],
            key: {
                A: 'emendatusenigmatica:diamond_crystal',
                B: 'alexsmobs:spiked_scute',
                C: 'create:shaft',
                D: 'mob_grinding_utils:spikes',
                E: 'emendatusenigmatica:cast_iron_plate',
                F: 'kubejs:punch',
                G: 'create:metal_bracket'
            },
            id: 'mob_saw'
        },
        {
            output: 'bloodmagic:soulforge',
            pattern: ['A   A', 'BACAB', ' DED ', 'BDDDB', 'FF FF'],
            key: {
                A: 'mekanism:crystal_iron',
                B: 'bloodmagic:infusedslate',
                C: 'bloodmagic:basemonstersoul',
                D: 'appliedenergistics2:smooth_sky_stone_block',
                E: 'minecraft:blast_furnace',
                F: 'create:shadow_steel_casing'
            },
            id: 'hellfire_forge'
        },
        {
            output: 'bloodmagic:alchemicalreactionchamber',
            pattern: ['AAAAA', 'ABCBA', 'DEFED', 'GBHBG', 'GGGGG'],
            key: {
                A: 'bloodmagic:dungeon_stone',
                B: 'bloodmagic:infusedslate',
                C: '#storagedrawers:drawers',
                D: 'mekanism:crystal_iron',
                E: 'create:fluid_tank',
                F: 'ironfurnaces:iron_furnace',
                G: 'appliedenergistics2:smooth_sky_stone_block',
                H: 'bloodmagic:ingot_hellforged'
            },
            id: 'arc'
        },
        {
            output: 'bloodmagic:demoncrucible',
            pattern: ['A A', 'BCB', 'FBF', 'FDF', 'E E'],
            key: {
                A: 'bloodmagic:ingot_hellforged',
                B: 'bloodmagic:dungeon_stone',
                C: 'create:depot',
                D: 'bloodmagic:demonslate',
                E: 'create:shadow_steel_casing',
                F: 'appliedenergistics2:smooth_sky_stone_wall'
            },
            id: 'demon_crucible'
        },
        {
            output: 'bloodmagic:demoncrystallizer',
            pattern: ['A   A', 'BCDCB', ' ECE ', ' EFE ', 'GGGGG'],
            key: {
                A: 'bloodmagic:reagentgrowth',
                B: 'bloodmagic:demonslate',
                C: 'bloodmagic:blankrune',
                D: 'byg:hypogeal_imperium',
                E: 'appliedenergistics2:smooth_sky_stone_wall',
                F: 'bloodmagic:ingot_hellforged',
                G: 'appliedenergistics2:smooth_sky_stone_slab'
            },
            id: 'demon_crystallizer'
        },
        {
            output: '2x atum:kiln',
            pattern: ['AAAAA', 'ABCBA', 'ADEDA', 'ABCBA', 'AAAAA'],
            key: {
                A: 'atum:limestone_brick_small',
                B: 'kubejs:limestone_brick_runed',
                C: '#forge:crate',
                D: 'atum:limestone_furnace',
                E: 'atum:efreet_heart'
            },
            id: 'kiln'
        },
        {
            output: 'atum:spinning_wheel',
            pattern: ['AAAAA', 'ABCBA', 'ACDCA', 'ABCBA', 'AAEAA'],
            key: {
                A: 'atum:palm_planks',
                B: 'kubejs:limestone_brick_runed',
                C: 'farmersdelight:canvas',
                D: 'create:whisk',
                E: 'atum:palm_hatch'
            },
            id: 'spinning_wheel'
        },
        {
            output: 'atum:godforge',
            pattern: ['AGGGA', 'GBCBG', 'AHHHA', 'GBEBG', 'FDDDF'],
            key: {
                A: 'atum:nebu_ingot',
                B: 'eidolon:gold_inlay',
                C: 'atum:limestone_furnace',
                D: 'atum:ceramic_black',
                E: 'atum:relic_gold_idol',
                F: 'emendatusenigmatica:brass_block',
                G: 'atum:nebu_drop',
                H: 'kubejs:holy_plate'
            },
            id: 'godforge'
        },
        {
            output: 'immersiveengineering:hammer',
            pattern: ['   A   ', '  ABA  ', '   ABA ', '  CDABA', ' CDC A ', 'CDC    ', 'DC     '],
            key: {
                A: 'emendatusenigmatica:cast_iron_ingot',
                B: 'create:shadow_steel',
                C: 'immersiveengineering:wirecoil_structure_rope',
                D: 'minecraft:stick'
            },
            id: 'hammer'
        },
        {
            output: 'astralsorcery:altar_discovery',
            pattern: ['ABBBA', 'CAGAC', 'DDEDD', '  F  ', ' FFF '],
            key: {
                A: 'astralsorcery:marble_raw',
                B: 'kubejs:living_ceramic_black',
                C: 'create:refined_radiance_casing',
                D: 'eidolon:polished_planks_slab',
                E: 'eidolon:worktable',
                F: 'eidolon:polished_planks',
                G: 'astralsorcery:rock_crystal'
            },
            id: 'altar_discovery'
        },
        {
            output: 'kubejs:well_shell',
            pattern: ['A   A', 'B   B', 'C   C', 'B   B', 'GHHHG'],
            key: {
                A: 'astralsorcery:marble_runed',
                B: 'astralsorcery:marble_chiseled',
                C: 'astralsorcery:marble_engraved',
                G: 'astralsorcery:marble_slab',
                H: 'astralsorcery:marble_bricks'
            },
            id: 'well_shell'
        },
        {
            output: 'immersiveengineering:craftingtable',
            pattern: ['AAAAA', 'BCDCB', 'BEEEB', 'GFGFG', 'G G G'],
            key: {
                A: '#forge:treated_wood_slab',
                B: 'emendatusenigmatica:steel_plate',
                C: '#forge:chests/wooden',
                D: 'tconstruct:crafting_station',
                E: 'emendatusenigmatica:steel_ingot',
                F: 'emendatusenigmatica:steel_rod',
                G: '#forge:treated_wood'
            },
            id: 'ie_craftingtable'
        },
        {
            output: 'immersiveengineering:steel_scaffolding_standard',
            pattern: ['AAAAA', 'AAAAA', 'AA AA', 'AAAAA', 'AAAAA'],
            key: {
                A: 'emendatusenigmatica:steel_rod'
            },
            id: 'steel_scaffolding'
        },
        {
            output: 'immersiveengineering:alu_scaffolding_standard',
            pattern: ['AAAAA', 'AAAAA', 'AA AA', 'AAAAA', 'AAAAA'],
            key: {
                A: 'emendatusenigmatica:aluminum_rod'
            },
            id: 'alu_scaffolding'
        },
        {
            output: 'immersiveengineering:watermill',
            pattern: [' ABA ', 'ACDCA', 'BDEDB', 'ACDCA', ' ABA '],
            key: {
                A: '#forge:treated_wood_slab',
                B: 'immersiveengineering:waterwheel_segment',
                C: 'immersiveengineering:stick_treated',
                D: '#forge:treated_wood',
                E: 'emendatusenigmatica:iron_gear'
            },
            id: 'watermill'
        },
        {
            output: 'pedestals:coin/crafter3',
            pattern: [' AAA ', 'ABCBA', 'ADEDA', 'ABCBA', ' AAA '],
            key: {
                A: 'emendatusenigmatica:electrum_plate',
                B: 'immersiveengineering:dust_hop_graphite',
                D: 'occultism:otherstone_tablet',
                E: 'pedestals:coin/crafter2',
                C: 'engineersdecor:metal_crafting_table'
            },
            id: 'pedestal_upgrade_crafter3'
        },
        {
            output: 'pedestals:coin/compactor3',
            pattern: [' AAA ', 'ABCBA', 'ADEDA', 'ABCBA', ' AAA '],
            key: {
                A: 'emendatusenigmatica:electrum_plate',
                B: 'immersiveengineering:dust_hop_graphite',
                D: 'occultism:otherstone_tablet',
                E: 'pedestals:coin/compactor2',
                C: 'immersiveengineering:mold_packing_9'
            },
            id: 'pedestal_upgrade_compactor3'
        },
        {
            output: 'immersiveengineering:capacitor_lv',
            pattern: ['AABAA', 'ACDCA', 'EFDFE', 'ACDCA', 'AAGAA'],
            key: {
                A: '#forge:treated_wood',
                B: 'immersiveengineering:component_iron',
                C: 'emendatusenigmatica:steel_rod',
                D: 'immersiveengineering:coil_lv',
                E: 'immersiveengineering:sheetmetal_nickel',
                F: Item.of('jaept:overcharged_alloy', '{Damage:0,Energy:1024000}'),
                G: 'create:electron_tube'
            },
            id: 'capacitor_lv'
        },
    ];

    recipes.forEach((recipe) => {
        event.recipes.create.mechanical_crafting(recipe.output, recipe.pattern, recipe.key).id(`${id_prefix}/${recipe.id}`);
    });

})