ServerEvents.recipes(event => {
	event.remove({output: 'create_sa:portable_drill'})
	event.remove({output: 'create:chromatic_compound'})
	event.remove({output: 'create_sa:brass_drill_head'})
	event.remove({output: 'create_henry:excavation_drill'})
	event.remove({output: 'create_henry:item_stockpile'})
	event.remove({output: 'create_henry:industrial_fan'})
	event.remove({output: 'create_henry:gabbro'})
	event.remove({output: 'create:mechanical_arm'})
	event.remove({output: 'create_henry:hydraulic_press'})
	event.remove({input: 'create_crush_everything:diamond_shard'})
	event.remove({output: 'create_crush_everything:diamond_shard'})
	event.remove({input: 'create_henry:diamond_shard'})
	event.remove({input: 'create_henry:kinetic_mechanism'})
	event.remove({output: 'create_henry:diamond_shard', input: 'minecraft:diamond'})
	event.replaceOutput(
	{ output: 'create_crush_everything:diamond_shard' },
	'create_crush_everything:diamond_shard',            // Arg 2: the item to replace
	'create_henry:diamond_shard'         // Arg 3: the item to replace it with
  )
  event.replaceInput(
  { mod: 'create_henry', type: 'minecraft:crafting_shaped' },
  'create:scorchia',
  'tfmg:asphalt'
  )
	event.shaped(
  Item.of('v_borne:andesite_drill_head', 1), // arg 1: output
  [
    ' B ',
    'CAC', // arg 2: the shape (array of strings)
    'AAA'
  ],
  {
    A: 'create:andesite_alloy',
	B: 'minecraft:iron_nugget',
	C: 'create:iron_sheet',
  })
	event.shaped(
  Item.of('create_sa:brass_drill_head', 1), // arg 1: output
  [
    'CBC',
    'BAB', // arg 2: the shape (array of strings)
    'CBC'
  ],
  {
    A: 'v_borne:andesite_drill_head',
    B: 'create:andesite_alloy',
	C: 'create:brass_ingot',
  })
	event.shaped(
  Item.of('v_borne:andesite_hand', 1), // arg 1: output
  [
    ' B ',
    'ACA', // arg 2: the shape (array of strings)
    ' A '
  ],
  {
    A: 'create:shaft',
    B: 'create:andesite_alloy',
	C: 'vintageimprovements:andesite_sheet'
  })
	event.shaped(
  Item.of('create:mechanical_arm', 7), // arg 1: output
  [
    'CCD',
    'C  ', // arg 2: the shape (array of strings)
    'AB '
  ],
  {
    A: 'v_borne:integrated_mechanism',
    B: 'create:brass_casing',
	C: 'create:brass_sheet',
	D: 'v_borne:andesite_hand'
  })
	event.shaped(
  Item.of('create:mechanical_arm', 1), // arg 1: output
  [
    'CCD',
    'C  ', // arg 2: the shape (array of strings)
    'AB '
  ],
  {
    A: 'create:precision_mechanism',
    B: 'create:brass_casing',
	C: 'create:brass_sheet',
	D: 'v_borne:andesite_hand'
  })
	event.shaped(
  Item.of('create:controls', 7), // arg 1: output
  [
    ' C ',
    ' B ', // arg 2: the shape (array of strings)
    ' A '
  ],
  {
    A: 'v_borne:integrated_mechanism',
    B: 'create:brass_casing',
	C: 'minecraft:lever'
  })
	event.shaped(
  Item.of('create_henry:industrial_fan', 1), // arg 1: output
  [
    '  ',
    'ABC', // arg 2: the shape (array of strings)
    '   '
  ],
  {
    A: 'design_decor:industrial_gear',
	B: 'create_henry:industrial_casing',
	C: 'create:propeller',
  })
  	event.shapeless(
  Item.of('minecraft:diamond', 1), // arg 1: output
	[
		'4x create_henry:diamond_shard',
	])
  	event.shapeless(
  Item.of('create:mechanical_drill', 3), // arg 1: output
	[
		'create:andesite_casing',
		'v_borne:andesite_drill_head'
	])
  	event.shapeless(
  Item.of('create:rotation_speed_controller', 7), // arg 1: output
	[
		'v_borne:integrated_mechanism',
		'create:brass_casing',
	])
	event.shapeless(
  Item.of('create_henry:kinetic_motor', 1), // arg 1: output
	[
		'create:andesite_casing',
		'create_henry:kinetic_mechanism',
		'v_borne:carbon_brush'
	])
	event.shapeless(
  Item.of('create:gearbox', 5), // arg 1: output
	[
		'create:andesite_casing',
		'create_henry:kinetic_mechanism',
	])
    let inter = "v_borne:unfinished_gabbro"; // making a variable to store the transitional item makes the code more readable
    event.recipes.create
        .sequenced_assembly(
            [
                Item.of("create_henry:gabbro").withChance(88.0), // this is the item that will appear in JEI as the result
				Item.of("minecraft:water_bucket").withChance(6.0),
				Item.of("minecraft:obsidian").withChance(6.0),// the rest of these items will be part of the scrap
            ],
            "minecraft:magma_block",
            [
                // the transitional item is a variable, that is 'kubejs:incomplete_bauxite' and is used during the intermediate stages of the assembly
                event.recipes.createDeploying(inter, [inter, 'mekanism:enriched_iron']),
				event.recipes.createFilling(inter, [inter, Fluid.water(333)]),
                event.recipes.createPressing(inter, inter),
            ]
        )
        .transitionalItem(inter)
        .loops(3); // set the transitional item and the number of loops
	event.recipes.create.mixing(
	'create:chromatic_compound',
	['4x create:powdered_obsidian', '4x minecraft:glowstone_dust', 'create:polished_rose_quartz', '2x minecraft:amethyst_shard']).superheated()
    let inter2 = "v_borne:incomplete_integrated_mechanism"; // making a variable to store the transitional item makes the code more readable
    event.recipes.create
        .sequenced_assembly(
            [
                Item.of("v_borne:integrated_mechanism").withChance(90.0), // this is the item that will appear in JEI as the result
				Item.of("create:precision_mechanism").withChance(4.0),
				Item.of("create:brass_sheet").withChance(4.0),// the rest of these items will be part of the scrap
            ],
            "create:brass_sheet",
            [
                // the transitional item is a variable, that is 'kubejs:incomplete_bauxite' and is used during the intermediate stages of the assembly
                event.recipes.createDeploying(inter2, [inter2, 'v_borne:integrated_circuit']),
				event.recipes.createDeploying(inter2, [inter2, 'create:cogwheel']),
				event.recipes.createDeploying(inter2, [inter2, 'create:electron_tube']),
            ]
        )
        .transitionalItem(inter2)
        .loops(3); // set the transitional item and the number of loops
	event.recipes.create.crushing(
	['create_henry:coal_piece', Item.of('create_henry:coal_piece').withChance(0.75), Item.of('create_henry:coal_piece').withChance(0.5), Item.of('create:scoria').withChance(0.25)],
	'#create:stone_types/scorchia')
	event.recipes.create.crushing(
	[Item.of("create:crushed_raw_nickel").withChance(0.40), Item.of("create:experience_nugget").withChance(0.25), Item.of("create:crushed_raw_osmium").withChance(0.12)],
	'#create_henry:stone_types/gabbro')
    let inter3 = "v_borne:incomplete_integrated_circuit"; // making a variable to store the transitional item makes the code more readable
    event.recipes.create
        .sequenced_assembly(
            [
                Item.of("v_borne:integrated_circuit").withChance(86.0), // this is the item that will appear in JEI as the result
				Item.of("create:electron_tube").withChance(8.0),
				Item.of("createaddition:electrum_ingot").withChance(6.0),// the rest of these items will be part of the scrap
            ],
            "create:brass_sheet",
            [
                // the transitional item is a variable, that is 'kubejs:incomplete_bauxite' and is used during the intermediate stages of the assembly
				event.recipes.createDeploying(inter3, [inter3, 'mekanism:enriched_redstone']),
				event.recipes.createDeploying(inter3, [inter3, 'createaddition:electrum_ingot']),
				event.recipes.createDeploying(inter3, [inter3, 'v_borne:lapis_sheet']),
				event.recipes.createDeploying(inter3, [inter3, 'mekanism:hdpe_pellet']),
				event.recipes.createPressing(inter3, inter3),
            ]
        )
        .transitionalItem(inter3)
        .loops(1); // set the transitional item and the number of loops
	event.recipes.create.mechanical_crafting('create_henry:hydraulic_press', [
    ' E ',
    'DCD',
    'ABA'
  ], {
	A: 'minecraft:copper_block',
	B: 'create:mechanical_press',
	C: 'create_henry:hydraulic_casing',
    D: 'create:fluid_pipe',
	E: 'create_sa:hydraulic_engine'
  })
	event.recipes.create.crushing(
	'4x create_henry:diamond_shard',
	'minecraft:diamond')
    let inter4 = "create_henry:incomplete_kinetic_mechanism"; // making a variable to store the transitional item makes the code more readable
    event.recipes.create
        .sequenced_assembly(
            [
                Item.of("create_henry:kinetic_mechanism").withChance(90.0), // this is the item that will appear in JEI as the result
				Item.of("create:shaft").withChance(6.0),
				Item.of("create:super_glue").withChance(4.0),// the rest of these items will be part of the scrap
            ],
            "create:iron_sheet",
            [
                // the transitional item is a variable, that is 'kubejs:incomplete_bauxite' and is used during the intermediate stages of the assembly
                event.recipes.createDeploying(inter4, [inter4, 'create:andesite_alloy']),
				event.recipes.createDeploying(inter4, [inter4, 'create:cogwheel']),
				event.recipes.createDeploying(inter4, [inter4, '#forge:slimeballs']),
				event.recipes.createDeploying(inter4, [inter4, 'create:zinc_nugget']),
            ]
        )
        .transitionalItem(inter4)
        .loops(2); // set the transitional item and the number of loops
})