var colors = ['red','blue','white','gray','light_gray','black','purple','magenta','yellow','green','lime','light_blue','cyan','orange','pink','brown']

var metals = ['tin','silver','lead','gold','iron','copper','nickel','zinc','aluminum']

var wood = ['oak','spruce','birch','jungle','acacia','dark_oak',"crimson","warped"]

var wood_RU = ['alpha','baobab','blackwood','blue_bioshroom','brimwood','cobalt','cypress','dead','eucalyptus','joshua','green_bioshroom','kapok','larch','magnolia','maple','mauve','palm','pine','pink_bioshroom','redwood','socotra','willow','yellow_bioshroom']

var wood_FA = ['aurum','fungyss','edelwood']

var wood_TF = ['canopy','mangrove','twilight_oak','time','transformation','mining','sorting','dark']

var alloys = ['bronze','enderium','brass','invar','rose_gold','constantan','signalum','lumium']

ServerEvents.recipes(event => {
  
	
	event.remove({id:"enigmaticlegacy:thicc_scroll"});
	event.remove({id:"explorerscompass:explorers_compass"});
	event.remove({id:'ars_nouveau:potion_flask'})
	event.remove({mod:'waystones'})
	event.remove({output:'#minecraft:axes'})
	event.remove({output:'#minecraft:pickaxes'})
	event.remove({output:'#minecraft:shovels'})
	event.remove({output:'#minecraft:hoes'})
	event.remove({output:'#minecraft:swords'})
	event.remove({output:"elementalcraft:spell_desk"})
	
	event.replaceInput({mod:'ars_nouveau'}, 'ars_nouveau:sourcestone','kubejs:arcane_alloy_ingot')
	event.replaceInput({mod:'elementalcraft'}, 'minecraft:iron_ingot','kubejs:inert_alloy_ingot')
	event.replaceInput({mod:'crafting_on_a_stick'}, 'minecraft:stick','create_sa:zinc_handle')
	event.shapeless("2x minecraft:rooted_dirt",["minecraft:dirt","minecraft:mangrove_roots"])
	event.shapeless("minecraft:rooted_dirt",["minecraft:dirt","minecraft:hanging_roots"])

	event.custom({
		type: "lychee:block_interacting",
		item_in: {item: "kubejs:sharp_feather"},
		block_in: "minecraft:obsidian",
		post: [
			{
				type: "place",
				block: "air"      
			},
			{
				type: "drop_item",
				item: "minecraft:obsidian"
			},
			{
				type: "damage_item",
				damage: 1
			},
			{
				type: "execute",
				command: "playsound minecraft:block.amethyst_block.break neutral @p",
				hide: true
			}
		]
	})

	event.custom({
		type: "lychee:block_interacting",
		item_in: {item: "kubejs:sharp_feather"},
		block_in: "minecraft:crying_obsidian",
		post: [
			{type: "place", block: "air"},
			{type: "drop_item", item: "minecraft:crying_obsidian"},
			{type: "damage_item", damage: 1},
			{type: "execute", command: "playsound minecraft:block.amethyst_block.break neutral @p",hide: true}
		]
	})
	

	event.custom({
		type: "lychee:block_interacting",
		item_in: {tag: "forge:tools/knives"},
		block_in: "farmersdelight:onion_crate",
		post: [
			{type: "place", block: "air"},
			{type: "drop_item", item: "kubejs:cut_onions", "count": 3},
			{type: "damage_item", damage: 9},
			{type: "hurt", damage: 2, hide: true},
			{type: "execute", command: "playsound farmersdelight:block.cutting_board.knife neutral @p",hide: true}
		]
	})

	event.custom({
		type: "lychee:block_interacting",
		item_in: {tag: "forge:tools/knives"},
		block_in: "minecraft:bone_block",
		post: [
			{type: "place", block: "minecraft:skeleton_skull"},
			{type: "damage_item",damage: 1},
			{type: "execute",command: "playsound farmersdelight:block.cutting_board.knife neutral @p",hide: true}
		]
	})

	
	function hammering(block, output, count) {
		event.custom({
			type: "lychee:block_interacting",
			item_in: { item: "immersiveengineering:hammer" },
			block_in: block,
			post: [
				{ type: "drop_item", item: output,count: count },
				{ type: "place", block: "air" },
				{ type: "damage_item" }
			]
		});
	}

	function clickb(block, item, output) {
		event.custom({
			type: "create:item_application",
			ingredients: [
				{ item: block },
				{ item: item },
			],
			results: [
				{ item: output },
			],
		});
	}
	clickb("minecraft:obsidian","kubejs:cut_onions","minecraft:crying_obsidian")
	function plates(inputItem, outputItem) {
		event.custom({
			type: "create:pressing",
			ingredients: [{ item: inputItem }],
			results: [{ item: outputItem }],
		});
	
		event.recipes.thermal.press(inputItem, outputItem);
	
		event.custom({
			type: "immersiveengineering:metal_press",
			energy: 2400,
			input: { item: inputItem },
			mold: "immersiveengineering:mold_plate",
			result: { item: outputItem },
		});
	}
	 
	/// ======================================================================= Tier 0 Machines ========================================================================

	event.shaped("composter",[
		"F F",
		"S S",
		"PPP"
	],
	{
		F: "#minecraft:wooden_fences",
		S: "kubejs:stacked_planks",
		P: "kubejs:packed_planks"
	}).id("minecraft:composter")
	
	event.remove({output:"naturesaura:animal_spawner"})
	event.custom({
		type: "lychee:item_exploding",
		 post: [
		   {
			 type: "drop_item",
			 item: "naturesaura:animal_spawner",
			 "count": 1
		   }
		 ],
		 item_in: [
		   {tag: "forge:storage_blocks/gold"},
		   {item: "minecraft:hay_block"},
		   {item: "minecraft:moss_block"},
		   {item: "naturesaura:gold_leaf"}
		 ]
	   
   })
	
	event.remove({output:'supplementaries:sack'})
	event.shaped(
	  Item.of('supplementaries:sack'), 
	  [
		'CSC', 
		' C '
	  ],
	  {
		C: 'farmersdelight:canvas',
		S: '#forge:string'
	  }
	)

	event.remove({id:'naturesaura:gold_fiber'})
	event.remove({output:'naturesaura:wood_stand'})

	event.custom({
		type: "create:item_application",
		ingredients: [
			{tag: "forge:stripped_logs"},
			{item: "naturesaura:gold_leaf"}
		],
		results: [
			{item: "naturesaura:wood_stand"}
		]
	})

	event.remove({output:'immersiveengineering:cokebrick'})
	event.custom({
		  type: "lychee:item_exploding",
		  post: [
			{type: "drop_item", item: "naturesaura:gold_fiber", "count": 3}
		  ],
		  item_in: [
			{item: "minecraft:string",},
			{item: "minecraft:string",},
			{item: "minecraft:wheat_seeds",},
			{item: "minecraft:wheat_seeds",},
			{tag: "forge:flowers/golden",},
			{tag: "forge:flowers/golden",},
			{tag: "forge:flowers/golden",}
			]	
	})

	event.custom({
		type: "naturesaura:tree_ritual",
		ingredients: [
			{item: "minecraft:clay"},
			{item: "minecraft:clay"},
			{item: "minecraft:clay"},
			{item: "minecraft:ink_sac"},
			{tag: "minecraft:sand"},
			{tag: "minecraft:sand"}
		],
		"sapling": {item: "minecraft:spruce_sapling"},
		"output": {item: "immersiveengineering:cokebrick","count": 6},
		"time": 200
	})
	
	
	/// ======================================================================= Tier 0 Components ========================================================================
	
	event.recipes.naturesaura.tree_ritual("2x naturesaura:ancient_sapling",["#forge:storage_blocks/redstone","#minecraft:saplings","#forge:gems/arcane_crystal","#forge:gems/arcane_crystal","#forge:gems/arcane_crystal","#forge:gems/arcane_crystal","#forge:gems/arcane_crystal","#forge:gems/arcane_crystal"],"quark:red_blossom_sapling").id("naturesaura:tree_ritual/ancient_sapling")
	event.recipes.naturesaura.tree_ritual("2x naturesaura:ancient_sapling",["#forge:storage_blocks/redstone","#minecraft:saplings","#forge:gems/arcane_crystal","#forge:gems/arcane_crystal","#forge:gems/arcane_crystal","#forge:gems/arcane_crystal","#forge:gems/arcane_crystal","#forge:gems/arcane_crystal"],"quark:ancient_sapling")
	

	event.custom({
		type: "lychee:block_interacting",
    item_in: {
        tag: "forge:tools/knives"
    },
    block_in: "naturesaura:wood_stand",
    post: [
        {
            type: "place",
            block: "air"      
        },
		{
			type: "drop_item",
			item: "kubejs:basic_token",
			"count": 1
		},
		{
			type: "damage_item",
			damage: 15
		},
		{
			type: "execute",
			command: "playsound sawmill:ui.sawmill.take_result neutral @p",
			hide: true
		}
    ]
	})

	event.remove({output:'ars_nouveau:mundane_belt'})
	event.shaped(
	  Item.of('ars_nouveau:mundane_belt'), 
	  [
		'RIR',
		'I I', 
		'RIR'
	  ],
	  {
		I: '#forge:leather',
		R: '#forge:rope'
	  }
	)

	event.remove({output:'ars_nouveau:ring_of_potential'})
	event.shaped(
	  Item.of('ars_nouveau:ring_of_potential'), 
	  [
		'RIR',
		'I I', 
		'RIR'
	  ],
	  {
		I: '#forge:ingots/iron',
		R: '#forge:nuggets/iron'
	  }
	)

	event.remove({output:'ars_nouveau:dull_trinket'})
	event.shaped(
	  Item.of('ars_nouveau:dull_trinket'), 
	  [
		' I ',
		'IXI', 
		' I '
	  ],
	  {
		X: '#forge:nuggets/iron',
		I: '#forge:rope'
	  }
	)
	event.shapeless('twigs:twig', ['#minecraft:saplings'])
	event.shapeless('4x twigs:pebble', ['minecraft:cobblestone'])
	event.remove({output:'dungeonnowloading:cobblestone_pebble'})
	
	event.remove({output:'immersive_weathering:mulch_block'})
	event.shapeless('2x immersive_weathering:mulch_block', ['minecraft:dirt','#immersive_weathering:bark','immersive_weathering:moss_clump','minecraft:bone_meal'])
	
	event.remove({output:'farmersdelight:organic_compost'})
	event.shapeless('farmersdelight:organic_compost', ['immersive_weathering:mulch_block','2x minecraft:bone_meal','2x minecraft:rotten_flesh','2x farmersdelight:straw'])

	event.custom({
		type: "lychee:item_inside",
		  post: [
			{
			  type: "place",
			  block: "create:chocolate"
			}
		  ],
		  item_in: [
			{
			  item: "minecraft:sugar"
			},
			{
			  item: "minecraft:sugar"
			},
			{
			  item:  "minecraft:sugar"
			},
			{
			  item: "minecraft:cocoa_beans"
			}
		  ],
		  block_in: "minecraft:water"
	})
	
	event.custom({
		type: "lychee:item_inside",
		  post: [
			{
			  type: "drop_item",
			  item: "create:bar_of_chocolate"
			}
		  ],
		  item_in: [
			{
			  item: "minecraft:ice"
			}
		  ],
		  block_in: "create:chocolate"
	})
	event.shaped(
	  Item.of('kubejs:sapling_ball'), 
	  [
		' S ',
		'SSS', 
		' S '
	  ],
	  {
		S: '#minecraft:saplings'
	  }
	)
	
	event.remove({output:'minecraft:glass_bottle'})
	event.shaped(
	  Item.of('2x minecraft:glass_bottle'), 
	  [
		' B ',
		'S S', 
		' S '
	  ],
	  {
		B: '#minecraft:wooden_buttons',
		S: '#forge:glass'
	  }
	)
	
	event.shaped(
	  Item.of('6x minecraft:glass_bottle'), 
	  [
		' B ',
		'S S', 
		' S '
	  ],
	  {
		B: '#forge:treated_wood',
		S: '#forge:glass'
	  }
	)
	
	event.remove({output:'farmersdelight:canvas'})
	event.shaped(
	  Item.of('farmersdelight:canvas'), 
	  [
		'CS', 
		'SC'
	  ],
	  {
		C: 'immersiveengineering:hemp_fiber',
		S: 'farmersdelight:straw',
	  }
	)
	
	
	
	event.custom({
	  type: "lychee:block_clicking",
	  post: [
		{
		  type: "hurt",
		  damage: 1
		},
		{
			type: "drop_item",
			"contextual": [
				{
				type: "chance",
				"chance": 0.4
				}
			],
			item: "twigs:pebble",
			"count": 1
		},
		{
			type: "add_item_cooldown",
			"s": 0.5
	    }
	  ],
	  item_in: {
		item: "minecraft:air"
	  },
	  block_in: "minecraft:stone"
	})

	
	
	/// ======================================================================= Tier 1 components =======================================================================

	clickb("glass","thermal:slag","immersiveengineering:slag_glass")

	event.remove({id:"immersiveengineering:smelting/slag_glass"})

	event.shaped("kubejs:sturdy_basalt",
		[
			"CXC",
			"XXX",
			"CXC"
		],
		{
			X: "smooth_basalt",
			C: "#forge:plates/copper"
		}
	)

	event.custom({
		type: "lychee:block_interacting",
		item_in: [{tag:"forge:dusts/iron"}],
		block_in: "infested_stone",
		post: [
			{type: "place", block: "air"},
			{type: "if", contextual:{type: "chance", chance: 0.1}, 
			then: {type: "drop_item", item: "thermal:silver_dust"},
			else: {type: "execute", command: "summon minecraft:silverfish ~ ~ ~"}}		
		]
	})

	event.custom({
		type: "lychee:item_exploding",
		  post: [
			{
			  type: "drop_item",
			  item: "kubejs:dimension_ripper"
			},
			{
				type: "execute",
				command: "playsound irons_spellbooks:spell.earthquake.cast neutral @p",
				hide: "true"
			}
		  ],
		  item_in: [
			{
			  item: "quark:diamond_heart"
			},
			{
			  item: "forbidden_arcanus:arcane_crystal"
			},
			{
			  item:  "diamond"
			},
			{
			  item: "redstone_block"
			}
		  ]
	})
	
	event.custom({
		type: "lychee:lightning_channeling",
		 post: [
		   {
			 type: "drop_item",
			 item: "elementalcraft:inert_crystal"
		   },
		   {
			   type: "execute",
			   command: "playsound irons_spellbooks:lightning_lance_cast neutral @p",
			   hide: "true"
		   }
		 ],
		 item_in: [
		   {
			 item: "forbidden_arcanus:arcane_crystal_dust_speck",
		   },
		   {
			item: "forbidden_arcanus:arcane_crystal_dust_speck",
		  },
		  {
			item: "forbidden_arcanus:arcane_crystal_dust_speck",
		  },
		  {
			item: "forbidden_arcanus:arcane_crystal_dust_speck",
		  },
		   {
			 tag: "forge:gems/quartz",
		   }
		 ]
   })

   event.custom({
	type: "lychee:lightning_channeling",
	 post: [
	   {
		 type: "drop_item",
		 item: "create:brass_ingot",
		 "count": 2

	   },
	   {
		   type: "execute",
		   command: "playsound irons_spellbooks:lightning_lance_cast neutral @p",
		   hide: "true"
	   }
	 ],
	 item_in: [
	   {
		 tag: "forge:ingots/zinc",
	   },
	   {
		tag: "forge:ingots/zinc",
	  },
	  {
		tag: "forge:ingots/copper",
	  },
	  {
		tag: "forge:ingots/copper",
	  }
	 ]
})
	
	event.shaped(
		Item.of('2x kubejs:sapling_ball'), 
		[
		  ' S ',
		  'SXS', 
		  ' S '
		],
		{
		  X: '#minecraft:saplings',
		  S: 'thermal:compost'
		}
	  )
	
	
	event.custom({

		type: "create:filling",
		ingredients: [
		  {
			tag: "minecraft:planks"
		  },
		  {
			"fluid": "immersiveengineering:creosote",
			"amount": 200
		  }
		],
		results: [
		  {
			item: "immersiveengineering:treated_wood_horizontal"
		  }
		]
	})
	
	event.remove({output:'immersiveengineering:iron_rod'})
	function rods(metal){
		event.shaped(
		Item.of('createaddition:'+metal+'_rod'), 
		[
			'  I',
			' I ', 
			'I  '
		],
		{
			I: '#forge:plates/'+metal
		}
		)
	}
	
	rods("iron")
	rods("gold")
	rods("copper")

	event.remove({output:'thermal:drill_head'})
	event.shaped(
	  Item.of('thermal:drill_head'), 
	  [
		' P ',
		'IGI', 
		'III'
	  ],
	  {
		I: '#forge:plates/iron',
		P: "minecraft:iron_pickaxe",
		G: "#forge:gears/iron"
	  }
	)

	event.remove({output:'thermal:saw_blade'})
	event.shaped(
	  Item.of('thermal:saw_blade'), 
	  [
		'III',
		'ISI', 
		'III'
	  ],
	  {
		I: '#forge:ingots/iron',
		S: 'kubejs:wooden_gear'
	  }
	)

	event.shaped(
		Item.of('kubejs:magic_book'), 
		[
		  'ISI',
		  'ISI', 
		  'ISI'
		],
		{
		  I: 'irons_spellbooks:arcane_essence',
		  S: 'minecraft:paper'
		}
	  )
	
	event.shaped(
	  Item.of('kubejs:primitive_machine'), 
	  [
		'PIP',
		'ISI', 
		'PIP'
	  ],
	  {
		I: 'quark:sturdy_stone',
		P: '#forge:storage_blocks/potato',
		S: 'kubejs:stone_gear'
	  }
	)
	
	event.remove({output:'minecraft:redstone_torch'})
	event.shaped(
	  Item.of('minecraft:redstone_torch'), 
	  [
		'R',
		'S' 
	  ],
	  {
		R: '#forge:dusts/redstone',
		S: '#forge:rods/treated_wood'
	  }
	)
	event.shaped(
	  Item.of('kubejs:stone_gear'), 
	  [
		'III',
		'IGI', 
		'III'
	  ],
	  {
		I: 'kubejs:stone_plate',
		G: 'kubejs:wooden_gear'
	  }
	)
	
	
	event.shaped(
	  Item.of('kubejs:basic_magic_machine'), 
	  [
		'IDI',
		'DGD', 
		'IDI'
	  ],
	  {
		I: '#forge:dusts/gold',
		D: '#forge:gems/amethyst',
		G: 'kubejs:primitive_machine'
	  }
	)
	
	event.shaped(
	  Item.of('2x kubejs:basic_magic_machine'), 
	  [
		'IDI',
		'DGD', 
		'IDI'
	  ],
	  {
		I: '#forge:dusts/gold',
		D: '#forge:gems/source',
		G: 'kubejs:primitive_machine'
	  }
	)

	
	event.shaped(
	  Item.of('kubejs:wooden_gear'), 
	  [
		' I ',
		'IGI', 
		' I '
	  ],
	  {
		I: 'kubejs:wooden_plate',
		G: 'minecraft:redstone_torch'
	  }
	)
	
	
	
	hammering("immersiveengineering:treated_wood_horizontal", "kubejs:wooden_plate", 1)
	hammering("minecraft:smooth_stone","kubejs:stone_plate", 1)

	event.custom(
		{
			type: "lychee:block_crushing",
			post: [
			  {
				type: "anvil_damage_chance",
				"chance": 0
			  },
			  {
				type: "place",
				block: "minecraft:air",
			  },
			  {
				type: "drop_item",
				"contextual": [
				  {
					type: "chance",
					"chance": 0.95
				  }
				],
				item: "kubejs:wooden_plate"
			  }
			],
			"falling_block": "minecraft:anvil",
			"landing_block": "immersiveengineering:treated_wood_horizontal"
		  }
		  
	)

	event.custom(
		{
			type: "lychee:block_crushing",
			post: [
			  {
				type: "anvil_damage_chance",
				"chance": 0
			  },
			  {
				type: "place",
				block: "minecraft:air",
			  },
			  {
				type: "drop_item",
				"contextual": [
				  {
					type: "chance",
					"chance": 0.95
				  }
				],
				item: "kubejs:stone_plate"
			  }
			],
			"falling_block": "minecraft:anvil",
			"landing_block": "minecraft:smooth_stone"
		  }
		  
	)

	plates("immersiveengineering:treated_wood_horizontal", "kubejs:wooden_plate")
	plates("minecraft:smooth_stone","kubejs:stone_plate")
	plates("minecraft:diamond","kubejs:diamond_plate")

	hammering("minecraft:copper_block","thermal:copper_plate", 3)
	hammering("minecraft:iron_block","thermal:iron_plate", 3)
	hammering("minecraft:gold_block","thermal:gold_plate", 3)
	hammering("thermal:tin_block","thermal:tin_plate", 3)
	hammering("thermal:silver_block","thermal:silver_plate", 3)
	hammering("thermal:lead_block","thermal:lead_plate", 3)
	hammering("thermal:nickel_block","thermal:nickel_plate", 3)
	hammering("thermal:bronze_block","thermal:bronze_plate", 3)
	hammering("minecraft:diamond_block","kubejs:diamond_plate", 3)
	
	event.remove({id:"irons_spellbooks:lightning_bottle"})
	event.custom({
		type: "lychee:item_exploding",
		  "contextual": [
			{
			  type: "location",
			  "predicate": {
				"position":{ 
				"y": {
				 "min": 180,
				 "max": 210
				}
				}
			  }
			}
		  ],
		  post: [
			{
			  type: "drop_item",
			  item: "irons_spellbooks:lightning_bottle"
			},
			{
				type: "execute",
				command: "execute playsound minecraft:entity.lightning_bolt.impact neutral @p"
			}
		  ],
		  item_in: [
			{
			  item: "quark:bottled_cloud"
			},
			{
			  item: "minecraft:lightning_rod"
			}
		  ]
	})
	
	event.custom({
		type: "lychee:item_exploding",
		  post: [
			{
			  type: "drop_item",
			  item: "thermal:blitz_rod"
			},
			{
				type: "execute",
				command: "playsound irons_spellbooks:lightning_lance_cast neutral @p",
				hide: "true"
			}
		  ],
		  item_in: [
			{item: "irons_spellbooks:lightning_bottle"},
			{
			  item: "twilightforest:liveroot"
			},
			{
			  item: "minecraft:snowball"
			}
		  ]
	})

	event.custom({
		type: "lychee:item_exploding",
		post:[
			{type:"drop_item", item:"thermal:blizz_rod"},
			{type:"execute", command:"playsound twilightforest:entity.twilightforest.snow_queen.ambient neutral @p", hide:"true"}
		],
		item_in:[
			{item:"thermal:blitz_rod"},
			{item:"snow_block"},
			{item:"irons_spellbooks:frozen_bone"}
		]
	})
	
	event.remove({output:'sophisticatedstorage:upgrade_base'})
	event.shaped(
	  Item.of('sophisticatedstorage:upgrade_base'), 
	  [
		'III',
		'IGI', 
		'III'
	  ],
	  {
		I: 'kubejs:wooden_plate',
		G: '#forge:gems/diamond'
	  }
	)
	
	/// ======================================================================= Tier 1 Machines =======================================================================

	event.replaceInput({id:"minecraft:anvil"},"iron_ingot","#forge:plates/iron")

	event.shaped("rubinated_nether:freezer",
		[
			"PPP",
			"RMR",
			"BXB"
		],
		{
			P: "#forge:plates/copper",
			R: "#forge:rods/copper",
			M: "kubejs:primitive_machine",
			B: "kubejs:sturdy_basalt",
			X: "thermal:blizz_rod"
		}
	).id("rubinated_nether:freezer_crafting")
	
	event.shaped(
		Item.of('twilightdelight:fiery_cooking_pot'), 
		[
		  'AAA',
		  'AIA', 
		  'AAA'
		],
		{
		  A: '#forge:ingots/fiery',
		  I: "farmersdelight:cooking_pot"
		}
	  ).id("twilightdelight:fiery_cooking_pot")

	event.remove({output:'torchmaster:feral_flare_lantern'})
	event.shaped(
	  Item.of('torchmaster:feral_flare_lantern'), 
	  [
		'AAA',
		'AIA', 
		'AAA'
	  ],
	  {
		A: '#forge:plates/lead',
		I: "ars_nouveau:glyph_light"
	  }
	)

	event.remove({output:'supplementaries:faucet'})
	event.shaped(
	  Item.of('supplementaries:faucet'), 
	  [
		' L ',
		'III', 
		'  H'
	  ],
	  {
		L: 'minecraft:lever',
		I: "#forge:ingots/iron",
		H: 'woodenhopper:wooden_hopper'
	  }
	)

	event.remove({output:'create:depot'})
	event.shaped(
	  Item.of('create:depot'), 
	  [
		'III', 
		'PPP'
	  ],
	  {
		I: '#forge:ingots/iron',
		P: "#minecraft:planks"
	  }
	)
	event.remove({output:'create:fluid_tank'})
	event.shaped(
	  Item.of('create:fluid_tank'), 
	  [
		' P ',
		'PXP', 
		' P '
	  ],
	  {
		P: '#forge:plates/copper',
		X: 'supplementaries:jar'
	  }
	)

	event.remove({output:'create:spout'})
	event.shaped(
	  Item.of('create:spout'), 
	  [
		'PPP',
		'PXP', 
		'PFP'
	  ],
	  {
		P: 'minecraft:dried_kelp',
		X: 'create:fluid_tank',
		F: 'supplementaries:faucet'
	  }
	)
	
	event.remove({output:'naturesaura:auto_crafter'})
	event.shaped(
	  Item.of('2x naturesaura:auto_crafter'), 
	  [
		'PTP',
		'PMP', 
		'PCP'
	  ],
	  {
		T: 'naturesaura:token_joy',
		M: 'kubejs:primitive_machine',
		P: 'naturesaura:ancient_planks',
		C: 'immersiveengineering:craftingtable'
	  }
	)

	event.remove({output:'supplementaries:cog_block'})
	event.shaped(
	  Item.of('4x supplementaries:cog_block'), 
	  [
		'ZPZ',
		'PXP', 
		'ZPZ'
	  ],
	  {
		Z: '#forge:ingots/copper',
		P: '#forge:dusts/redstone',
		X: 'kubejs:wooden_gear'
	  }
	)

	event.replaceInput({id:"ars_nouveau:glyph_craft"},"minecraft:crafting_table","naturesaura:auto_crafter")

	event.remove({output:'vintagedelight:fermenting_jar'})
	event.shaped(
	  Item.of('vintagedelight:fermenting_jar'), 
	  [
		' P ',
		'PXP', 
		' P '
	  ],
	  {
		P: '#forge:glass/tinted',
		X: 'supplementaries:jar'
	  }
	)

	event.remove({output:'sawmill:sawmill'})
	event.shaped(
	  Item.of('sawmill:sawmill'), 
	  [
		'SSS',
		'SBS', 
		'PPP'
	  ],
	  {
		B: 'thermal:saw_blade',
		P: '#forge:treated_wood',
		S: '#forge:rods/treated_wood'
	  }
	)
	
	event.remove({output:'minecraft:dropper'})
	event.remove({output:'minecraft:dispenser'})
	event.shapeless('minecraft:dropper', ['kubejs:primitive_machine','minecraft:redstone_torch'])
	event.shapeless('minecraft:dispenser', ['minecraft:dropper','minecraft:bow'])
	
	event.remove({output:'supplementaries:jar'})
	event.shaped(
	  Item.of('supplementaries:jar'), 
	  [
		'PSP',
		'P P', 
		'PPP'
	  ],
	  {
		S: '#forge:treated_wood_slab',
		P: '#forge:glass'
	  }
	)
	
	event.remove({output:"irons_spellbooks:scroll_forge"})
	event.shaped(
	  Item.of("irons_spellbooks:scroll_forge"), 
	  [
		'PPP',
		' B ', 
		'OOO'
	  ],
	  {
		P: 'minecraft:polished_deepslate',
		B: 'kubejs:basic_magic_machine',
		O: 'minecraft:crying_obsidian'
	  }
	)
	
	event.remove({output:'create:hand_crank'})
	event.shaped(
	  Item.of('create:hand_crank'), 
	  [
		'S',
		'P'
	  ],
	  {
		S: '#forge:rods/treated_wood',
		P: 'quark:sturdy_stone'
	  }
	)
	
	event.remove({output:'create:millstone'})
	event.shaped(
	  Item.of('create:millstone'), 
	  [
		'S',
		'G', 
		'P'
	  ],
	  {
		G: 'kubejs:stone_gear',
		P: 'kubejs:primitive_machine',
		S: 'woodenhopper:wooden_hopper'
	  }
	)
	
	event.remove({output:'woodenhopper:wooden_hopper'})
	event.shaped(
	  Item.of('woodenhopper:wooden_hopper'), 
	  [
		'P P',
		'PTP', 
		' P ' 
	  ],
	  {
		P: '#forge:treated_wood',
		T: 'kubejs:wooden_gear'
	  }
	)
	
	event.remove({output:'minecraft:furnace'})
	event.custom({
		type: "lychee:block_interacting",
    item_in: {
        tag: "forge:coal_coke"
    },
    block_in: "stone",
    post: [
        {
            type: "place",
            block: "minecraft:furnace",
            "contextual": {
                type: "chance",
                "chance": 0.25
            }
        },
		{
			type: "execute",
			command: "playsound create:steam neutral @p",
			hide: "true"
		}
    ]
	})
	
	event.remove({output:'quark:deepslate_furnace'})
	event.remove({output:'quark:blackstone_furnace'})
	event.shapeless('quark:deepslate_furnace',['minecraft:furnace','minecraft:cobbled_deepslate'])
	event.shapeless('quark:blackstone_furnace',['minecraft:furnace','minecraft:blackstone'])
	
	event.remove({output:'farmersdelight:basket'})
	event.shaped(
	  Item.of('farmersdelight:basket'), 
	  [
		'CHC', 
		'CCC' 
	  ],
	  {
		H: 'woodenhopper:wooden_hopper',
		C: 'farmersdelight:canvas'
	  }
	)
	
	event.remove({id:'minecraft:stonecutter'})
	event.shaped(
	  Item.of('minecraft:stonecutter'), 
	  [
		' G ', 
		'PSP', 
		'SSS' 
	  ],
	  {
		P: '#forge:treated_wood',
		S: 'minecraft:smooth_stone',
		G: 'thermal:saw_blade'
	  }
	)
	
	event.remove({id:'minecraft:grindstone'})
	event.shaped(
	  Item.of('minecraft:grindstone'), 
	  [
		'PSP', 
		'F F' 
	  ],
	  {
		P: '#forge:treated_wood',
		S: 'minecraft:smooth_stone',
		F: 'immersiveengineering:treated_fence'
	  }
	)
	
	event.remove({output:'immersiveengineering:crate'})
	event.shaped(
	  Item.of('immersiveengineering:crate'), 
	  [
		'PPP',
		'PSP', 
		'PPP' 
	  ],
	  {
		P: '#forge:treated_wood',
		S: 'supplementaries:sack'
	  }
	)
	
	event.remove({output:'irons_spellbooks:inscription_table'})
	event.shaped(
	  Item.of('irons_spellbooks:inscription_table'), 
	  [
		'BBQ',
		'PPP', 
		'F F' 
	  ],
	  {
		B: '#forge:books',
		Q: 'minecraft:writable_book',
		P: '#forge:treated_wood_slab',
		F: 'immersiveengineering:treated_fence'
	  }
	)
	
	event.remove({output:'sophisticatedbackpacks:backpack'})
	event.shaped(
	  Item.of('sophisticatedbackpacks:backpack'), 
	  [
		'CEC',
		'CXC', 
		'LLL' 
	  ],
	  {
		C: 'farmersdelight:canvas',
		L: '#forge:leather',
		X: 'immersiveengineering:crate',
		E: 'minecraft:ender_pearl'
	  }
	)
	
	
	event.remove({output:'ars_nouveau:imbuement_chamber'})
	event.custom({
		 type: "lychee:lightning_channeling",
		  post: [
			{
			  type: "drop_item",
			  item: "ars_nouveau:imbuement_chamber"
			},
			{
				type: "execute",
				command: "playsound irons_spellbooks:lightning_lance_cast neutral @p",
				hide: "true"
			}
		  ],
		  item_in: [
			{
			  item: "kubejs:basic_magic_machine",
			},
			{
			  item: "supplementaries:jar",
			},
			{
			  item: "woodenhopper:wooden_hopper",
			},
			{
			  item: "twilightforest:naga_scale"
			}
		  ]
	})
	
	event.remove({output:'thermal:device_composter'})
	event.shaped(
	  Item.of('thermal:device_composter'), 
	  [
		'PCP',
		'PMP', 
		'PHP' 
	  ],
	  {
		P: '#forge:plates/tin',
		C: 'minecraft:composter',
		M: 'kubejs:basic_magic_machine',
		H: 'woodenhopper:wooden_hopper'
	  }
	)
	
	event.remove({output:'thermal:device_fisher'})
	event.shaped(
	  Item.of('thermal:device_fisher'), 
	  [
		'PCP',
		'PMP', 
		'PHP' 
	  ],
	  {
		P: '#forge:plates/tin',
		C: 'minecraft:fishing_rod',
		M: 'kubejs:basic_magic_machine',
		H: 'woodenhopper:wooden_hopper'
	  }
	)
	
	colors.forEach(color => {
		event.shaped(
		  Item.of('comforts:sleeping_bag_'+color),
		  [
			'CCP',
			'SSS'
		  ],
		  {
			C: 'handcrafted:'+color+'_sheet',
			P: 'handcrafted:'+color+'_cushion',
			S: 'farmersdelight:canvas'
		  }
		).id("comforts:sleeping_bag_"+color)

		event.shaped(
			Item.of(color+'_bed'),
			[
				'CSC',
				'III',
				'PPP'
			],
			{
				C: 'handcrafted:'+color+'_sheet',
				I: 'immersiveengineering:cushion',
				P: 'forge:treated_wood',
				S: 'comforts:sleeping_bag_'+color
			}
		).id("minecraft:"+color+"_bed")

		event.shaped(
			Item.of('2x handcrafted:'+color+'_sheet'),
			[
				'XZX',
				'ZXZ'
			],
			{
				X: color+'_carpet',
				Z: "#forge:string"
			}
		).id("handcrafted:"+color+"_sheet")
		
		event.shaped(Item.of("handcrafted:"+color+"_cushion"),
		[
			"XCX",
			"CZC",
			"XCX"
		],
		{
			X: "handcrafted:"+color+"_sheet",
			C: "#forge:feathers",
			Z: "#forge:string"
		}
		).id("handcrafted:"+color+"_cushion")
	});

	wood.forEach(wood => {
		event.shaped('handcrafted:'+wood+'_fancy_bed',
		[
			'HP ',
			'PXP',
			' P '
		],
		{
			H: 'handcrafted:hammer',
			X: '#minecraft:beds',
			P: wood+'_planks'
		}
		).id("handcrafted:"+wood+"_fancy_bed")
	});
	

	event.shaped('immersiveengineering:cushion',
		[
			"FFF",
			"FXF",
			"FFF"
		],
		{
			F: "immersiveengineering:hemp_fabric",
			X: "#handcrafted:cushions"
		}
	).id("immersiveengineering:crafting/cushion")
	
	event.remove({output:'minecraft:smoker'})
	event.shaped(
	  Item.of('minecraft:smoker'), 
	  [
		'PPP',
		'PMP', 
		'PHP' 
	  ],
	  {
		P: '#minecraft:logs',
		M: 'kubejs:primitive_machine',
		H: 'minecraft:furnace'
	  }
	)
	
	event.remove({output:'minecraft:blast_furnace'})
	event.shaped(
	  Item.of('minecraft:blast_furnace'), 
	  [
		'PPP',
		'PMP', 
		'PHP' 
	  ],
	  {
		P: 'minecraft:smooth_stone',
		M: 'kubejs:primitive_machine',
		H: 'minecraft:furnace'
	  }
	)
	event.remove('minecraft:observer')
	event.shapeless('minecraft:observer', ['kubejs:primitive_machine','minecraft:spider_eye'])
	
	event.remove('minecraft:dropper')
	event.shapeless('minecraft:dropper', ['kubejs:primitive_machine','quark:chute'])
	
	event.remove('minecraft:dispenser')
	event.shapeless('minecraft:dispenser', ['kubejs:primitive_machine','minecraft:bow'])
	
	event.remove('minecraft:piston')
	event.shapeless('minecraft:piston', ['kubejs:primitive_machine','create:piston_extension_pole'])
	
	event.replaceInput({id:"immersiveengineering:crafting/conveyor_basic"},"minecraft:redstone","kubejs:primitive_machine")
	event.replaceInput({id:"immersiveengineering:crafting/conveyor_extract"},"immersiveengineering:component_iron","woodenhopper:wooden_hopper")
	event.replaceInput({id:"immersiveengineering:crafting/hemp_fabric"},"#forge:rods/wooden","immersiveengineering:stick_treated")
	event.replaceInput({id:"immersiveengineering:crafting/strip_curtain"},"#forge:rods/all_metal","immersiveengineering:stick_treated")
	
	event.remove({output:'create:belt_connector'})
	event.shaped(
	  Item.of('create:belt_connector'), 
	  [
		'PPP',
		'PMP', 
		'PPP' 
	  ],
	  {
		P: "immersiveengineering:conveyor_basic",
		M: 'thermal:cured_rubber',
	  }
	)
	
	event.remove('create:piston_extension_pole')
	event.shaped(
	  Item.of('4x create:piston_extension_pole'), 
	  [
		'P',
		'M', 
		'P' 
	  ],
	  {
		P: "#minecraft:planks",
		M: '#forge:ingots/iron',
	  }
	)
	
	/// ======================================== Tier 2 Components ================================================================

	event.recipes.ars_nouveau.enchanting_apparatus(
		["create_sa:zinc_handle","blaze_rod","#forge:storage_blocks/coal_coke","#forge:storage_blocks/coal_coke"],
		"twilightforest:liveroot",
		"kubejs:carbon_infused_sturdy_handle",
		1000
	)

	event.recipes.ars_nouveau.enchanting_apparatus(
		["kubejs:ivy_block","kubejs:ivy_block","kubejs:ivy_block","kubejs:ivy_block","ars_nouveau:earth_essence","ars_nouveau:earth_essence"],
		"kubejs:lemon_quartz",
		"kubejs:ivy_quartz",
		1000
	)

	

	event.custom({
		type: "lychee:lightning_channeling",
		post: [
			{ type: "drop_item", item: "kubejs:lemon_quartz" },
			{ type: "execute", command: "playsound irons_spellbooks:spell.poison_splash.begin neutral @p", hide: true }
		],
		item_in: [
			{ item: "kubejs:sulfur_quartz_blend" },
			{ item: "forbidden_arcanus:arcane_crystal_dust" },
			{ item: "fruitsdelight:lemon_juice" },
			{ item: "fruitsdelight:lemon_juice" },
			{ item: "fruitsdelight:lemon_juice" },
			{ item: "fruitsdelight:lemon_juice" }
		]
	})
	event.shapeless("3x kubejs:sulfur_quartz_blend",["5x #forge:dusts/sulfur","4x #forge:dusts/quartz"])

	event.shapeless("minecraft:heart_of_the_sea",["ars_nouveau:water_essence","8x minecraft:prismarine_crystals"])

	event.custom({
		type: "lychee:block_crushing",
		post: [
			{ type: "drop_item", item: "forbidden_arcanus:mundabitur_dust" },
			{ type: "execute", command: "playsound minecraft:entity_blaze.hurt neutral @p", hide: true }
		],
		item_in: [
			{ item: "forbidden_arcanus:arcane_crystal_dust" },
			{ item: "kubejs:arcane_alloy_ingot" },
			{ item: "rose_bush" },
			{ tag: "forge:gems/cinnabar" }
		]
	}).id("forbidden_arcanus:mundabitur_dust")

   event.recipes.ars_nouveau.enchanting_apparatus(["create_sa:zinc_handle","#forge:gems/ruby","#forge:storage_blocks/gold","#forge:storage_blocks/gold","#forge:storage_blocks/gold","#forge:storage_blocks/gold"],"bundle","kubejs:gold_upgrade_parts")

   event.custom({
	type: "lychee:block_crushing",
	post: [
		{ type: "drop_item", item: "forbidden_arcanus:corrupti_dust" },
		{ type: "execute", command: "playsound minecraft:entity_blaze.death neutral @p", hide: true }
	],
	item_in: [
		{ item: "forbidden_arcanus:mundabitur_dust" },
		{ item: "forbidden_arcanus:obsidian_ingot" },
		{ item: "allium" },
		{ item: "forbidden_arcanus:rune" }
	]
	}).id("forbidden_arcanus:corrupti_dust")

	event.custom({
			type: "elementalcraft:infusion",
			element_amount: 500,
			element_type: "earth",
			input: {item: "quark:sturdy_stone"},
			output: {item: "elementalcraft:whiterock"}
	}).id("elementalcraft:infusion/whiterock")

	event.shaped(
	  Item.of('kubejs:magic_machine'), 
	  [
		'CAC',
		'AXA',
		'CAC'
	  ],
	  {
		X: "kubejs:basic_magic_machine",
		C: 'naturesaura:infused_iron',
		A: "naturesaura:infused_stone"
	  }
	)

	event.remove('create:filter')
	event.shaped(
	  Item.of('create:filter'), 
	  [
		'CXC'
	  ],
	  {
		X: "minecraft:iron_bars",
		C: '#minecraft:wool',
	  }
	)

	event.remove('minecraft:iron_bars')
	event.shaped(
	  Item.of('6x minecraft:iron_bars'), 
	  [
		'CCC',
		'CCC'
	  ],
	  {
		C: '#forge:rods/iron',
	  }
	)

	function smithingtemplate(block,material,name)
	{
		event.shaped(
			Item.of("2x kubejs:"+name+"_upgrade_smithing_template"), 
			[
			  'CZC',
			  'CXC',
			  'CCC'
			],
			{
			  Z: block,
			  C: material,
			  X: "kubejs:"+name+"_upgrade_smithing_template"
			}
		  )
	}
	smithingtemplate("minecraft:mossy_stone_bricks","naturesaura:infused_iron","botanist")
	smithingtemplate("elementalcraft:whiterock","naturesaura:sky_ingot","skyseeker")
	smithingtemplate("basalt","thermal:gold_plate","gold")
	smithingtemplate("end_stone","#forge:ingots/steel","steel")

	event.recipes.naturesaura.tree_ritual("naturesaura:token_joy",
	["#forge:gems/lapis","kubejs:basic_token","create:bar_of_chocolate","create:bar_of_chocolate","create:bar_of_chocolate","create:bar_of_chocolate","create:bar_of_chocolate","create:bar_of_chocolate"],"quark:yellow_blossom_sapling",100).id("naturesaura:tree_ritual/token_joy")

	event.recipes.naturesaura.tree_ritual("naturesaura:token_sorrow",
	["#forge:dusts/redstone","kubejs:basic_token","crying_obsidian","crying_obsidian","crying_obsidian","crying_obsidian","crying_obsidian","crying_obsidian"],"quark:blue_blossom_sapling",100).id("naturesaura:tree_ritual/token_sorrow")

	event.recipes.naturesaura.tree_ritual("naturesaura:token_fear",
	["#forge:gems/niter","kubejs:basic_token","carved_pumpkin","carved_pumpkin","carved_pumpkin","carved_pumpkin","carved_pumpkin","carved_pumpkin"],"quark:lavender_blossom_sapling",100).id("naturesaura:tree_ritual/token_fear")

	event.recipes.naturesaura.tree_ritual("naturesaura:token_anger",
	["#forge:gems/sulfur","kubejs:basic_token","immersive_weathering:vitrified_sand","immersive_weathering:vitrified_sand","immersive_weathering:vitrified_sand","immersive_weathering:vitrified_sand","immersive_weathering:vitrified_sand","immersive_weathering:vitrified_sand"],"quark:red_blossom_sapling",100).id("naturesaura:tree_ritual/token_anger")

	
	event.custom({
		type: "lychee:item_inside",
		contextual:[
			{type: "location",predicate: {biome: "minecraft:lush_caves"}}
		  ],
		  post: [
			{ type: "drop_item", item: "kubejs:nature_essence"},
			{ type: "execute", command: "playsound irons_spellbooks:spell.acid_orb.charge neutral @p", hide: "true"}
		  ],
		  item_in: [
			{item: "kubejs:sapling_ball"},
			{item: "farmersdelight:rich_soil"},
			{item: "ars_nouveau:source_gem"},
			{item: "minecraft:honeycomb"}
		  ],
		  block_in: "minecraft:water"
	})
	
	
	event.remove({output:'tombstone:strange_scroll'})
	event.custom({
		type: "ars_nouveau:imbuement",
		count: 1,
		input: {item: "farmersdelight:canvas"},
		output: 'tombstone:strange_scroll',
		pedestalItems: [],
		source: 1000
	})

	event.remove({output:'elementalcraft:contained_crystal'})
	event.custom({
		type: "ars_nouveau:imbuement",
		count: 1,
		input: {item: "elementalcraft:inert_crystal"},
		output: "elementalcraft:contained_crystal",
		pedestalItems: [],
		source: 500
	})
	
	event.custom({
		type: "lychee:item_inside",
		contextual:[
			{type: "location",predicate: {position:{ y: {min: 200, max: 350}}}}
		  ],
		  post: [
			{type: "drop_item",item: "ars_nouveau:air_essence"},
			{type: "execute",command: "playsound irons_spellbooks:spell.gust.cast neutral @p",hide: "true"}
		  ],
		  item_in: [
			{item: "kubejs:nature_essence"},
			{item: "elementalcraft:aircrystal"},
			{item:  "ars_nouveau:source_gem"},
			{item: "minecraft:feather"}
		  ],
		  block_in: "minecraft:water"
	}).id("ars_nouveau:imbuement_air_essence")
	
	event.custom({
		type: "lychee:item_inside",
		contextual: [
			{type: "location",predicate: {biome: "minecraft:lush_caves"}}
		  ],
		  post: [
			{type: "drop_item",item: "ars_nouveau:water_essence"},
			{type: "execute",command: "playsound minecraft:entity.dolphin.jump neutral @p",hide: "true"}
		  ],
		  item_in: [
			{item: "kubejs:nature_essence"},
			{item: "elementalcraft:watercrystal"},
			{item:  "ars_nouveau:source_gem"},
			{tag: "minecraft:fishes"}
		  ],
		  block_in: "minecraft:water"
	}).id("ars_nouveau:imbuement_water_essence")
	
	event.remove({id:"ars_nouveau:imbuement_earth_essence"})
	event.custom({
		type: "lychee:item_exploding",
		contextual: [
			{type: "location",predicate: {position:{ y: {min: -64,max: 20}}}}
		  ],
		  post: [
			{type: "drop_item",item: "ars_nouveau:earth_essence"},
			{type: "execute",command: "playsound irons_spellbooks:spell.earthquake.cast neutral @p",hide: "true"}
		  ],
		  item_in: [
			{item: "kubejs:nature_essence"},
			{item: "elementalcraft:earthcrystal"},
			{item:  "ars_nouveau:source_gem"},
			{item: "minecraft:bone"}
		  ]
	})
	
	event.remove({id:"ars_nouveau:imbuement_fire_essence"})
	event.custom({
		type: "lychee:item_exploding",
		contextual: [
			{type: "location",predicate: {dimension: "minecraft:the_nether"}}
		  ],
		  post: [
			{type: "drop_item",item: "ars_nouveau:fire_essence"},
			{type: "execute",command: "playsound irons_spellbooks:spell.heatsurge.prepare neutral @p",hide: "true"}
		  ],
		  item_in: [
			{item: "kubejs:nature_essence"},
			{item: "elementalcraft:firecrystal"},
			{item:  "ars_nouveau:source_gem"},
			{item: "minecraft:blaze_rod"}
		  ]
	})

	


	

	event.remove({output:'ars_nouveau:arcane_pedestal'})
	event.shaped(
		Item.of('ars_nouveau:arcane_pedestal'), 
		[
		  'WWW',
		  'GXG', 
		  'GWG' 
		],
		{
		  X: 'irons_spellbooks:pedestal',
		  W: 'kubejs:arcane_alloy_ingot',
		  G: "#forge:rods/gold"

		}
	)

	event.recipes.naturesaura.tree_ritual("2x kubejs:arcane_alloy_ingot",["ars_nouveau:source_gem","ars_nouveau:source_gem","ars_nouveau:source_gem","#forge:dusts/gold","#forge:dusts/gold","#forge:dusts/gold"],"ars_nouveau:purple_archwood_sapling",100)
	
	event.recipes.naturesaura.tree_ritual("2x kubejs:inert_alloy_ingot",["elementalcraft:contained_crystal","elementalcraft:contained_crystal","elementalcraft:contained_crystal","#forge:dusts/iron","#forge:dusts/iron","#forge:dusts/iron"],"birch_sapling",100)

	event.replaceInput({id:'naturescompass:natures_compass'},'#minecraft:saplings','kubejs:nature_essence')
	/// ======================================== Tier 2 Machines ================================================================
	
	event.recipes.naturesaura.tree_ritual("kubejs:pressing_catalyst",["kubejs:arcane_alloy_ingot","kubejs:inert_alloy_ingot","anvil","anvil","immersiveengineering:hammer","immersiveengineering:hammer","anvil","anvil"],"architects_palette:twisted_sapling")
	
	event.shaped("elementalcraft:water_mill_grindstone",
		[
			"CXC",
			"AMA",
			"XGX"
		],
		{
			X: "elementalcraft:whiterock",
			C: "kubejs:carbon_infused_sturdy_handle",
			A: "ars_nouveau:water_essence",
			M: "kubejs:basic_magic_machine",
			G: "create:millstone"
		}
	).id("elementalcraft:water_mill_grindstone")

	event.shaped("elementalcraft:evaporator",
		[
			"CXC",
			"GFG",
			"CMC"
		],
		{
			F: "blast_furnace",
			X: "#forge:glass",
			M: "kubejs:basic_magic_machine",
			C: "kubejs:carbon_infused_sturdy_handle",
			G: "elementalcraft:elementpipe_impaired"
		}
	).id("elementalcraft:evaporator")

	event.shaped(
		Item.of('elementalcraft:extractor'), 
		[
		  ' X ',
		  ' C ',
		  'CMC'
		],
		{
		  M: "kubejs:basic_magic_machine",
		  X: 'hopper',
		  C: 'kubejs:carbon_infused_sturdy_handle'
		}
	).id("elementalcraft:extractor")

	event.shaped(
		Item.of('elementalcraft:infuser'), 
		[
		  'CIC',
		  'IMI',
		  'CIC'
		],
		{
		  M: "kubejs:basic_magic_machine",
		  I: 'kubejs:inert_alloy_ingot',
		  C: 'kubejs:carbon_infused_sturdy_handle'
		}
	).id("elementalcraft:infuser")

	event.shaped(
		Item.of('ars_nouveau:arcane_core'), 
		[
		  'AAA',
		  'RXR',
		  'AMA'
		],
		{
		  M: "kubejs:basic_magic_machine",
		  X: "quark:diamond_heart",
		  R: '#forge:rods/gold',
		  A: 'kubejs:arcane_alloy_ingot'
		}
	).id("ars_nouveau:arcane_core")

	event.remove({output:'minecraft:enchanting_table'})
	event.shaped(
	  Item.of('minecraft:enchanting_table'), 
	  [
		' X ',
		'POP',
		'OMO'
	  ],
	  {
		O: "minecraft:obsidian",
		M: "kubejs:magic_machine",
		X: 'quark:diamond_heart',
		P: '#forge:plates/diamond'
	  }
	)

	event.remove({output:"ars_nouveau:source_jar"})

	event.remove('elementalcraft:instrument_retriever')
	event.shaped(
	  Item.of('elementalcraft:instrument_retriever'), 
	  [
		'RRR',
		'RFR',
		' H '
	  ],
	  {
		R: "elementalcraft:whiterock",
		F: "create:filter",
		H: 'woodenhopper:wooden_hopper'
	  }
	)

	event.remove('irons_spellbooks:pedestal')
	event.shaped(
	  Item.of('irons_spellbooks:pedestal'), 
	  [
		'H',
		'F',
		'H'
	  ],
	  {
		
		F: "create:depot",
		H: 'minecraft:andesite'
	  }
	)

	event.remove('elementalcraft:sorter')
	event.shaped(
	  Item.of('elementalcraft:sorter'), 
	  [
		'RRR',
		'RFR',
		' H '
	  ],
	  {
		R: "elementalcraft:whiterock",
		F: "minecraft:comparator",
		H: 'elementalcraft:instrument_retriever',
	  }
	)

	event.remove({output:'create:schematicannon'})
	event.shaped(
	  Item.of('create:schematicannon'), 
	  [
		' BB',
		'WDW',
		'SFS'
	  ],
	  {
		S: "minecraft:smooth_stone",
		W: "#minecraft:logs",
		D: "minecraft:dispenser",
		B: '#forge:storage_blocks/iron',
		F: "ars_nouveau:fire_essence"
	  }
	)
	
	clickb("vintagedelight:fermenting_jar","kubejs:arcane_alloy_ingot","ars_nouveau:source_jar")
	event.remove({output:"ars_nouveau:mob_jar"})
	event.shapeless("ars_nouveau:mob_jar",["ars_nouveau:source_jar","supplementaries:cage"])
	event.shaped(
	  Item.of('3x quark:pipe'), 
	  [
		'CGC'
	  ],
	  {
		C: '#forge:ingots/copper',
		G: 'elementalcraft:burnt_glass'
	  }
	)
	
	event.remove({output:'quark:feeding_trough'})
	event.shaped(
	  Item.of('quark:feeding_trough'), 
	  [
		'CGC',
		'CCC'
	  ],
	  {
		C: '#forge:treated_wood',
		G: 'kubejs:nature_essence'
	  }
	)
	
	event.remove({output:'elementalcraft:elementpipe_impaired'})
	event.shaped(
	  Item.of('12x elementalcraft:elementpipe_impaired'), 
	  [
	    'GGG',
		'CMC',
		'GGG'
	  ],
	  {
		C: 'elementalcraft:contained_crystal',
		M: 'kubejs:basic_magic_machine',
		G: '#forge:glass'
	  }
	)
	
	event.remove({output:'irons_spellbooks:arcane_anvil'})
	event.shaped(
	  Item.of('irons_spellbooks:arcane_anvil'), 
	  [
	    'DMD',
		' A ',
		'GGG'
	  ],
	  {
		D: '#forge:gems/diamond',
		A: 'minecraft:anvil',
		M: 'kubejs:magic_machine',
		G: 'minecraft:polished_deepslate'
	  }
	)
	
	event.remove({output:"immersiveengineering:alloybrick"})
	event.custom({	
		 type: "ars_nouveau:imbuement",
	  "count": 1,
	  "input": {
		item: "kubejs:magic_machine"
	  },
	  "output": "immersiveengineering:alloybrick",
	  "pedestalItems": [
		{
		  item: {
			item: "ars_nouveau:air_essence"
		  }
		},
		{
		  item: {
			item: "ars_nouveau:water_essence"
		  }
		},
		{
		  item: {
			item: "ars_nouveau:fire_essence"
		  }
		},
		{
			item: {
			  item: "naturesaura:tainted_gold"
			}
		},
		{
		  item: {
			item: "ars_nouveau:earth_essence"
		  }
		}
	  ],
	  "source": 500	
	})

	event.remove({output:"ars_nouveau:enchanting_apparatus"})
	event.custom({
		type: "naturesaura:tree_ritual",
		ingredients: [
			{item: "enchanted_book"},
			{tag: "forge:storage_blocks/diamond"},
			{item: "kubejs:arcane_alloy_ingot"},
			{item: "kubejs:arcane_alloy_ingot"},
			{tag: "forge:storage_blocks/gold"},
			{tag: "forge:storage_blocks/gold"},
			{item: "kubejs:arcane_alloy_ingot"},
			{item: "kubejs:arcane_alloy_ingot"}
		],
		"sapling": {item: "ars_nouveau:blue_archwood_sapling"},
		"output": {item: "ars_nouveau:enchanting_apparatus","count": 1},
		"time": 200
	})

	event.remove({output:"naturesaura:nature_altar"})
	event.custom(
		{
			type: "ars_nouveau:enchanting_apparatus",
			"keepNbtOfReagent": false,
			"output": {item: "naturesaura:nature_altar"},
			"pedestalItems": [
			  {item: "minecraft:smooth_stone"},
			  {item: "naturesaura:token_joy"},
			  {item: "kubejs:nature_essence"},
			  {item: "kubejs:nature_essence"},
			  {item: "kubejs:nature_essence"},
			  {item: "kubejs:nature_essence"},
			  {item: "kubejs:nature_essence"},
			  {item: "kubejs:nature_essence"}
			],
			"reagent": [
			  {item: "kubejs:basic_magic_machine"}
			],
			"sourceCost": 0
		  }
	)
	

	event.remove({output:'create_sa:zinc_handle'})
	event.custom({
		type: "ars_nouveau:enchanting_apparatus",
		"keepNbtOfReagent": false,
		"output": {item: "create_sa:zinc_handle"},
		"pedestalItems": [
		  {item: "minecraft:leather"},
		  {item: "minecraft:string"},
		  {item: "naturesaura:ancient_stick"},
		  {tag: "forge:ingots/zinc"},
		  {tag: "forge:ingots/zinc"},
		  {tag: "forge:ingots/zinc"}
		],
		"reagent": [
		  {item: 'immersiveengineering:stick_treated'}
		],
		"sourceCost": 0
	})
	
	event.remove({output:"create:water_wheel"})
	event.shapeless("create:water_wheel", ["create:cogwheel","ars_nouveau:water_essence"])
	
	event.remove({output:"create:large_water_wheel"})
	event.shapeless("create:large_water_wheel", ["create:large_cogwheel","2x ars_nouveau:water_essence"])
	
	
	
	///========================================= Tier 3 Components ================================================================

	event.recipes.farmersdelight.cutting("deep_aether:goldenleaf_berries","#forge:tools/knives",Item.of("naturesaura:gold_leaf")
	.withChance(0.5))

	event.custom(
		{
			type: "lychee:block_crushing",
			post:[
				{type: "drop_item", item: "sophisticatedstorage:storage_link"},
				{type: "execute", command: "playsound immersiveengineering:metal_press_smash neutral @p", hide: true}
			],
			item_in:[
				{item: "ender_pearl"},
				{item: "sophisticatedstorage:advanced_pickup_upgrade"},
				{tag: "forge:plates/nickel"},
				{item: "kubejs:ivy_quartz"}
			]
		}
	).id("sophisticatedstorage:storage_link")
	event.remove({id:"sophisticatedstorage:storage_link_from_controller"})

	event.shaped(
		Item.of('create:brass_hand'), 
		[
		  ' A ',
		  'BCB',
		  ' B '
		],
		{
		  C: 'alexsmobs:falconry_glove',
		  B: '#forge:plates/brass',
		  A: 'create:andesite_alloy'
		  
		}
	  ).id("create:crafting/kinetics/brass_hand")

	event.custom({
		type: "create:sequenced_assembly",
		ingredient: {item: "kubejs:ivy_quartz"},
		loops: 12,
		results: [
		  {item: "kubejs:salmon_quartz"}
		],
		"sequence": [
			{
				type: "create:deploying",
				ingredients: [
				  {item: "kubejs:unstable_ivy_quartz"},
				  {item: "regions_unexplored:salmonberry" }
				],
				results: [
				  {item: "kubejs:unstable_ivy_quartz"}
				]
			  },
			{
				type: "create:deploying",
				ingredients: [
				  {item: "kubejs:unstable_ivy_quartz"},
				  {item: "regions_unexplored:salmonberry"}
				],
				results: [
				  {item: "kubejs:unstable_ivy_quartz"}
				]
			  },
		  {
			type: "create:deploying",
			ingredients: [
			  {item: "kubejs:unstable_ivy_quartz"},
			  {tag: "forge:raw_fishes/salmon"}
			],
			results: [
			  {item: "kubejs:unstable_ivy_quartz"}
			]
		  },
		  {
			type: "create:deploying",
			ingredients: [
			  {item: "kubejs:unstable_ivy_quartz"},
			  {item: "regions_unexplored:salmonberry"}
			],
			results: [
			  {item: "kubejs:unstable_ivy_quartz"}
			]
		  },
		],
		"transitionalItem": {item: "kubejs:unstable_ivy_quartz"}
	})

	event.recipes.naturesaura.altar("naturesaura:infused_stone","elementalcraft:whiterock",7500,40).id("naturesaura:altar/infused_stone")
	event.remove({output:"minecraft:clock"})
	event.custom({
		type: "create:sequenced_assembly",
		"ingredient": {
		  tag: "forge:plates/gold"
		},
		"loops": 1,
		results: [
		  {
			item: "minecraft:clock"
		  }
		],
		"sequence": [
		  {
			type: "create:deploying",
			ingredients: [
			  {
				item: "kubejs:unassembled_clock"
			  },
			  {
				item: "vintageimprovements:redstone_module"
			  }
			],
			results: [
			  {
				item: "kubejs:unassembled_clock"
			  }
			]
		  },
		  {
			type: "create:pressing",
			ingredients: [
			  {
				item: "kubejs:unassembled_clock"
			  }
			],
			results: [
			  {
				item: "kubejs:unassembled_clock"
			  }
			]
		  },
		  {
			type: "create:deploying",
			ingredients: [
			  {
				item: "kubejs:unassembled_clock"
			  },
			  {
				tag: "forge:rods/gold"
			  }
			],
			results: [
			  {
				item: "kubejs:unassembled_clock"
			  }
			]
		  },
		  {
			type: "create:pressing",
			ingredients: [
			  {
				item: "kubejs:unassembled_clock"
			  }
			],
			results: [
			  {
				item: "kubejs:unassembled_clock"
			  }
			]
		  }
		],
		"transitionalItem": {
		  item: "kubejs:unassembled_clock"
		}
	  }
	)

	event.remove({output:"minecraft:compass"})
	event.custom({
		type: "create:sequenced_assembly",
		"ingredient": {
		  tag: "forge:plates/iron"
		},
		"loops": 1,
		results: [
		  {
			item: "minecraft:compass"
		  }
		],
		"sequence": [
		  {
			type: "create:deploying",
			ingredients: [
			  {
				item: "kubejs:unassembled_compass"
			  },
			  {
				item: "vintageimprovements:redstone_module"
			  }
			],
			results: [
			  {
				item: "kubejs:unassembled_compass"
			  }
			]
		  },
		  {
			type: "create:pressing",
			ingredients: [
			  {
				item: "kubejs:unassembled_compass"
			  }
			],
			results: [
			  {
				item: "kubejs:unassembled_compass"
			  }
			]
		  },
		  {
			type: "create:deploying",
			ingredients: [
			  {
				item: "kubejs:unassembled_compass"
			  },
			  {
				tag: "forge:rods/iron"
			  }
			],
			results: [
			  {
				item: "kubejs:unassembled_compass"
			  }
			]
		  },
		  {
			type: "create:pressing",
			ingredients: [
			  {
				item: "kubejs:unassembled_compass"
			  }
			],
			results: [
			  {
				item: "kubejs:unassembled_compass"
			  }
			]
		  }
		],
		"transitionalItem": {
		  item: "kubejs:unassembled_compass"
		}
	  }
	)
	
	
	event.remove({output:'architects_palette:algal_blend'})
	event.shaped(
	  Item.of('4x architects_palette:algal_blend'), 
	  [
	    'IGI',
		'CXC',
		'IGI'
	  ],
	  {
		C: 'minecraft:clay_ball',
		I: '#forge:dusts/iron',
		X: 'kubejs:nature_essence',
		G: 'minecraft:kelp'
	  }
	)
	
	
	event.shapeless('9x create:andesite_alloy', ['create:andesite_alloy_block'])
	event.remove({output:'create:andesite_alloy'})
	event.custom({
		type: "immersiveengineering:alloy",
		  "input0": {
			item: "architects_palette:algal_blend"
		  },
		  "input1": {
			item: "minecraft:andesite"
		  },
		  "result": {
			"base_ingredient": {
			  item: "create:andesite_alloy"
			},
			"count": 2
		  },
		  "time": 200
		
	})
	event.custom({
		type: "immersiveengineering:alloy",
		  "input0": {
			item: "ars_nouveau:water_essence"
		  },
		  "input1": {
			item: "kubejs:inert_alloy_ingot"
		  },
		  "result": {
			"base_ingredient": {
			  item: "elementalcraft:drenched_iron_ingot"
			},
			"count": 2
		  },
		  "time": 200
	}).id("elementalcraft:infusion/drenched_iron_ingot")

	event.custom({
		type: "immersiveengineering:alloy",
		  "input0": {
			tag: "twilightforest:fiery_vial"
		  },
		  "input1": {
			item: "kubejs:inert_alloy_ingot"
		  },
		  "result": {
			"base_ingredient": {
			  item: "twilightforest:fiery_ingot"
			},
			"count": 1
		  },
		  "time": 200	
	}).id("twilightforest:equipment/fiery_ingot_crafting")

	event.custom({
		type: "immersiveengineering:alloy",
		  "input0": {
			base_ingredient: {
				item: "ars_nouveau:fire_essence"
			},
			count: 4
		  },
		  "input1": {
			item: "twilightforest:fiery_tears"
		  },
		  "result": {
			"base_ingredient": {
			  item: "twilightforest:fiery_tears"
			},
			"count": 2
		  },
		  "time": 800	
	})

	event.custom({
		type: "immersiveengineering:alloy",
		  "input0": {
			base_ingredient: {
				item: "ars_nouveau:fire_essence"
			},
			count: 4
		  },
		  "input1": {
			item: "twilightforest:fiery_blood"
		  },
		  "result": {
			"base_ingredient": {
			  item: "twilightforest:fiery_blood"
			},
			"count": 2
		  },
		  "time": 800	
	})

	
	event.remove({output:'minecraft:cauldron'})
	event.shaped(
	  Item.of('minecraft:cauldron'), 
	  [
		' I ',
		'IXI', 
		' I ' 
	  ],
	  {
		X: 'create:basin',
		I: '#forge:ingots/iron'
	  }
	)
	
	event.shaped(
	  Item.of('kubejs:andesite_machine'), 
	  [
		'AYA',
		'AXA', 
		'AZA' 
	  ],
	  {
		X: 'minecraft:dispenser',
		Z: 'vintageimprovements:redstone_module',
		A: 'create:andesite_casing',
		Y: 'minecraft:hopper'
	  }
	)

	event.remove({id:"vintageimprovements/sequenced_assembly/redstone_module"})
	event.remove({output:"vintageimprovements:redstone_module"})
	event.custom({
		type: "elementalcraft:binding",
		"element_amount": 1250,
		"element_type": "air",
		ingredients: [
			{
			tag: "forge:plates/gold"
			},
			{
			item: "createaddition:redstone_relay"
			},
			{
			item: "minecraft:comparator"
			},
			{
			item: "create:pulse_repeater"
			},
			{
			item: "elementalcraft:firecrystal"
			}
		],
		"output": {
			"Count": 1,
			item: "vintageimprovements:redstone_module"
		}
	})

	event.custom({
		type: "elementalcraft:binding",
		"element_amount": 1250,
		"element_type": "air",
		ingredients: [
			{
			item: "ars_nouveau:fire_essence"
			},
			{
			item: "ars_nouveau:water_essence"
			},
			{
			item: "naturesaura:end_city_finder"
			},
			{
			item: "minecraft:crying_obsidian"
			},
			{
			item: "minecraft:crying_obsidian"
			}
		],
		"output": {
			"Count": 1,
			item: "kubejs:ender_essence"
		}
	})
	
	///======================================== Tier 3 Machines =======================================================================
	event.shaped(
		Item.of('create:mechanical_press'), 
		[
		  'PXP',
		  'PYP', 
		  'PZP'
		],
		{
		  P: 'create:andesite_casing',
		  X: 'kubejs:andesite_machine',
		  Y: "piston",
		  Z: "kubejs:pressing_catalyst"
		}
	  ).id("create:crafting/kinetics/mechanical_press")
	
	event.shaped(
	  Item.of('sophisticatedstorage:controller'), 
	  [
		'PXP',
		'LYL', 
		'PZP'
	  ],
	  {
		P: '#forge:plates/silver',
		X: 'kubejs:ender_essence',
		Y: "sophisticatedstorage:gold_barrel",
		Z: "vintageimprovements:redstone_module",
		L: "sophisticatedstorage:storage_link"
	  }
	).id("sophisticatedstorage:controller")

	event.remove({output:'torchmaster:megatorch'})
	event.shaped(
	  Item.of('torchmaster:megatorch'), 
	  [
		'AXA',
		' L ', 
		'ALA'
	  ],
	  {
		A: '#forge:storage_blocks/lead',
		X: 'kubejs:light_essence',
		L: "#minecraft:logs"
	  }
	)
	
	event.remove({output:'thermal:device_rock_gen'})
	event.shaped(
	  Item.of('thermal:device_rock_gen'), 
	  [
	    'IBI',
		'WXL',
		'III'
	  ],
	  {
		L: 'minecraft:lava_bucket',
		B: 'ars_nouveau:glyph_break',
		I: '#forge:plates/tin',
		X: 'kubejs:andesite_machine',
		W: 'minecraft:water_bucket'
	  }
	)
	
	event.remove({output:'farmersdelight:cooking_pot'})
	event.shaped(
	  Item.of('farmersdelight:cooking_pot'), 
	  [
		' Y ',
		' Z ', 
		'IXI' 
	  ],
	  {
		X: 'minecraft:cauldron',
		Y: 'minecraft:iron_shovel',
		Z: 'minecraft:heart_of_the_sea',
		I: 'minecraft:brick'
	  }
	)
	
	event.remove({output:'irons_spellbooks:alchemist_cauldron'})
	event.shaped(
	  Item.of('irons_spellbooks:alchemist_cauldron'), 
	  [
		'ICI',
		'IMI', 
		'IFI' 
	  ],
	  {
		I: '#forge:ingots/iron',
		C: 'minecraft:cauldron',
		M: 'kubejs:andesite_machine',
		F: 'ars_nouveau:fire_essence'
	  }
	)

	event.remove({id:"vintageimprovements/sequenced_assembly/redstone_module"})
	event.remove({output:"create:smart_chute"})
	event.custom({
		type: "elementalcraft:binding",
		"element_amount": 250,
		"element_type": "water",
		ingredients: [
			{
			tag: "forge:plates/brass"
			},
			{
			item: "create:filter"
			},
			{
			item: "vintageimprovements:redstone_module"
			},
			{
			item: "create:chute"
			}
		],
		"output": {
			"Count": 1,
			item: "create:smart_chute"
		}
	})

	event.remove({output:"create:brass_tunnel"})
	event.custom({
		type: "elementalcraft:binding",
		"element_amount": 250,
		"element_type": "water",
		ingredients: [
			{
			tag: "forge:plates/brass"
			},
			{
			item: "create:filter"
			},
			{
			item: "vintageimprovements:redstone_module"
			},
			{
			item: "create:andesite_tunnel"
			}
		],
		"output": {
			"Count": 1,
			item: "create:brass_tunnel"
		}
	})

	event.remove({output:"create:brass_funnel"})
	event.custom({
		type: "elementalcraft:binding",
		"element_amount": 250,
		"element_type": "water",
		ingredients: [
			{
			tag: "forge:plates/brass"
			},
			{
			item: "create:filter"
			},
			{
			item: "vintageimprovements:redstone_module"
			},
			{
			item: "create:andesite_funnel"
			}
		],
		"output": {
			"Count": 1,
			item: "create:brass_funnel"
		}
	})

	
	//============================================ Tier 4 Components ========================================================================================

	event.recipes.create.mixing("create:rose_quartz",["kubejs:salmon_quartz","4x forbidden_arcanus:mundabitur_dust","wither_rose"]).id("create:crafting/materials/rose_quartz").heated()

	event.remove({id:'immersiveengineering:blastfurnace/steel'})

	event.custom({

		type: "immersiveengineering:blast_furnace",
		"input": {
			item: "kubejs:wrought_iron_ingot"
		},
		"result": {
			item: "thermal:steel_ingot"
		},
		"slag": {
			item: "thermal:slag"
		},
		"time": 600
	})

	event.shaped(
		Item.of('kubejs:steel_machine'), 
		[
		  'III',
		  'IMI', 
		  'III' 
		],
		{
		  I: '#forge:plates/steel',
		  M: 'kubejs:andesite_machine'

		}
	  )
	event.recipes.create.compacting("prettypipes:blank_module",["#forge:storage_blocks/zinc","3x prettypipes:pipe","vintageimprovements:redstone_module"]).id("prettypipes:blank_module")

	event.recipes.create.compacting("prettypipes:low_crafting_module",["prettypipes:blank_module","create:mechanical_arm","sophisticatedstorage:crafting_upgrade"]).id("prettypipes:low_crafting_module")

	event.recipes.create.compacting("prettypipes:low_filter_module",["prettypipes:blank_module","sophisticatedstorage:filter_upgrade","3x prettypipes:pipe"]).id("prettypipes:low_filter_module")
	
	event.recipes.create.mixing("kubejs:fiery_clay_blend",["#forge:dusts/coal_coke","ars_nouveau:fire_essence","twigs:silt_ball","clay_ball","ars_nouveau:bombegranate_pod"]).heated()

	event.recipes.create.compacting("immersiveengineering:blastbrick","12x kubejs:fiery_clay_blend").id("immersiveengineering:crafting/blastbrick").heated()

	event.replaceInput({id:"create:crafting/kinetics/mechanical_mixer"},"create:andesite_casing","kubejs:andesite_machine")
	event.shaped(
		Item.of('create:empty_blaze_burner'), 
		[
		  'BBB',
		  'FDF', 
		  'BNB' 
		],
		{
		  B: 'iron_bars',
		  D: 'kubejs:death_essence',
		  F: "ars_nouveau:fire_essence",
		  N: "netherrack"

		}
	  ).id("create:crafting/kinetics/empty_blaze_burner")
	//===================================================== Tier 4 Machines

		event.remove({id:'ars_nouveau:storage_lectern'})
		event.custom({
			type: "ars_nouveau:imbuement",
			"count": 1,
			"input": {
				item: "prettypipes:crafting_terminal"
			},
			"output": 'ars_nouveau:storage_lectern',
			"pedestalItems": [],
			"source": 10000
		})

	  event.remove({output:'minecraft:hopper'})
	  event.shaped(
		Item.of('2x minecraft:hopper'), 
		[
		  ' I ',
		  'IMI', 
		  ' I ' 
		],
		{
		  I: '#forge:plates/steel',
		  M: 'woodenhopper:wooden_hopper'

		}
	  )

	  event.shaped(
		Item.of('minecraft:hopper'), 
		[
		  'III',
		  'IMI', 
		  'III' 
		],
		{
		  I: '#forge:plates/iron',
		  M: 'woodenhopper:wooden_hopper',

		}
	  )

	  event.remove({output:"prettypipes:pipe"})
	  event.shaped(
		Item.of('prettypipes:pipe'), 
		[
		  'IMI' 
	 
		],
		{
		  I: '#forge:nuggets/steel',
		  M: 'quark:pipe'

		}
	  )



	//======================================================== placeholder endgame

	event.remove({output:"thermal:machine_frame"})
	event.custom(
		{
			type: "create:mechanical_crafting",
			"pattern": [
			  "AAAAAAA",
			  "ABCHCBA",
			  "ACGEGCA",
			  "APXYXPA",
			  "ACGNGCA",
			  "ABCHCBA",
			  "AAAAAAA"
			],
			"key": {
			  "C": {
				item: "thermal:rf_coil"
			  },
			  "B": {
				item: "thermal:redstone_servo"
			  },
			  "H": {
				item: "minecraft:hopper"
			  },
			  "P": {
				item: "immersiveengineering:capacitor_hv"
			  },
			  "G": {
				item: "create:large_cogwheel"
			  },
			  "X": {
				item: "create:mechanical_arm"
			  },
			  "Y": {
				item: "minecraft:nether_star"
			  },
			  "N": {
				tag: "forge:gears/netherite"
			  },
			  "E": {
				tag: "forge:gears/enderium"
			  },
			  "A": {
				tag: "forge:plates/tin"
			  }
			},
			"result": {
			  item: "thermal:machine_frame",
			  "count": 1
			},
			"acceptMirrored": true
		  }
	)
})
