onEvent('recipes', event => {
    event.remove({output: 'mekanism:ultimate_control_circuit'}),
    event.remove({output: 'mekanism:elite_control_circuit'}),
    event.remove({output: 'mekanism:elite_control_circuit'}),
    event.remove({output: 'minecraft:bedrock'}),
    event.remove({ output: 'mekanism:portable_teleporter'});

    event.remove({output: 'mekanism:metallurgic_infuser'}),
    event.recipes.createMechanicalCrafting('mekanism:metallurgic_infuser', [
		'IPRPI',
		'CPPPC',
		'IPRPI',
		'CPPPC',
		'IPRPI'
	], {
		C: 'mekanism:ingot_osmium',
		P: 'kubejs:blue',
		R: 'minecraft:furnace',
		I: 'minecraft:iron_ingot'
	})
    event.remove({output: 'mekanism:steel_casing'})
    event.shaped('mekanism:steel_casing', [
        'DCD', 
        'CBC', 
        'DCD'  
        ], {//Variables
        B: 'mekanism:ingot_osmium',  
        C: 'kubejs:blue',  
        D: 'immersiveengineering:plate_steel'
    })
    event.remove({ output: 'mekanism:enrichment_chamber' });
    event.shaped('mekanism:steel_casing', [
        'DCD', 
        'CBC', 
        'DCD'  
        ], {//Variables
        B: 'mekanism:ingot_osmium',  
        C: 'kubejs:blue',  
        D: '#forge:ingot_steel'
    })  
})
onEvent('recipes', event => {
    event.remove({ output: 'mekanism:energy_tablet' });
    event.shaped('mekanism:energy_tablet', [
        'EDE', 
        'BCB', 
        'EDE'  
        ], {//Variables
        B: 'mekanism:alloy_infused',  
        C: 'kubejs:ioncell',  
        D: 'thermal:rf_coil',
        E: 'minecraft:redstone'
    }),
    event.remove({ output: 'mekanism:energy_tablet' });
    event.shaped('mekanism:energy_tablet', [
        'EDE', 
        'BCB', 
        'EDE'  
        ], {//Variables
        B: 'mekanism:alloy_infused',  
        C: 'kubejs:ioncell',  
        D: 'thermal:rf_coil',
        E: 'minecraft:redstone'
    })
})

onEvent('recipes', event => {
    // Remove machine existing recipes
    event.remove({ output: 'mekanism:enrichment_chamber' });
    event.remove({ output: 'mekanism:osmium_compressor' });
    event.remove({ output: 'mekanism:combiner' });
    event.remove({ output: 'mekanism:crusher' });
    event.remove({ output: 'mekanism:purification_chamber' });
    event.remove({ output: 'mekanism:energized_smelter' });
    event.remove({ output: 'mekanism:chemical_injection_chamber' });
    event.remove({ output: 'mekanism:electrolytic_separator' });
    event.remove({ output: 'mekanism:precision_sawmill' });

    // Enrichment Chamber Recipe
    event.recipes.createMechanicalCrafting('mekanism:enrichment_chamber', [
        'ACA',
        'BXB',
        'ACA'
    ], {
        A: 'mekanism:ingot_osmium',
        B: 'minecraft:iron_ingot',
        C: 'mekanism:basic_control_circuit',
        X: 'mekanism:steel_casing'
    });

    // Osmium Compressor Recipe
    event.recipes.createMechanicalCrafting('mekanism:osmium_compressor', [
        'ABA',
        'CXC',
        'ABA'
    ], {
        A: 'mekanism:ingot_osmium',
        B: 'minecraft:diamond',
        C: 'kubejs:blue',
        X: 'mekanism:steel_casing'
    });

    // Combiner Recipe
    event.recipes.createMechanicalCrafting('mekanism:combiner', [
        'ABA',
        'CXC',
        'ABA'
    ], {
        A: 'mekanism:ingot_osmium',
        B: 'minecraft:iron_ingot',
        C: 'mekanism:basic_control_circuit',
        X: 'mekanism:steel_casing'
    });

    // Crusher Recipe
    event.recipes.createMechanicalCrafting('mekanism:crusher', [
        'ABA',
        'CXC',
        'ABA'
    ], {
        A: 'mekanism:ingot_osmium',
        B: 'minecraft:cobblestone',
        C: 'mekanism:basic_control_circuit',
        X: 'mekanism:steel_casing'
    });

    // Purification Chamber Recipe
    event.recipes.createMechanicalCrafting('mekanism:purification_chamber', [
        'ABA',
        'CXC',
        'ABA'
    ], {
        A: 'mekanism:ingot_osmium',
        B: 'minecraft:water_bucket',
        C: 'mekanism:basic_control_circuit',
        X: 'mekanism:steel_casing'
    });

    // Energized Smelter Recipe
    event.recipes.createMechanicalCrafting('mekanism:energized_smelter', [
        'ABA',
        'CXC',
        'ABA'
    ], {
        A: 'mekanism:ingot_osmium',
        B: 'minecraft:lava_bucket',
        C: 'mekanism:basic_control_circuit',
        X: 'mekanism:steel_casing'
    });

    // Chemical Injection Chamber Recipe
    event.recipes.createMechanicalCrafting('mekanism:chemical_injection_chamber', [
        'ABABC',
        'BCDCB',
        'ACXCA',
        'BCDCB',
        'ABABC'
    ], {
        A: 'mekanism:ingot_osmium',
        B: 'mekanism:advanced_control_circuit',
        C: 'mekanism:basic_control_circuit',
        D: 'mekanism:electrolytic_core',
        X: 'mekanism:steel_casing'
    });

    // Electrolytic Separator Recipe
    event.recipes.createMechanicalCrafting('mekanism:electrolytic_separator', [
        'ABABC',
        'BCDCB',
        'ACXCA',
        'BCDCB',
        'ABABC'
    ], {
        A: 'mekanism:ingot_osmium',
        B: 'mekanism:basic_control_circuit',
        C: 'mekanism:enriched_diamond',
        D: 'mekanism:electrolytic_core',
        X: 'mekanism:steel_casing'
    });

    // Precision Sawmill Recipe
    event.recipes.createMechanicalCrafting('mekanism:precision_sawmill', [
        'ABA',
        'CXC',
        'ABA'
    ], {
        A: 'mekanism:ingot_osmium',
        B: 'mekanism:alloy_infused',
        C: 'mekanism:basic_control_circuit',
        X: 'mekanism:steel_casing'
    });
});
