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: 'immersiveengineering:wirecoil_copper',
                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: 'immersiveengineering:wirecoil_copper',
                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: 'integratedtunnels:part_player_simulator',
            pattern: ['AABAA', 'ACDCA', 'BDEDB', 'ACDCA', 'AABAA'],
            key: {
                A: 'naturesaura:infused_iron',
                B: 'bloodmagic:corrosivecrystal',
                C: 'integrateddynamics:logic_director',
                D: 'create:brass_hand',
                E: 'integratedtunnels:part_interface_item'
            },
            id: 'part_player_simulator'
        },
        {
            output: 'integrateddynamics:part_connector_omni_directional',
            pattern: ['AB BA', 'BCDCB', ' DED ', 'BCDCB', 'AB BA'],
            key: {
                A: 'integrateddynamics:logic_director',
                B: 'emendatusenigmatica:enderium_plate',
                C: 'bloodmagic:reagentteleposition',
                D: 'create:shadow_steel',
                E: 'integrateddynamics:part_connector_mono_directional'
            },
            id: 'part_connector_omni_directional'
        },
        {
            output: 'integrateddynamics:mechanical_squeezer',
            pattern: ['BBABB', 'BDEDB', 'CIGFC', 'BDHDB', 'BBCBB'],
            key: {
                A: 'integrateddynamics:logic_director',
                B: 'integrateddynamics:crystalized_menril_block',
                C: 'emendatusenigmatica:enderium_plate',
                D: 'atum:ceramic_black',
                E: 'createaddition:electric_motor',
                H: 'immersiveengineering:capacitor_lv',
                G: 'integrateddynamics:squeezer',
                F: 'create:fluid_tank',
                I: 'create:adjustable_crate'
            },
            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: 'atum:ceramic_black',
                E: 'createaddition:electric_motor',
                H: 'immersiveengineering:capacitor_lv',
                G: 'integrateddynamics:drying_basin',
                F: '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: '8x bloodmagic:ritualstone',
            pattern: ['ABCBA', 'BCDCB', 'CDEDC', 'BCDCB', 'ABCBA'],
            key: {
                A: 'emendatusenigmatica:cast_iron_block',
                B: 'bloodmagic:blankrune',
                C: 'bloodmagic:infusedslate',
                D: 'appliedenergistics2:smooth_sky_stone_block',
                E: 'create:shadow_steel_casing'
            },
            id: 'ritual_stone'
        },
        {
            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: 'atum:ceramic_wall_black'
            },
            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: 'atum:ceramic_wall_black',
                F: 'bloodmagic:dungeon_metal',
                G: 'atum:ceramic_slab_black'
            },
            id: 'demon_crystallizer'
        },
        {
            output: Item.of('enderstorage:ender_chest',2),
            pattern: ['ABBBA', 'CDEDC', 'FGHGF', 'CDEDC', 'ACFCA'],
            key: {
                A: 'botania:blaze_block',
                B: 'minecraft:white_wool',
                C: 'emendatusenigmatica:lumium_rod',
                D: 'integrateddynamics:crystalized_chorus_block',
                E: 'emendatusenigmatica:enderium_block',
                F: 'create:shadow_steel_casing',
                G: 'bloodmagic:teleposerfocus',
                H: 'naturesaura:ender_crate'
            },
            id: 'ender_chest'
        },
        {
            output: Item.of('enderstorage:ender_tank',2),
            pattern: ['ABBBA', 'CDEDC', 'CGHGC', 'CDEDC', 'AFFFA'],
            key: {
                A: 'botania:blaze_block',
                B: 'minecraft:white_wool',
                C: 'emendatusenigmatica:lumium_rod',
                D: 'integratedterminals:chorus_glass',
                E: 'emendatusenigmatica:enderium_block',
                F: 'create:shadow_steel_casing',
                G: 'bloodmagic:teleposerfocus',
                H: 'naturesaura:ender_crate'
            },
            id: 'ender_tank'
        },
        {
            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: 'bloodmagic:woodtilepath',
                B: 'immersiveengineering:connector_lv',
                C: 'emendatusenigmatica:cast_iron_rod',
                D: 'immersiveengineering:coil_lv',
                E: 'immersiveengineering:sheetmetal_nickel',
                F: 'createaddition:capacitor',
                G: 'create:electron_tube'
            },
            id: 'capacitor_lv'
        },
        {
            output: 'immersiveengineering:capacitor_mv',
            pattern: ['AABAA', 'ACDCA', 'EFDFE', 'ACDCA', 'AAGAA'],
            key: {
                A: '#forge:treated_wood',
                B: 'immersiveengineering:connector_mv',
                C: 'emendatusenigmatica:steel_rod',
                D: 'immersiveengineering:coil_mv',
                E: 'immersiveengineering:sheetmetal_aluminum',
                F: 'emendatusenigmatica:tin_gear',
                G: 'immersiveengineering:electron_tube'
            },
            id: 'capacitor_mv'
        },
        {
            output: 'immersiveengineering:capacitor_hv',
            pattern: ['HABAH', 'ACDCA', 'EFDFE', 'ACDCA', 'HAGAH'],
            key: {
                A: '#forge:treated_wood',
                B: 'immersiveengineering:connector_hv',
                C: 'engineersdecor:metal_bar',
                D: 'immersiveengineering:coil_hv',
                E: 'immersiveengineering:sheetmetal_steel',
                F: 'emendatusenigmatica:cobalt_gear',
                G: 'immersiveengineering:toolupgrade_revolver_electro',
                H: 'astralsorcery:infused_wood_infused'
            },
            id: 'capacitor_hv'
        },
    ];

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

})