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.replaceInput({mod:'ars_nouveau', not:{type:"minecraft:stonecutting"}}, 'ars_nouveau:sourcestone','kubejs:source_alloy_ingot')
	
	event.replaceInput({mod:'crafting_on_a_stick'}, 'minecraft:stick','kubejs:zinc_tool_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: {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}
		]
	})
	 
	/// ======================================================================= Tier 0 Machines ========================================================================
	
	event.shaped("kubejs:arcanum_pylon",
		[
			"GAG",
			"GAG",
			"ATA"
		],
		{
			G:"naturesaura:gold_leaf",
			A:"wizards_reborn:arcanum",
			T:"naturesaura:wood_stand"
		}
	)

	event.shaped("wizards_reborn:arcane_pedestal",
		[
			"SPS",
			" T ",
			"SPS"
		],
		{
			S:"wizards_reborn:arcane_wood_slab",
			P:"wizards_reborn:arcane_wood_planks",
			T:"naturesaura:wood_stand"
		}
	).id("wizards_reborn:shaped/arcane_pedestal")

	event.shaped("wizards_reborn:innocent_pedestal",
		[
			"SPS",
			" T ",
			"SPS"
		],
		{
			S:"wizards_reborn:innocent_wood_slab",
			P:"wizards_reborn:innocent_wood_planks",
			T:"naturesaura:wood_stand"
		}
	).id("wizards_reborn:shaped/innocent_pedestal")

	event.shaped("wizards_reborn:cork_bamboo_pedestal",
		[
			"SPS",
			" T ",
			"SPS"
		],
		{
			S:"wizards_reborn:cork_bamboo_slab",
			P:"wizards_reborn:cork_bamboo_planks",
			T:"naturesaura:wood_stand"
		}
	).id("wizards_reborn:shaped/cork_bamboo_pedestal")
	
	event.shaped("wizards_reborn:wissen_altar",
		[
			"GAG",
			"SPS",
			"GAG"
		],
		{
			G: "naturesaura:gold_powder",
			S: "wizards_reborn:arcane_wood_slab",
			P: "wizards_reborn:arcane_pedestal",
			A: "wizards_reborn:arcanum"
		}
	).id("wizards_reborn:shaped/wissen_altar")

	event.shaped("wizards_reborn:wissen_translator",
		[
			" G ",
			"DPD",
			"SPS"
		],
		{
			G: "wizards_reborn:arcanum",
			D: "naturesaura:gold_powder",
			P: "wizards_reborn:arcane_wood_planks",
			S: "wizards_reborn:arcane_wood_slab"
		}
	).id("wizards_reborn:shaped/wissen_translator")
	
	/*event.shaped("minecraft:chest",
		[
			"BLB",
			"LPL",
			"BLB"
		],
		{
			B: "#immersive_weathering:bark",
			L: "#minecraft:logs",
			P: "twigs:pebble"
		}
	).id("minecraft:chest")

	

	event.shaped("minecraft:chest",
		[
			"BLB",
			"LPL",
			"BLB"
		],
		{
			B: "#immersive_weathering:bark",
			L: "#minecraft:logs",
			P: "flint"
		}
	).id("minecraft:chest2")*/

	event.recipes.farmersdelight.cutting(
		"ender_pearl",
		"#forge:tools/knives",
		["2x forbidden_arcanus:ender_pearl_fragment",
		Item.of("forbidden_arcanus:ender_pearl_fragment").withChance(0.25)]).id("forbidden_arcanus:ender_pearl_fragment")

	event.shaped("minecraft:crafting_table",
		[
			"PP",
			"XX"
		],
		{
			P: "twigs:pebble",
			X: "#minecraft:planks"
		}
	).id("minecraft:crafting_table")

	event.remove({output:'minecraft:crafting_table'})
	
	event.shaped("supplementaries:bellows",["SSS","ABA","SSS"],{S:"#minecraft:wooden_slabs",A:"quark:bottled_cloud",B:"bundle"}).id("supplementaries:bellows")
	
	event.shaped("minecraft:beehive",
		[
			"SSS",
			"XXX",
			"SSS"
		],
		{
			S: "kubejs:polished_planks",
			X: "honeycomb"
		}
	).id("minecraft:beehive")

	event.custom({
		type: "lychee:item_inside",
		item_in: [
			{item: "forbidden_arcanus:ender_pearl_fragment"},
			{tag: "forge:insect"},
			{tag: "forge:storage_blocks/beetroot"},
			{tag: "forge:storage_blocks/beetroot"}],
		block_in: "minecraft:water",
		post: [
			{type: "place", block: "alexsmobs:capsid"},
		]
	})
	
	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": "lychee:block_interacting",
		"comment": "one of the items needs to be in the offhand",
		"post": [
		  {
			"type": "place",
			"block": "naturesaura:wood_stand"
		  },
		  {
			"type": "damage_item",
			"damage": 1,
			"target": "/item_in/0"
		  },
		  {
			"type": "execute",
			"command": "playsound sawmill:ui.sawmill.take_result neutral @p",
			"hide": true
		  },
		  {
			"type": "execute",
			"command": 'particle irons_spellbooks:wisp ~ ~ ~ 0.3 0.3 0.3 0.1 50 force',
			"hide": true
		  },
		  {
			"type": "execute",
			"command": "advancement grant @p only naturesaura:wood_stand",
			"hide": true
		  },
		  {
			"type": "execute",
			"command": "ftbquests change_progress @p complete 5A3EA25913807A1A",
			"hide": true
		  }
		],
		"item_in": [
		  {
			"tag": "forge:tools/knives"
		  },
		  {
			"item": "naturesaura:gold_leaf"
		  }
		],
		"block_in": {
		"tag": "forge:stripped_logs"
		}
	  })
	

	event.remove({output:'immersiveengineering:cokebrick'})
	event.custom({
		  type: "lychee:item_exploding",
		  post: [
			{type: "drop_item", item: "naturesaura:gold_fiber", "count": 4}
		  ],
		  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",},
			{tag: "forge:flowers/golden",}
			]	
	})

	event.custom({
		type: "naturesaura:tree_ritual",
		ingredients: [
			{item: "minecraft:ink_sac"},
			{item: "minecraft:ink_sac"},
			{item: "minecraft:ink_sac"},
			{item: "minecraft:ink_sac"},
			{item: "create:wheat_flour"},
			{item: "create:wheat_flour"},
			{item: "create:wheat_flour"},
			{item: "create:wheat_flour"}
		],
		"sapling": {item: "minecraft:spruce_sapling"},
		"output": {item: "kubejs:brick_glue","count": 1},
		"time": 200
	})

	event.shaped("3x immersiveengineering:cokebrick",
	[
		"CSC",
		"GBG",
		"CSC"

	],
	{
		C: "sand",
		G: "gravel",
		S: "clay",
		B: "kubejs:brick_glue"
	}).damageIngredient("kubejs:brick_glue",3)
	
	
	/// ======================================================================= Tier 0 Components ========================================================================
	
	event.shapeless("aether:cold_aercloud","9x quark:bottled_cloud")
	
	event.shaped("48x supplementaries:cannonball",
		[
			" C ",
			"CCC",
			" C "
		],
		{
			C: "quark:sturdy_stone"
		}
	).id("supplementaries:cannonball_2")

	event.shaped("wizards_reborn:totem_base",
		[
			" P ",
			" P ",
			"PWP"
		],
		{
			P: "wizards_reborn:arcane_wood_planks",
			W: "naturesaura:wood_stand"
		}
	)
	event.remove({id:"immersive_weathering:paper_from_birch_bark"})
	event.shaped("paper",
		[
			"BBB"
		],
		{
			B: "#immersive_weathering:bark"
		}
	).id("farmersdelight:paper_from_tree_bark")

	event.custom({
	"type": "lychee:block_interacting",
	"post": [
		{
		"type": "drop_item",
		"item": "wizards_reborn:white_arcane_lumos",
		"count": 16
		},
		{
			"type": "place",
			"block": "air"
		},
		{
		"type": "execute",
		"command": "playsound wizards_reborn:arcanum_dust_transmutation neutral @p",
		"hide": true
		}
	],
	"item_in": {
		"item": "wizards_reborn:arcanum_dust"
	},
	"block_in": "coal_block"
	}
	).id("wizards_reborn:wissen_crystallizer/white_arcane_lumos")

	event.custom({
		"type": "lychee:lightning_channeling",
		"post": [
			{
			"type": "drop_item",
			"item": "wizards_reborn:cosmic_arcane_lumos",
			"count": 2
			},
			{
			"type": "execute",
			"command": "playsound wizards_reborn:arcanum_dust_transmutation neutral @p",
			"hide": true
			}
		],
		"item_in": [
			{
			"item": "wizards_reborn:white_arcane_lumos"
			},
			{
			"item": "minecraft:amethyst_shard"
			},
			{
			"item": "minecraft:lapis_lazuli"
			}
		]
	}).id("wizards_reborn:wissen_crystallizer/cosmic_arcane_lumos")

	event.custom({
		"type": "lychee:lightning_channeling",
		"post": [
			{
			"type": "drop_item",
			"item": "wizards_reborn:rainbow_arcane_lumos",
			"count": 3
			},
			{
			"type": "execute",
			"command": "playsound wizards_reborn:arcanum_dust_transmutation neutral @p",
			"hide": true
			}
		],
		"item_in": [
			{
			"item": "wizards_reborn:red_arcane_lumos"
			},
			{
			"item": "wizards_reborn:green_arcane_lumos"
			},
			{
			"item": "wizards_reborn:blue_arcane_lumos"
			}
		]
	}).id("wizards_reborn:wissen_crystallizer/rainbow_arcane_lumos")
	
	event.shaped("kubejs:arcane_leather",
		[
			" F ",
			"FLF",
			" F "
		],
		{
			F:"irons_spellbooks:arcane_essence",
			L:"leather"
		}
	)

	event.shaped("kubejs:primitive_handle",
		[
			" F ",
			"FSF",
			" F "
		],
		{
			F:"flint",
			S:"#c:rods/wooden"
		}
	)
	event.recipes.create.milling("2x forbidden_arcanus:spawner_scrap","kubejs:broken_spawner")
	event.recipes.naturesaura.tree_ritual("2x naturesaura:ancient_sapling",["#forge:storage_blocks/redstone","#minecraft:saplings","wizards_reborn:arcanum","wizards_reborn:arcanum","wizards_reborn:arcanum","wizards_reborn:arcanum","wizards_reborn:arcanum","wizards_reborn:arcanum"],"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","wizards_reborn:arcanum","wizards_reborn:arcanum","wizards_reborn:arcanum","wizards_reborn:arcanum","wizards_reborn:arcanum","wizards_reborn:arcanum"],"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('stick',"twigs:twig").id("twigs:stick_from_twig")
	event.shapeless('4x twigs:pebble', ['minecraft:cobblestone'])
	
	
	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.shapeless('farmersdelight:organic_compost', 
		['immersive_weathering:mulch_block',
			'thermal:compost',
			'2x minecraft:rotten_flesh',
			'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"
			},
			{
			  type: "place",
			  block: "air"
			}
		  ],
		  item_in: [
			{
			  item: "minecraft:ice"
			}
		  ],
		  "block_in": {
			"blocks": ["create:chocolate"],
			"state": {
            "level": 0
        }
		}
	})

	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: 'minecraft:string',
		S: 'farmersdelight:straw',
	  }
	)
	event.shaped(
		Item.of('minecraft:string'), 
		[
		  'SS', 
		  'SS',
		  'SS'
		],
		{
		  S: 'immersiveengineering:hemp_fiber'
		}
	  )
	.id("immersiveengineering:crafting/string")
	
	
	
	event.custom({
	  type: "lychee:block_interacting",
	  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 =======================================================================
	
	event.shaped("kubejs:bronze_upgrade_parts",
		[
			" P ",
			"PBP",
			" P "
		],
		{
			P: "#forge:plates/bronze",
			B: "bundle"
		}
	)

	event.shaped("kubejs:steeleaf_upgrade_parts",
		[
			"PPP",
			"PBP",
			"PPP"
		],
		{
			P: "#forge:ingots/steeleaf",
			B: "bundle"
		}
	)

	event.shapeless("twilightforest:transformation_powder",["kubejs:basic_alchemical_dust","4x forbidden_arcanus:arcane_crystal_dust","bundle"])

	event.shapeless("alexsmobs:lost_tentacle",["forbidden_arcanus:tentacle","forbidden_arcanus:soul"])
	event.shaped("vintagedelight:evaporator",
		[
			"BBB",
			"LXL",
			"BCB"
		],
		{
			B: "bricks",
			L: "#minecraft:logs",
			C: "campfire",
			X: "kubejs:primitive_machine"
		}
	).id("vintagedelight:evaporator")
	
	event.remove({id:"forbidden_arcanus:smelting/arcane_crystal_dust_from_smelting"})
	event.remove({id:"forbidden_arcanus:blasting/arcane_crystal_dust_from_blasting"})
	event.remove({id:"forbidden_arcanus:clibano_combustion/arcane_crystal_dust_from_clibano_combusting"})

	event.shaped("end_stone",[" C ","CSC"," C "],{C:"vintagedelight:cheese_curds",S:"stone"})
	event.shaped("naturesaura:ancient_stick",[" P","P "],{P:"naturesaura:ancient_slab"}).id("naturesaura:ancient_stick")

	event.shapeless("craftingstation:crafting_station_slab","craftingstation:crafting_station").id("craftingstation:crafting_station_slab")
	event.shapeless("6x wizards_reborn:flower_fertilizer",["4x thermal:compost","5x wizards_reborn:petals"]).id("wizards_reborn:shapeless/flower_fertilizer")
	
	event.shaped("3x create:shaft",
		[
			"  A",
			" R ",
			"A  "
		],
		{
			R: "#forge:rods/nickel",
			A: "andesite"
		}
	)

	event.shaped("6x torch",["C","S"],{C:"#forge:coal_coke",S:"#c:rods/wooden"})
	event.custom({
		"type": "lychee:block_crushing",
		"post": [
			{"type": "place","block": "air"},
			{"type": "drop_item","item": "irons_spellbooks:blood_vial"}
		],
		"item_in": [
			{"item": "minecraft:glass_bottle"}
		],
		"landing_block": "kubejs:rotten_flesh_block"
	})
	
	event.shaped('4x immersiveengineering:fluid_pipe',
		[
			"III",
			"SSS",
			"III"
		],
		{
			I: "#forge:plates/iron",
			S: "kubejs:pipe_sealant"
		}
	).id("immersiveengineering:crafting/fluid_pipe")

	event.shaped('3x create:fluid_pipe',
		[
			"III",
			"SSS",
			"III"
		],
		{
			I: "#forge:plates/copper",
			S: "kubejs:pipe_sealant"
		}
	).id("create:crafting/kinetics/fluid_pipe")

	event.remove({id:"create:crafting/kinetics/fluid_pipe_vertical"})

	event.shapeless('kubejs:primitive_alchemical_dust',[
		"#forge:tools/mortars",
		"wizards_reborn:arcanum_dust",
		"#forge:dusts/gold",
		"kubejs:infused_emerald"]).damageIngredient("#forge:tools/mortars", 4).id("kubejs:primitive_alchemical_dust")
	
	event.shapeless('kubejs:basic_alchemical_dust',[
		"#forge:tools/mortars",
		"kubejs:primitive_alchemical_dust",
		"#forge:dusts/arcane_crystal",
		"kubejs:infused_diamond"]).damageIngredient("#forge:tools/mortars", 8).id("kubejs:basic_alchemical_dust")

	event.shapeless('kubejs:improved_alchemical_dust',[
		"#forge:tools/mortars",
		"kubejs:basic_alchemical_dust",
		"#forge:dusts/silver",
		"forbidden_arcanus:soul",
		"thermal:sapphire"]).damageIngredient("#forge:tools/mortars", 12).id("kubejs:improved_alchemical_dust")

	event.shapeless('kubejs:advanced_alchemical_dust',[
		"#forge:tools/mortars",
		"kubejs:improved_alchemical_dust",
		"forbidden_arcanus:mundabitur_dust",
		"#forge:ingots/phoenix",
		"thermal:ruby"]).damageIngredient("#forge:tools/mortars", 16).id("kubejs:advanced_alchemical_dust")

	event.custom({
			type: "lychee:lightning_channeling",
			item_in: [
				{tag: "twilightforest:fiery_vial"},
				{tag: "twilightforest:fiery_vial"},
				{tag: "twilightforest:fiery_vial"},
				{tag: "forge:ingots/arcanum_alloy"}
			],
			contextual: [
				{type: "location",predicate:{dimension: "twilightforest:twilight_forest"}},
			],
			post: [
				{
					type: "delay",
					s: 1
				},
				{
					type: "drop_item",
					item: "twilightforest:fiery_ingot",
				},
				{
					type: "execute",
					command: "playsound forbidden_arcanus:item.mundabitur_dust.use neutral @p",
					hide: "true"
				},
				{
					type: "execute",
					command: "particle deep_aether:poison_bubbles ~ ~2 ~ 0 0 0 0.1 20",
					hide: "true"
				}
			]
	})

	event.custom({
		type: "lychee:lightning_channeling",
		item_in: [
			{item: "kubejs:primitive_alchemical_dust"},
			{tag: "forge:plates/silver"},
			{tag: "forge:insect"}
		],
		contextual: [
			{type: "location",predicate:{dimension: "twilightforest:twilight_forest"}},
		],
		post: [
			{
				type: "delay",
				s: 1
			},
			{
				type: "drop_item",
				item: "twilightforest:naga_scale",
			},
			{
				type: "execute",
				command: "playsound forbidden_arcanus:item.mundabitur_dust.use neutral @p",
				hide: "true"
			},
			{
				type: "execute",
				command: "particle deep_aether:poison_bubbles ~ ~2 ~ 0 0 0 0.1 20",
				hide: "true"
			}
		]
	})

	event.custom({
		type: "lychee:lightning_channeling",
		item_in: [
			{item: "kubejs:improved_alchemical_dust"},
			{tag: "forge:ingots/fiery"},
			{item: "kubejs:life_essence"},
			{item: "kubejs:death_essence"}
		],
		contextual: [
			{type: "location",predicate:{dimension: "aether:the_aether"}},
		],
		post: [
			{
				type: "delay",
				s: 1
			},
			{
				type: "drop_item",
				item: "kubejs:phoenix_ingot",
			},
			{
				type: "execute",
				command: "playsound forbidden_arcanus:item.mundabitur_dust.use neutral @p",
				hide: "true"
			},
			{
				type: "execute",
				command: "particle irons_spellbooks:fire ~ ~ ~ 0 0 0 0.02 15",
				hide: "true"
			}
		]
	})

	event.custom({
		type: "lychee:lightning_channeling",
		item_in: [
			{item: "kubejs:basic_alchemical_dust"},
			{item: "irons_spellbooks:blood_vial"},
			{item: "kubejs:fire_infused_arcanum"}
		],
		contextual: [
			{type: "location",predicate:{dimension: "twilightforest:twilight_forest"}},
		],
		post: [
			{
				type: "delay",
				s: 1
			},
			{
				type: "drop_item",
				item: "twilightforest:fiery_blood",
			},
			{
				type: "execute",
				command: "playsound forbidden_arcanus:item.mundabitur_dust.use neutral @p",
				hide: "true"
			},
			{
				type: "execute",
				command: "particle deep_aether:poison_bubbles ~ ~2 ~ 0 0 0 0.1 20",
				hide: "true"
			}
		]
	})

	
	event.shaped('immersiveengineering:hemp_fabric',
		[
			"XYX",
			"YSY",
			"XYX"
		],
		{
			X: "immersiveengineering:hemp_fiber",
			Y: "farmersdelight:canvas",
			S: "#forge:rods/treated_wood"
		}
	).id("immersiveengineering:crafting/hemp_fabric")
	
	event.shaped('3x kubejs:pipe_sealant',
		[
			"XYX",
			"YZY",
			"XYX"
		],
		{
			X: "quark:moss_paste",
			Y: "thermal:rubber",
			Z: "string"
		}
	)

	event.shaped('kubejs:pipe_sealant',
		[
			"XYX",
			"YZY",
			"XYX"
		],
		{
			X: "quark:moss_paste",
			Y: "slime_ball",
			Z: "string"
		}
	)

	event.shaped('thermal:beekeeper_fabric',
		[
			"XSX",
			"SXS",
			"XSX"
		],
		{
			S:"string",
			X:"honeycomb"
	})

	event.shaped('thermal:diving_fabric',
		[
			"XSX",
			"SXS",
			"XSX"
		],
		{
			S:"immersiveengineering:hemp_fabric",
			X:"kubejs:pipe_sealant"
	}).id("thermal:diving_fabric")

	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",
		comment: "works 25% of times",
		item_in: [{item:"kubejs:basic_alchemical_dust"}],
		block_in: "infested_stone",
		post: [
			{type: "place", block: "air"},
			{type: "execute", command: "summon minecraft:silverfish ~ ~ ~", hide: "true"},
			{type: "if", contextual:{type: "chance", chance: 0.25}, 
			then: {type: "drop_item", item: "thermal:silver_dust", "count": 8},
			else: {type: "execute", command: "summon minecraft:silverfish ~ ~ ~", hide: "true"}}		
		]
	})

	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:ender_pearl_fragment"
			},
			{
			  item:  "diamond"
			},
			{
			  item: "redstone_block"
			}
		  ]
	})
	
	event.custom({
		type: "lychee:lightning_channeling",
		 post: [
		   {
			 type: "drop_item",
			 item: "forbidden_arcanus:arcane_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.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:'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'
	  }
	)
	
	
	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",
				hide: true
				
			}
		  ],
		  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.shaped("simplemagnets:basic_demagnetization_coil",
		[
			"RBR",
			"RMR",
			"BBB"
		],
		{
			B: "forbidden_arcanus:darkstone",
			M: "kubejs:primitive_machine",
			R: "#forge:storage_blocks/redstone"
		}
	).id("simplemagnets:basic_demagnetization_coil")

	event.shaped("simplemagnets:advanced_demagnetization_coil",
		[
			"RBR",
			"RXR",
			"BBB"
		],
		{
			B: "forbidden_arcanus:darkstone",
			X: "simplemagnets:basic_demagnetization_coil",
			R: "#forge:rods/gold"
		}
	).id("simplemagnets:advanced_demagnetization_coil")

	event.shaped("quark:redstone_randomizer",
		[
			"STS",
			"TGT",
			"SRS"
		],
		{
			S: "#forge:plates/stone",
			R: "#forge:dusts/redstone",
			T: "redstone_torch",
			G: "#forge:gems/prismarine"
		}
	).id("quark:automation/crafting/redstone_randomizer")


	event.shaped("shulker_box",
		[
			"S",
			"C",
			"S"
		],
		{
			S: "shulker_shell",
			C: "#c:chests/wooden"	
		}).id("minecraft:shulker_box")

	event.replaceInput({id:"starbunclemania:fluid_jar"},"ars_nouveau:water_essence","create:fluid_tank")

	event.shaped("create:pulse_timer",
		[
			"SRS",
			"ABA",
			"SRS"
		],
		{
			R: "create:pulse_repeater",
			S: "#forge:plates/stone",
			A: "amethyst_shard",
			B: "#forge:plates/brass"
		}
	).id("create:crafting/logistics/pulse_timer")

	event.shaped("mbd2:basic_recycler",
		[
			"PHP",
			"PXP",
			"PMP"
		],
		{
			P: "#forge:plates/wooden",
			H: "woodenhopper:wooden_hopper",
			X: "#forge:gears/nickel",
			M: "kubejs:primitive_machine",
		}
	)
	
	event.shaped("quark:crate",
		[
			"ISI",
			"SXS",
			"ISI"
		],
		{
			S: "#c:rods/wooden",
			X: "#c:barrels/wooden",
			I: "#forge:plates/iron"
		}
	)
	
	event.shaped("alexsmobs:gustmaker",
		[
			"SYS",
			"SXS",
			"SZS"
		],
		{
			S: "sandstone",
			X: "supplementaries:bellows",
			Y: "alexsmobs:guster_eye",
			Z: "kubejs:primitive_machine"
		}
	).id("alexsmobs:gustmaker")
	
	event.shaped("wizards_reborn:cooldown_sensor",
		[
			"D",
			"X",
		],
		{
			D: "supplementaries:hourglass",
			X: "wizards_reborn:redstone_sensor"
		}
	).id("wizards_reborn:arcane_workbench/cooldown_sensor")

	event.shaped("wizards_reborn:heat_sensor",
		[
			"D",
			"X",
		],
		{
			D: "campfire",
			X: "wizards_reborn:redstone_sensor"
		}
	).id("wizards_reborn:arcane_workbench/heat_sensor")

	event.shaped("wizards_reborn:experience_sensor",
		[
			"D",
			"X",
		],
		{
			D: "forbidden_arcanus:xpetrified_orb",
			X: "wizards_reborn:redstone_sensor"
		}
	).id("wizards_reborn:arcane_workbench/experience_sensor")

	event.shaped("wizards_reborn:light_sensor",
		[
			"D",
			"X",
		],
		{
			D: "daylight_detector",
			X: "wizards_reborn:redstone_sensor"
		}
	).id("wizards_reborn:arcane_workbench/light_sensor")
    
	event.shaped("wizards_reborn:fluid_sensor",
		[
			" D ",
			"DXD",
			" D "
		],
		{
			D: "wizards_reborn:fluid_pipe",
			X: "wizards_reborn:redstone_sensor"
		}
	).id("wizards_reborn:arcane_workbench/fluid_sensor")

	event.shaped("wizards_reborn:wissen_sensor",
		[
			" D ",
			"DXD",
			" D "
		],
		{
			D: "wizards_reborn:arcanum_dust",
			X: "wizards_reborn:redstone_sensor"
		}
	).id("wizards_reborn:arcane_workbench/wissen_sensor")

	event.shaped("wizards_reborn:steam_sensor",
		[
			" D ",
			"DXD",
			" D "
		],
		{
			D: "wizards_reborn:steam_pipe",
			X: "wizards_reborn:redstone_sensor"
		}
	).id("wizards_reborn:arcane_workbench/steam_sensor")

	event.shaped("2x wizards_reborn:redstone_sensor",
		[
			"NPN",
			"SCS",
			"NPN"
		],
		{
			N: "#forge:nuggets/bronze",
			S: "#forge:plates/bronze",
			C: "comparator",
			P: "wizards_reborn:arcane_wood_planks"
		}
	).id("wizards_reborn:arcane_workbench/redstone_sensor")

	event.shaped("wizards_reborn:item_sorter",
		[
			"NFN",
			"PCP",
			"NHN"
		],
		{
			N: "#forge:nuggets/bronze",
			H: "woodenhopper:wooden_hopper",
			F: "sophisticatedstorage:filter_upgrade",
			C: "wizards_reborn:redstone_sensor",
			P: "wizards_reborn:arcane_wood_planks"

		}
	).id("wizards_reborn:arcane_workbench/item_sorter")

	event.shaped("naturesaura:nature_altar",
		[
			"SNS",
			"SMS",
			"SHS"
		],
		{
			N: "twilightforest:naga_scale",
			S: "#forge:plates/stone",
			M: "kubejs:primitive_machine",
			H: "woodenhopper:wooden_hopper"
		}
	)

	event.shaped("create:content_observer",
		[
			" B ",
			"BXB",
			" Z "
		],
		{
			B: "#forge:plates/brass",
			X: "wizards_reborn:redstone_sensor",
			Z: "sophisticatedstorage:filter_upgrade"
		}
	).id("create:crafting/logistics/content_observer")

	event.shaped("create:stockpile_switch",
		[
			" B ",
			"BXB",
			" Z "
		],
		{
			B: "#forge:plates/brass",
			X: "wizards_reborn:redstone_sensor",
			Z: "create:brass_casing"
		}
	).id("create:crafting/logistics/stockpile_switch")

	event.shaped("create:smart_fluid_pipe",
		[
			" B ",
			"BXB",
			" Z "
		],
		{
			B: "#forge:plates/brass",
			X: "create:fluid_pipe",
			Z: "sophisticatedstorage:filter_upgrade"
		}
	).id("create:crafting/kinetics/smart_fluid_pipe")

	event.shaped("create:adjustable_chain_gearshift",
		[
			" S ",
			"BXB",
			" Z "
		],
		{
			B: "create:large_cogwheel",
			S: "create:cogwheel",
			X: "create:andesite_casing",
			Z: "redstone_torch"
		}
	).id("create:crafting/kinetics/adjustable_chain_gearshift")

	event.shaped("create:contraption_controls",["A","B","C"],
		{
			A:"#minecraft:buttons",
			B:"kubejs:primitive_machine",
			C:"create:andesite_casing"
		}
	).id("create:crafting/kinetics/contraption_controls")

	event.shaped("2x create:display_board",["A","B","C"],
		{
			A:"create:belt_connector",
			B:"#minecraft:signs",
			C:"create:cogwheel"
		}
	).id("create:crafting/kinetics/display_board")

	event.shaped("create:sequenced_gearshift",["A","B","C"],
		{
			A:"create:cogwheel",
			B:"create:brass_casing",
			C:"clock"
		}
	).id("create:crafting/kinetics/sequenced_gearshift")

	event.shaped("2x create:mechanical_pump",["A","B","C"],
		{
			A: "supplementaries:faucet",
			B: "create:fluid_pipe",
			C: "create:cogwheel"
		}
	).id("create:crafting/kinetics/mechanical_pump")

	event.shaped("wizards_reborn:fluid_extractor",["A","B","C"],
		{
			A: "supplementaries:faucet",
			B: "wizards_reborn:fluid_pipe",
			C: "redstone_torch"
		}
	).id("wizards_reborn:shapeless/fluid_extractor")

	event.shaped("immersiveengineering:fluid_pump",["A","B","C"],
		{
			A: "supplementaries:faucet",
			B: "immersiveengineering:fluid_pipe",
			C: "redstone_torch"
		}
	).id("immersiveengineering:crafting/fluid_pump")

	event.shaped("thermal:servo_attachment",
		[
			" C ",
			"PFP",
			" A "
		],
		{
			A: "supplementaries:faucet",
			F: "thermal:fluid_duct",
			P: "#forge:plates/tin",
			C: "redstone_torch"
		}
	).id("thermal:servo_attachment_2")

	event.shapeless("wizards_reborn:fluid_pipe",["immersiveengineering:fluid_pipe","wizards_reborn:wisestone"]).id("wizards_reborn:arcane_workbench/fluid_pipe")

	event.shaped("3x thermal:fluid_duct",
		[
			"BBB",
			"SSS",
			"BBB"
		],
		{
			B: "#forge:plates/bronze",
			S: "kubejs:pipe_sealant"
		}
	).id("thermal:fluid_duct_4")

	event.shapeless("thermal:fluid_duct_windowed",["thermal:fluid_duct","#forge:glass"]).id("thermal:fluid_duct_windowed_4")

	event.shaped("2x naturesaura:field_creator",
		[
			"GAG",
			"GMG",
			"GTG"
		],
		{
			G: "#forge:glass",
			M: "kubejs:basic_magic_machine",
			T: "naturesaura:token_anger",
			A: "#forge:storage_blocks/arcanum"
		}
	).id("naturesaura:field_creator")
	
	event.shaped("naturesaura:item_distributor",
		[
			"CCC",
			"HMH",
			"CCC"
		],
		{
			C: "cobblestone",
			H: "woodenhopper:wooden_hopper",
			M: "kubejs:primitive_machine"
		}
	).id("naturesaura:item_distributor")

	event.shaped("naturesaura:pickup_stopper",
		[
			"CSC",
			"CMC",
			"CSC"
		],
		{
			C: "cobblestone",
			S: "slime_ball",
			M: "kubejs:primitive_machine"
		}
	).id("naturesaura:pickup_stopper")

	event.shaped("naturesaura:oak_generator",
		[
			"LEL",
			"AMA",
			"LTL"
		],
		{
			L: "minecraft:oak_log",
			A: "naturesaura:ancient_sapling",
			M: "kubejs:primitive_machine",
			E: "#c:gems/emerald",
			T: "naturesaura:token_fear"
		}
	).id("naturesaura:oak_generator")

	event.shaped("create:andesite_tunnel",
		[
			"AAA",
			"ACA"
		],
		{
			A: "andesite",
			C: 'immersiveengineering:strip_curtain'	
		}
	).id("create:crafting/logistics/andesite_tunnel")

	event.shaped("create:brass_tunnel",
		[
			"BFB",
			"BXB"
		],
		{
			B: "#forge:ingots/brass",
			F: "sophisticatedstorage:filter_upgrade",
			X: "create:andesite_tunnel"
		}
	).id("create:crafting/logistics/brass_tunnel")

	event.shaped("create:brass_funnel",
		[
			"BFB",
			"BXB"
		],
		{
			B: "#forge:ingots/brass",
			F: "item_sorter",
			X: "create:andesite_funnel"
		}
	).id("create:crafting/logistics/brass_funnel")

	event.shaped("create:smart_chute",
		[
			"BFB",
			"BXB"
		],
		{
			B: "#forge:ingots/brass",
			F: "wizards_reborn:item_sorter",
			X: "create:chute"
		}
	).id("create:crafting/kinetics/smart_chute")

	event.shaped("thermal:fluid_cell",
		[
			"RTR",
			"TCT",
			"RTR"
		],
		{
			R: "thermal:rubber",
			T: "create:fluid_tank",
			C: "thermal:fluid_cell_frame"
		}
	).id("thermal:fluid_cell")

	event.shaped("naturesaura:placer",
		[
			"SES",
			"GDG",
			"SWS"
		],
		{
			S: "cobblestone",
			G: "kubejs:stone_gear",
			E: "#forge:gems/emerald",
			W: "woodenhopper:wooden_hopper",
			D: "dispenser"
		}
	).id("naturesaura:placer")

	event.shaped("thermal:item_buffer",
		[
			"TZT",
			"LML",
			"TXT"
		],
		{
			T: "#forge:plates/tin",
			L: "#forge:plates/lead",
			M: "kubejs:primitive_machine",
			Z: "create:attribute_filter",
			X: "woodenhopper:wooden_hopper"
		}
	).id("thermal:item_buffer")

	event.shaped("thermal:device_water_gen",
		[
			"LZL",
			"CMC",
			"LXL"
		],
		{
			C: "#forge:gears/copper",
			L: "#forge:plates/lead",
			M: "kubejs:primitive_machine",
			Z: "immersiveengineering:fluid_pipe",
			X: "immersiveengineering:fluid_pump"
		}
	).id("thermal:device_water_gen")

	event.shaped("thermal:device_xp_condenser",
		[
			"LZL",
			"CMC",
			"LXL"
		],
		{
			C: "#forge:gears/infused_iron",
			L: "#forge:plates/lead",
			M: "kubejs:basic_magic_machine",
			Z: "sculk_catalyst",
			X: "thermal:xp_crystal"
		}
	).id("thermal:device_xp_condenser")

	event.shaped("kubejs:sacrificial_altar",
		[
			"ZDZ",
			"XMX",
			"ZDZ"
		],
		{
			Z: "#forge:plates/zinc",
			M: "kubejs:primitive_machine",
			X: "irons_spellbooks:blood_vial",
			D: "kubejs:sturdy_deepslate"
		}
	)
	
	event.shaped("create:pulse_repeater",
		[
			"SXS",
			"BYB",
			"SZS"
		],
		{	
			S: "#forge:plates/stone",
			B: "#forge:plates/brass",
			X: "repeater",
			Z: "comparator",
			Y: "supplementaries:hourglass"
		}
	).id("create:crafting/logistics/pulse_repeater")

	event.shaped("create:pulse_extender",
		[
			"SRS",
			"BRB",
			"SRS"
		],
		{
			S: "#forge:plates/stone",
			B: "#forge:plates/brass",
			R: "repeater"
		}
	).id("create:crafting/logistics/pulse_extender")

	event.shaped("repeater",
		[
			"STS",
			"SRS",
			"STS"
		],
		{
			S: "#forge:plates/stone",
			T: "redstone_torch",
			R: "redstone"
		}
	).id("minecraft:repeater")

	event.remove({id:"quark:tweaks/crafting/utility/misc/repeater"})

	event.shaped("comparator",
		[
			"STS",
			"TDT",
			"SQS"
		],
		{
			S: "#forge:plates/stone",
			T: "redstone_torch",
			D: "redstone",
			Q: "#forge:storage_blocks/quartz"
		}
	).id("minecraft:comparator")

	event.shaped("2x comparator",
		[
			"STS",
			"TDT",
			"SQS"
		],
		{
			S: "#forge:plates/stone",
			T: "redstone_torch",
			D: "repeater",
			Q: "#forge:storage_blocks/sapphire"
		}
	)

	event.shaped("create:powered_latch",
		[
			"SLS",
			"SRS",
			"SPS"
		],
		{
			S: "#forge:plates/stone",
			L: "lever",
			R: "repeater",
			P: "piston"
		}
	).id("create:crafting/logistics/powered_latch")

	event.shapeless("create:powered_toggle_latch",["create:powered_latch","redstone_torch"]).id("create:crafting/logistics/powered_toggle_latch")

	event.shaped("create:placard",
		[
			" P ",
			"PFP",
			" P "
		],
		{
			P: "#forge:plates/copper",
			F: "item_frame"
		}
	)

	event.shaped("3x create:placard",
		[
			" P ",
			"PFP",
			" P "
		],
		{
			P: "#forge:plates/brass",
			F: "item_frame"
		}
	).id("create:crafting/kinetics/placard")

	event.shaped("thermal:device_tree_extractor",
		[
			"GFG",
			"WMW",
			"SBS"
		],
		{
			G: "#forge:gears/tin",
			F: "supplementaries:faucet",
			W: "#forge:plates/wooden",
			M: "kubejs:primitive_machine",
			S: "#forge:plates/tin",
			B: "bucket"
		}
	).id("thermal:device_tree_extractor")

	event.shaped("thermal:device_nullifier",
		[
			"LLL",
			"SMS",
			"SCS"
		],
		{
			L: "#forge:plates/lead",
			M: "kubejs:primitive_machine",
			S: "#forge:plates/tin",
			C: "#forge:storage_blocks/cactus"
		}
	).id("thermal:device_nullifier")

	event.shaped("thermal:device_potion_diffuser",
		[
			"LGL",
			"WMW",
			"SJS"
		],
		{
			L: "#forge:plates/lead",
			G: "#forge:gears/lead",
			W: "glass_bottle",
			M: "kubejs:primitive_machine",
			S: "#forge:plates/tin",
			J: "supplementaries:jar"
		}
	).id("thermal:device_potion_diffuser")

	event.shaped("create:chute",[" I ","ICI"," I "],{I:"#forge:plates/iron",C:"quark:chute"}).id("create:crafting/kinetics/chute")

	event.shaped("create:redstone_contact",["CIC","ROR","CCC"],{C:"quark:sturdy_stone",R:"#forge:storage_blocks/redstone",O:"observer",I:"#forge:plates/iron"}).id("create:crafting/logistics/redstone_contact")

	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("immersiveengineering:sorter",
		[
			"BCB",
			"HFH",
			"BMB"
		],
		{
			C: "comparator",
			H: "woodenhopper:wooden_hopper",
			M: "kubejs:primitive_machine",
			B: "kubejs:sturdy_basalt",
			F: "sophisticatedstorage:filter_upgrade"
		}
	).id("immersiveengineering:crafting/sorter")

	event.shaped("immersiveengineering:fluid_sorter",
		[
			"BCB",
			"HFH",
			"BMB"
		],
		{
			C: "comparator",
			H: "supplementaries:faucet",
			M: "kubejs:primitive_machine",
			B: "kubejs:sturdy_basalt",
			F: "sophisticatedstorage:filter_upgrade"
		}
	).id("immersiveengineering:crafting/fluid_sorter")

	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', 
		'PSP'
	  ],
	  {
		I: '#forge:ingots/iron',
		P: "#minecraft:planks",
		S: "naturesaura:wood_stand"
	  }
	)
	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 ', 
		'DPD'
	  ],
	  {
		G: 'kubejs:stone_gear',
		P: 'kubejs:primitive_machine',
		S: 'woodenhopper:wooden_hopper',
		D: "#forge:dusts/iron"
	  }
	)
	
	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.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.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'
	  }
	)
	
	event.remove({id:"supplementaries:bed_from_feather_block"})

	event.shapeless("aether:skyroot_bed",["#minecraft:beds","#aether:skyroot_repairing"]).id("aether:skyroot_bed")
	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"},"#c: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.shaped("kubejs:zanite_upgrade_parts",
		[
			"PPP",
			"PBP",
			"PPP"
		],
		{
			P: "#forge:gems/zanite",
			B: "bundle"
		}
	)

	event.shaped("kubejs:skyjade_upgrade_parts",
		[
			"PPP",
			"PBP",
			"PPP"
		],
		{
			P: "#forge:gems/skyjade",
			B: "bundle"
		}
	)

	event.shaped("kubejs:aura_generator_block",
		[
			"IGI",
			"EME",
			"IEI"
		],
		{
			I: "#forge:plates/infused_iron",
			G: '#forge:gears/infused_iron',
			M: "kubejs:magical_generator_block",
			E: "kubejs:nature_essence"
		}
	).id("kubejs:aura_generator_block")



	event.recipes.ars_nouveau.enchanting_apparatus(
		["kubejs:zinc_tool_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: "wither_rose" },
			{ tag: "forge:gems/cinnabar" }
		]
	}).id("forbidden_arcanus:mundabitur_dust")

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

	event.custom({
		type: "lychee:block_crushing",
		post: [
			{ type: "drop_item", item: "forbidden_arcanus:mundabitur_dust", count: 4 },
			{ type: "execute", command: "playsound minecraft:entity_blaze.hurt neutral @p", hide: true }
		],
		item_in: [
			{ item: "forbidden_arcanus:arcane_crystal_dust" },
			{ item: "wither_rose" },
			{ item: "thermal:ruby" }
		]
	})

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

	event.recipes.ars_nouveau.enchanting_apparatus(
	[
		"#forge:plates/steel",
		"#forge:plates/steel",
		"#forge:plates/steel",
		"#forge:plates/steel"],
		"bundle","kubejs:steel_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.shaped(
	  Item.of('kubejs:magic_machine'), 
	  [
		'CAC',
		'AXA',
		'CAC'
	  ],
	  {
		X: "kubejs:basic_magic_machine",
		C: '#forge:plates/infused_iron',
		A: "kubejs:sturdy_deepslate"
	  }
	)

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

	event.shaped(
		Item.of('create:attribute_filter'), 
		[
		  'CCC',
		  'CXC',
		  'CCC'
		],
		{
		  X: "create:filter",
		  C: '#forge:nuggets/brass',
		}
	  ).id("create:crafting/kinetics/attribute_filter")

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

	event.shaped(
	  Item.of('6x quark:gold_bars'), 
	  [
		'CCC',
		'CCC'
	  ],
	  {
		C: '#forge:rods/gold',
	  }
	).id("quark:building/crafting/gold_bars")

	
	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.custom({
		type: "ars_nouveau:imbuement",
		count: 1,
		input: {item: "farmersdelight:canvas"},
		output: 'enigmaticlegacy:thicc_scroll',
		pedestalItems: [],
		source: 1000
	})
	
	event.custom({
		type: "lychee:item_inside",
		contextual:[
			{type: "location",predicate: {position:{ y: {min: 190, max: 320}}}}
		  ],
		  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: "kubejs:air_infused_arcanum"},
			{item:  "ars_nouveau:source_gem"},
			{item: "minecraft:feather"}
		  ],
		  block_in: "minecraft:water"
	})
	
	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: "kubejs:water_infused_arcanum"},
			{item:  "ars_nouveau:source_gem"},
			{tag: "minecraft:fishes"}
		  ],
		  block_in: "minecraft:water"
	})
	
	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: "kubejs:earth_infused_arcanum"},
			{item:  "ars_nouveau:source_gem"},
			{item: "minecraft:bone"}
		  ]
	})
	
	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: "kubejs:fire_infused_arcanum"},
			{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:source_alloy_ingot',
		  G: "#forge:rods/gold"

		}
	)

	event.replaceInput({id:'naturescompass:natures_compass'},'#minecraft:saplings','kubejs:nature_essence')
	/// ======================================== Tier 2 Machines ================================================================
	
	event.shaped("ars_nouveau:ritual_brazier",
		[
			"PPP",
			"RMR",
			"RTR"
		],
		{
			P: "#forge:plates/source_alloy",
			R: "#forge:rods/gold",
			M: "kubejs:basic_magic_machine",
			T: "ars_nouveau:arcane_pedestal"
		}
	).id("ars_nouveau:ritual_brazier")

	event.shaped("mbd2:elemental_recycler",
		[
			"PPP",
			"PXP",
			"RMR"
		],
		{
			P: "#forge:plates/arcanum_alloy",
			X: "mbd2:basic_recycler",
			M: "kubejs:basic_magic_machine",
			R: "kubejs:carbon_infused_sturdy_handle"
		}
	)

	event.shaped("naturesaura:mover_cart",
		[
			" B ",
			"BIB",
			" C "
		],
		{
			B: "naturesaura:infused_brick",
			I: "naturesaura:infused_iron_block",
			C: "minecart"
		}
	).id("naturesaura:mover_cart")

	event.shaped("naturesaura:blast_furnace_booster",
		[
			"FBF",
			"AXT",
			"SGS"
		],
		{
			F: "ars_nouveau:fire_essence",
			B: "blast_furnace",
			A: "naturesaura:token_anger",
			X: "kubejs:basic_magic_machine",
			T: "naturesaura:token_sorrow",
			S: "#forge:plates/stone",
			G: "#forge:gears/infused_iron"
		}
	).id("naturesaura:blast_furnace_booster")

	event.shaped("naturesaura:firework_generator",
		[
			"BTB",
			"PMP",
			"BTB"
		],
		{
			B: "naturesaura:infused_stone",
			T: "naturesaura:token_terror",
			M: "kubejs:aura_generator_block",
			P: "firework_rocket"
		}
	).id("naturesaura:firework_generator")

	event.shaped("naturesaura:projectile_generator",
		[
			"BTB",
			"PMP",
			"BTB"
		],
		{
			B: "naturesaura:infused_stone",
			T: "naturesaura:token_anger",
			M: "kubejs:aura_generator_block",
			P: "archers_paradox:lightning_arrow"
		}
	).id("naturesaura:projectile_generator")

	event.shaped("naturesaura:chorus_generator",
		[
			"BTB",
			"PMP",
			"BTB"
		],
		{
			B: "end_stone",
			T: "naturesaura:token_rage",
			M: "kubejs:aura_generator_block",
			P: "chorus_flower"
		}
	).id("naturesaura:chorus_generator")

	event.shaped("naturesaura:potion_generator",
		[
			"BTB",
			"PMP",
			"BTB"
		],
		{
			B: "nether_bricks",
			T: "naturesaura:token_fear",
			M: "kubejs:aura_generator_block",
			P: "blaze_rod"
		}
	).id("naturesaura:potion_generator")

	event.shaped("naturesaura:animal_generator",
		[
			"BTB",
			"PMP",
			"BTB"
		],
		{
			B: "nether_bricks",
			T: "naturesaura:token_sorrow",
			M: "kubejs:aura_generator_block",
			P: "forbidden_arcanus:soul"
		}
	).id("naturesaura:animal_generator")

	event.shaped("naturesaura:slime_split_generator",
		[
			"BPB",
			"BMB",
			"BTB"
		],
		{
			B: "slime_block",
			M: "kubejs:aura_generator_block",
			P: "naturesaura:token_joy",
			T: "naturesaura:token_sorrow"
		}
	).id("naturesaura:slime_split_generator")

	event.shaped("naturesaura:flower_generator",
		[
			"BTB",
			"PMP",
			"BTB"
		],
		{
			B: "wizards_reborn:bunch_of_things",
			P: "peony",
			M: "kubejs:aura_generator_block",
			T: "naturesaura:token_joy"
		}
	).id("naturesaura:flower_generator")

	event.shaped("naturesaura:moss_generator",
		[
			"BTB",
			"PMP",
			"BTB"
		],
		{
			B: "mossy_cobblestone",
			P: "moss_block",
			M: "kubejs:aura_generator_block",
			T: "naturesaura:token_joy"
		}
	).id("naturesaura:moss_generator")

	event.shaped("naturesaura:furnace_heater",
		[
			"FTF",
			"PMP",
			"SSS"
		],
		{
			S: "naturesaura:infused_stone",
			P: "#forge:plates/tainted_gold",
			M: "kubejs:basic_magic_machine",
			F: "ars_nouveau:fire_essence",
			T: "naturesaura:token_fear"
		}
	)

	event.shaped("naturesaura:crushing_catalyst",
		[
			"PTP",
			"GMG",
			"PWP"
		],
		{
			P:"#forge:plates/stone",
			W:"woodenhopper:wooden_hopper",
			M:"kubejs:primitive_machine",
			G:"#forge:gears/stone",
			T:"naturesaura:token_anger"

		}
	)

	event.shaped("ars_nouveau:relay",
		[
			"GPG",
			"RTR",
			"GPG"
		],
		{
			P: "#forge:plates/source_alloy",
			G: "#forge:plates/gold",
			R: "#forge:rods/gold",
			T: "wizards_reborn:wissen_translator"
		}
	).id("ars_nouveau:relay")


	event.shaped('ars_nouveau:basic_spell_turret',
			[
				"RDR",
				"GMG",
				"RBR"
			],
			{
				R: "#forge:rods/gold",
				D: "dispenser",
				G: "#forge:gears/gold",
				M: "kubejs:basic_magic_machine",
				B: "#forge:storage_blocks/source"
			}
		)
	
	event.remove({id:'ars_nouveau:rotating_turret_to_basic_spell_turret'})
		

	event.shaped('ars_nouveau:rotating_spell_turret',
			[
				" G ",
				"GMG",
				" G "
			],
			{
				G: "#forge:gears/stone",
				M: "ars_nouveau:basic_spell_turret"
			}
		)
		

	event.shaped('ars_nouveau:spell_turret',
			[
				"XXX",
				"GMG",
				"XXX"
			],
			{
				G: "#forge:gears/tainted_gold",
				M: "ars_nouveau:basic_spell_turret",
				X: 'forbidden_arcanus:xpetrified_orb'
			}
		)
		
	

	event.shaped('ars_nouveau:timer_spell_turret',
			[
				"CRC",
				"CMC",
				"CHC"
			],
			{
				C: "supplementaries:cog_block",
				M: "ars_nouveau:basic_spell_turret",
				H: 'supplementaries:hourglass',
				R: "create:pulse_repeater"
			}
		)

	event.shaped("thermal:filter_attachment",
		[ 
			"ISI",
			"IFI"
		],
		{
			I: "#forge:plates/iron",
			S: "#forge:gems/sapphire",
			F: "create:filter"
		}
	).id("thermal:filter_attachment_2")

	event.shaped("thermal:device_collector",
		[
			"LYL",
			"OXO",
			"THT"
		],
		{
			L: "#forge:plates/lead",
			Y: "#forge:gears/tin",
			O: "#forge:gears/lead",
			X: "naturesaura:hopper_upgrade",
			H: "hopper",
			T: "#forge:plates/tin"

		}
	).id("thermal:device_collector")

	function SourceGeneratorsRecipe(type,ingredient)
	{
		event.shaped("ars_nouveau:"+type+"_sourcelink",
			[
				"GXG",
				"GMG",
				"GXG"
			],
			{
				G: "#forge:rods/gold",
				M: "kubejs:magical_generator_block",
				X: ingredient
			}
		).id("ars_nouveau:"+type+"_sourcelink")
	}

	SourceGeneratorsRecipe("volcanic","ars_nouveau:fire_essence")
	SourceGeneratorsRecipe("agronomic","kubejs:nature_essence")
	SourceGeneratorsRecipe("vitalic","kubejs:death_essence")
	SourceGeneratorsRecipe("mycelial","quark:glow_shroom")
	SourceGeneratorsRecipe("alchemical",'immersive_weathering:golden_moss_clump')
	
	event.recipes.naturesaura.tree_ritual("kubejs:pressing_catalyst",[
		"#forge:gears/source_alloy",
		"#forge:gears/arcanum_alloy",
		"anvil",
		"anvil",
		"immersiveengineering:hammer",
		"immersiveengineering:hammer",
		"anvil",
		"anvil"],
		"wizards_reborn:arcane_wood_sapling")
	
	
	event.shaped("mbd2:elemental_evaporator",
		[
			"CXC",
			"GFG",
			"CMC"
		],
		{
			F: "blast_furnace",
			X: "#forge:glass",
			M: "kubejs:basic_magic_machine",
			C: "kubejs:carbon_infused_sturdy_handle",
			G: "#forge:plates/arcanum_alloy"
		}
	)

	/*
	event.shaped(
		Item.of('elementalcraft:extractor'), 
		[
		  'CAC',
		  'AMA',
		  'CXC'
		],
		{
		  M: "kubejs:basic_magic_machine",
		  X: "immersiveengineering:fluid_pump",
		  C: 'kubejs:carbon_infused_sturdy_handle',
		  A: '#forge:plates/arcanum_alloy',
		}
	).id("elementalcraft:extractor")
	*/

	event.shaped(
		Item.of('mbd2:elemental_infuser'), 
		[
		  'CIC',
		  'IMI',
		  'CIC'
		],
		{
		  M: "kubejs:basic_magic_machine",
		  I: '#forge:plates/arcanum_alloy',
		  C: 'kubejs:carbon_infused_sturdy_handle'
		}
	)
	

	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:source_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('irons_spellbooks:pedestal')
	event.shaped(
	  Item.of('irons_spellbooks:pedestal'), 
	  [
		'H',
		'F',
		'H'
	  ],
	  {
		
		F: "create:depot",
		H: 'minecraft:andesite'
	  }
	)

	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"
	  }
	)
	
	
	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: 'wizards_reborn:alchemy_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:'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:"naturesaura:nature_altar"})
	

	event.remove({output:'kubejs:zinc_tool_handle'})
	event.custom({
		type: "ars_nouveau:enchanting_apparatus",
		"keepNbtOfReagent": false,
		"output": {item: "kubejs:zinc_tool_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
	})
	
	///========================================= Tier 3 Components ================================================================

	event.shaped(
		Item.of('wither_skeleton_skull'), 
		[
		  'BBB',
		  'BFB', 
		  'BBB' 
		],
		{
		  F: "minecraft:skeleton_skull",
		  B: "wither_rose",
		}
	  )
	
	event.shaped(
		Item.of('enigmaticlegacy:infinimeal'), 
		[
		  'BXB',
		  'XFX', 
		  'BXB' 
		],
		{
		  F: "enigmaticlegacy:earth_heart",
		  B: "thermal:compost",
		  X: "kubejs:nature_essence"
		}
	).id("enigmaticlegacy:infinimeal")
	

	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"},
				  {tag: "forge:raw_fishes/salmon" }
				],
				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: "farmersdelight:salmon_roll"}
			],
			results: [
			  {item: "kubejs:unstable_ivy_quartz"}
			]
		  },
		  {
			type: "create:deploying",
			ingredients: [
			  {item: "kubejs:unstable_ivy_quartz"},
			  {item: "farmersdelight:grilled_salmon"}
			],
			results: [
			  {item: "kubejs:unstable_ivy_quartz"}
			]
		  },
		],
		"transitionalItem": {item: "kubejs:unstable_ivy_quartz"}
	})

	
	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.shaped(
	  Item.of('4x kubejs:natural_clay_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:'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',
		'GXG', 
		'AZA' 
	  ],
	  {
		X: 'minecraft:dispenser',
		Z: 'vintageimprovements:redstone_module',
		A: 'create:andesite_casing',
		Y: 'minecraft:hopper',
		G: '#forge:gears/andesite'
	  }
	)


	
	
	///======================================== Tier 3 Machines =======================================================================
	event.shaped("naturesaura:conversion_catalyst",
		[
			"PSP",
			"GMG",
			"PTP"
		],
		{
			P:"#forge:plates/ironwood",
			S:"#forge:gears/infused_iron",
			M:"kubejs:magic_machine",
			G:"kubejs:improved_alchemical_dust",
			T:"naturesaura:token_sorrow"

		}
	)

	event.shaped("mbd2:elemental_binder",
		[
			"PIP",
			"RGR",
			"PIP"
		],
		{
			P: "#forge:plates/arcanum_alloy",
			R: "kubejs:carbon_infused_sturdy_handle",
			G: "#forge:gears/arcane_gold",
			I: "mbd2:elemental_infuser"
		}
	)

	event.shaped("kubejs:vine_generator",
			[
				"MGM",
				"SXS",
				"MZM"
			],
			{
				M: "kubejs:ivy_block",
				G: "immersive_weathering:golden_moss_clump",
				X: "kubejs:magic_machine",
				Z: "#forge:gears/tainted_gold",
				S: "shears"
			}
		)
	
	event.shaped("create:mechanical_arm",
		[
			"GRA",
			" B ",
			"CMC"
		],
		{
			G: "ars_nouveau:glyph_interact",
			R: "#forge:rods/brass",
			A: "#forge:gears/andesite",
			B: "#forge:gears/brass",
			C: "create:brass_casing",
			M: "kubejs:andesite_machine"
		}
	).id("create:crafting/kinetics/mechanical_arm")

	event.shaped("create:mechanical_piston",
		[
			"P",
			"M",
			"R"
		],
		{
			P: "piston",
			M: "kubejs:andesite_machine",
			R: "create:piston_extension_pole"
		}
	).id("create:crafting/kinetics/mechanical_piston")

	event.shaped("create:sticky_mechanical_piston",
		[
			"P",
			"M",
			"R"
		],
		{
			P: "sticky_piston",
			M: "kubejs:andesite_machine",
			R: "create:piston_extension_pole"
		}
	)

	event.shaped("create:sticker",
		[
			"CSC",
			"CMC",
			"CRC"
		],
		{
			C: "#c:cobblestones",
			M: "kubejs:primitive_machine",
			S: "slime_block",
			R: "supplementaries:cog_block"
		}
	).id("create:crafting/kinetics/sticker")

	event.shaped("create:rotation_speed_controller",
		[
			"PGP",
			"AMD",
			"PPP"
		],
		{
			P: "#forge:plates/brass",
			G: "#forge:gears/brass",
			A: "ars_nouveau:glyph_accelerate",
			D: "ars_nouveau:glyph_decelerate",
			M: "kubejs:andesite_machine"
		}
	).id("create:crafting/kinetics/rotation_speed_controller")

	event.shaped("create:andesite_funnel",
		[
			" A ",
			"ACA",
			" A "
		],
		{
			A: "andesite",
			C: "immersiveengineering:conveyor_extract"
		}
	).id("create:crafting/logistics/andesite_funnel")

	
	event.shaped("create:steam_engine",
		[
			"PFP",
			"PAP",
			"PWP"
		],
		{
			P: "#forge:plates/copper",
			A: "kubejs:andesite_machine",
			F: "ars_nouveau:fire_essence",
			W: "ars_nouveau:water_essence"
		}
	).id("create:crafting/kinetics/steam_engine")

	event.shaped("2x create:redstone_link",
		[
			"T",
			"C",
			"E"
		],
		{
			T: "redstone_torch",
			C: "create:brass_casing",
			E: "kubejs:ender_essence"
		}
	).id("create:crafting/logistics/redstone_link")

	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'), 
	  [
	    'SBS',
		'WXL',
		'IGI'
	  ],
	  {
		L: 'minecraft:lava_bucket',
		B: 'ars_nouveau:glyph_break',
		I: '#forge:plates/tin',
		X: 'kubejs:andesite_machine',
		W: 'minecraft:water_bucket',
		S: '#forge:plates/lead',
		G: '#forge:gears/tin'
	  }
	)
	
	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.shaped("create:mechanical_drill",
		[ "AXA","AYA","AZA" ],
		{ A:"create:andesite_casing",X:"thermal:drill_head",Y:"kubejs:andesite_machine",Z:"ars_nouveau:glyph_break" }).id("create:crafting/kinetics/mechanical_drill")
	
	event.shaped("create:mechanical_saw",
		[ "AXA","AYA","AZA" ],
		{ A:"create:andesite_casing",X:"thermal:saw_blade",Y:"kubejs:andesite_machine",Z:"ars_nouveau:glyph_fell" }).id("create:crafting/kinetics/mechanical_saw")
	
	event.shaped("create:mechanical_harvester",
		[ "XXX","AYA","AZA" ],
		{ A:"create:andesite_casing",X:"vintageimprovements:iron_spring",Y:"kubejs:andesite_machine",Z:"ars_nouveau:glyph_harvest" }).id("create:crafting/kinetics/mechanical_harvester")
	
	event.shaped("create:mechanical_plough",
		[ "AXA","AYA","AZA" ],
		{ A:"create:andesite_casing",X:"tombstone:grave_plate",Y:"kubejs:andesite_machine",Z:"ars_nouveau:glyph_touch" }).id("create:crafting/kinetics/mechanical_plough")
	
	event.shaped("create:encased_fan",
		[ "AXA","AYA","AZA" ],
		{ A:"create:andesite_casing",X:"create:propeller",Y:"kubejs:andesite_machine",Z:"ars_nouveau:glyph_gust" }).id("create:crafting/kinetics/encased_fan")
	
	event.shaped("create:mechanical_mixer",
		[ "AXA","AYA","AZA" ],
		{ A:"create:andesite_casing",X:"create:whisk",Y:"kubejs:andesite_machine",Z:"create:cogwheel" }).id("create:crafting/kinetics/mechanical_mixer")
	
	event.shaped("create:mechanical_roller",
		[ "AXA","AYA","AZA" ],
		{ A:"create:andesite_casing",X:"create:crushing_wheel",Y:"kubejs:andesite_machine",Z:"ars_nouveau:glyph_exchange" }).id("create:crafting/kinetics/mechanical_roller")
	
	event.shaped("create:weighted_ejector",
		[ "AXA","AYA","AZA" ],
		{ A:"create:andesite_casing",X:"create:depot",Y:"supplementaries:spring_launcher",Z:"create:cogwheel" }).id("create:crafting/kinetics/weighted_ejector")

	event.shaped("create:deployer",
		[ "AXA","AYA","AZA" ],
		{ A:"create:andesite_casing",X:"create:brass_hand",Y:"kubejs:andesite_machine",Z:"ars_nouveau:glyph_interact" }).id("create:crafting/kinetics/deployer")

	event.shaped("create:portable_storage_interface",
		[ "AXA","AYA","AXA" ],
		{ A:"create:andesite_casing",X:"create:chute",Y:"kubejs:andesite_machine",}).id("create:crafting/kinetics/portable_storage_interface")
	
	//============================================ Tier 4 Components ========================================================================================
	event.remove({id:"immersiveengineering:blastfurnace/steel_block"})

	event.shaped("thermal:redstone_servo",
		[
			"RGR",
			"PGP",
			"RGR"
		],
		{
			R: "repeater",
			P: "create:mechanical_piston",
			G: "#forge:gears/iron"
		}	
	).id("thermal:redstone_servo")

	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.shaped('immersiveengineering:drillhead_iron',
		[
			"DP ",
			"PGP",
			" PP"
		],
		{
			D: "thermal:drill_head",
			P: "#forge:plates/iron",
			G: "ars_nouveau:glyph_break"
		}
	).id("immersiveengineering:crafting/drillhead_iron")

	event.shaped("immersiveengineering:drillhead_steel",
		[
			"SSS",
			"SDS",
			"SSS"
		],
		{
			S: "#forge:plates/steel",
			D: "immersiveengineering:drillhead_iron"
		}
	).id("immersiveengineering:crafting/drillhead_steel")

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

	event.recipes.createMechanicalCrafting("vintageimprovements:grinder_belt",[
		"SSSSS",
		"SDDDS",
		"SDXDS",
		"SDDDS",
		"SSSSS"
	],{
		S: 'create:sand_paper',
		D: '#forge:plates/diamond',
		X: 'forbidden_arcanus:stellarite_piece'
	}).id("vintageimprovements:craft/grinder_belt")

	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'), 
		[
		  'IGI',
		  'RMR', 
		  'IGI' 
		],
		{
		  I: '#forge:plates/steel',
		  M: 'kubejs:andesite_machine',
		  R: 'forbidden_arcanus:rune',
		  G: '#forge:gears/steel'

		}
	  )
	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("2x kubejs:fiery_clay_blend",["8x #forge:dusts/coal_coke","4x ars_nouveau:fire_essence","4x ars_nouveau:earth_essence","2x clay_ball","8x wizards_reborn:nether_salt"]).heated()

	event.recipes.create.mixing("kubejs:wrought_iron_ingot",["2x ars_nouveau:earth_essence","2x ars_nouveau:fire_essence","4x supplementaries:ash","#forge:ingots/iron"]).heated()
	
	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.shaped("create:mechanical_crafter",
		[ "AZA","AYA","AXA" ],
		{ A:"create:brass_casing",X:"sophisticatedstorage:crafting_upgrade",Y:"kubejs:andesite_machine",Z:"#forge:gears/steel"}).id("create:crafting/kinetics/mechanical_crafter")
	
	event.shaped("vintageimprovements:belt_grinder",
		[ "AZA","AYA","AXA" ],
		{ A:"create:andesite_casing",Z:"vintageimprovements:grinder_belt",Y:"kubejs:andesite_machine",X:"#forge:gears/steel"}).id("vintageimprovements:craft/belt_grinder")
	

	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'

		}
	  )

	event.shaped("ars_creo:starbuncle_wheel",
		[
			"PSP",
			"SCS",
			"PSP"
		],
		{
			S: "#forge:plates/steel",
			P: "#forge:plates/wooden",
			C: "ars_nouveau:starbuncle_charm"
		}
	).id("ars_creo:starbuncle_wheel")

	//======================================================== Tier 5 Machines

	function dynamo(dynamo,plateUp,plateDown,middle)
	{
		event.shaped(dynamo,
			[
				" C ",
				"PMP",
				"SGS"
			],
			{
				C: "thermal:rf_coil",
				P: plateUp,
				S: plateDown,
				G: "immersiveengineering:generator",
				M: middle
			}
		).id(dynamo)
	}

	dynamo("thermal:dynamo_stirling","#forge:plates/iron","#forge:plates/steel","ars_nouveau:fire_essence")
	dynamo("thermal:dynamo_magmatic","#forge:plates/silver","#forge:plates/steel","ars_nouveau:volcanic_sourcelink")
	dynamo("thermal:dynamo_compression","#forge:plates/bronze","#forge:plates/steel","vintageimprovements:vacuum_chamber")
	dynamo("thermal:dynamo_numismatic","#forge:plates/constantan","#forge:plates/steel","thermal:gold_coin")
	dynamo("thermal:dynamo_lapidary","#forge:plates/gold","#forge:plates/steel","thermal:ruby")
	dynamo("thermal:dynamo_disenchantment","#forge:plates/lead","#forge:plates/steel","enchanted_golden_apple")
	dynamo("thermal:dynamo_gourmand","#forge:plates/tin","#forge:plates/steel","farmersdelight:cooking_pot")

	event.shaped("thermal:energy_cell_frame",
		[
			"LEL",
			"EXE",
			"LEL"
		],
		{
			E: "#forge:plates/electrum",
			L: "#forge:plates/lead",
			X: "kubejs:electricity_essence"
		}
	).id("thermal:energy_cell_frame")

	event.shaped("immersiveengineering:capacitor_lv",
		[
			"LEL",
			"SXS",
			"LEL"
		],
		{
			S: "#forge:plates/steel",
			E: "thermal:rf_coil",
			L: "#forge:plates/wooden",
			X: "thermal:energy_cell_frame"
		}
	).id("immersiveengineering:crafting/capacitor_lv")

	event.shaped("immersiveengineering:capacitor_mv",
		[
			"LEL",
			"SXS",
			"LEL"
		],
		{
			S: "immersiveengineering:capacitor_lv",
			E: "thermal:rf_coil",
			L: "#forge:gears/electrum",
			X: "thermal:sapphire"
		}
	).id("immersiveengineering:crafting/capacitor_mv")

	event.shaped("immersiveengineering:capacitor_hv",
		[
			"LEL",
			"SXS",
			"LEL"
		],
		{
			S: "immersiveengineering:capacitor_mv",
			E: "thermal:rf_coil",
			L: "#forge:gears/aluminum",
			X: "thermal:sapphire"
		}
	).id("immersiveengineering:crafting/capacitor_hv")

	event.shaped("thermal:energy_cell",
		[
			"LEL",
			"SXS",
			"LEL"
		],
		{
			S: "immersiveengineering:capacitor_hv",
			E: "thermal:rf_coil",
			L: "#forge:gears/uranium",
			X: "thermal:ruby"
		}
	).id("thermal:energy_cell")

	event.shaped("thermal:rf_coil",
		[
			" RG",
			"RER",
			"GR "
		],
		{
			R: "#forge:storage_blocks/redstone",
			E: "kubejs:electricity_essence",
			G: "#forge:gears/gold"
		}
	).id("thermal:rf_coil")

	
	
	//======================================================== 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/sky"
			  }
			},
			"result": {
			  item: "thermal:machine_frame",
			  "count": 1
			},
			"acceptMirrored": true
		  }
	)

	event.remove({output:"thermal:machine_frame"})
	event.custom(
		{
			type: "create:mechanical_crafting",
			"pattern": [
			  "AAAAAAA",
			  "ANNNNNA",
			  "ANDXDNA",
			  "ANGYGNA",
			  "ANDZDNA",
			  "ANNNNNA",
			  "AAAAAAA"
			],
			"key": {
			  "A": {
				item: "forbidden_arcanus:spawner_scrap"
			  },
			  "N": {
				tag: "forge:plates/netherite"
			  },
			  "D": {
				item: "kubejs:death_essence"
			  },
			  "G": {
				tag: "forge:gears/depth"
			  },
			  "X": {
				item: "quark:monster_box"
			  },
			  "Y": {
				item: "kubejs:steel_machine"
			  },
			  "Z": {
				item: "naturesaura:animal_spawner"
			  }
			},
			"result": {
			  item: "minecraft:spawner",
			  "count": 1
			},
			"acceptMirrored": true
		  }
	)
})
