// priority: 1

// Enable recipe logging, off by default
settings.logAddedRecipes = true
settings.logRemovedRecipes = true
// Enable skipped recipe logging, on by default
settings.logSkippedRecipes = false
	
// Listen to server recipe event
events.listen("recipes", event => { 
	
	event.recipes.immersiveengineering.arc_furnace([item.of("tetra:metal_scrap", 4)], ingredient.of("minecraft:netherite_scrap", 4), [ingredient.of("botania:pixie_dust", 1), ingredient.of(["#forge:ingots/steel", "#forge:dusts/steel"], 2), ingredient.of(["astralsorcery:nocturnal_powder"], 2)], item.of("thermal:slag", 3)).time(500).energy(2500000)
	
	event.recipes.thermal.press("tetra:forged_mesh", item.of("tetra:metal_scrap", 3))
	
	event.shapeless("4x tetra:forged_beam", ["tetra:metal_scrap", "tetra:metal_scrap"])
	event.shapeless("2x tetra:forged_bolt", ["tetra:forged_beam", "immersiveengineering:wirecutter"])
	event.shapeless("1x tetra:vent_plate", ["tetra:metal_scrap", "tetra:metal_scrap", "immersiveengineering:hammer"])
	event.shapeless("1x tetra:quick_latch", ["tetra:metal_scrap", "tetra:metal_scrap", "tetra:forged_bolt", "immersiveengineering:hammer"])
	
	event.custom({
		"type": "botania:runic_altar",
		"output": {
			"item": "tetra:combustion_chamber"
		},
		"mana": 5200,
		"ingredients": [
			{
				"item": "tetra:vent_plate"
			},
			{
				"item": "tetra:vent_plate"
			},
			{
				"item": "botania:rune_fire"
			},
			{
				"item": "bloodmagic:reagentlava"
			}
	  ]
	})
	
	event.custom({
		"type": "botania:runic_altar",
		"output": {
			"item": "tetra:planar_stabilizer"
		},
		"mana": 5200,
		"ingredients": [
			{
				"item": "tetra:vent_plate"
			},
			{
				"item": "tetra:vent_plate"
			},
			{
				"item": "botania:rune_earth"
			},
			{
				"item": "minecraft:compass"
			}
	  ]
	})
	
	event.custom({
		"type": "botania:runic_altar",
		"output": {
			"item": "tetra:lubricant_dispenser"
		},
		"mana": 5200,
		"ingredients": [
			{
				"item": "tetra:vent_plate"
			},
			{
				"item": "tetra:vent_plate"
			},
			{
				"item": "botania:rune_water"
			},
			{
				"item": "immersivepetroleum:lubricant_bucket"
			}
	  ]
	})
	
	event.custom({
		"type": "botania:runic_altar",
		"output": {
			"item": "tetra:stonecutter"
		},
		"mana": 5200,
		"ingredients": [
			{
				"item": "tetra:vent_plate"
			},
			{
				"item": "tetra:vent_plate"
			},
			{
				"item": "botania:rune_earth"
			},
			{
				"item": "bloodmagic:reagentfastminer"
			}
	  ]
	})
	
	event.custom({
		"type": "botania:runic_altar",
		"output": {
			"item": "tetra:earthpiercer"
		},
		"mana": 5200,
		"ingredients": [
			{
				"item": "tetra:vent_plate"
			},
			{
				"item": "tetra:vent_plate"
			},
			{
				"item": "botania:rune_earth"
			},
			{
				"tag": "forge:ingots/terrasteel"
			}
	  ]
	})
	
	event.custom({
		"type": "botania:runic_altar",
		"output": {
			"item": "tetra:chthonic_extractor"
		},
		"mana": 5200,
		"ingredients": [
			{
				"item": "tetra:vent_plate"
			},
			{
				"item": "tetra:vent_plate"
			},
			{
				"item": "botania:rune_fire"
			},
			{
				"item": "minecraft:diamond_pickaxe"
			}
	  ]
	})
	
	event.shaped("tetra:forged_wall", [
		"AA",
		"AA"
	], {
		"A": "tetra:metal_scrap"
	})
	
	event.shaped("tetra:forged_pillar", [
		"A",
		"A"
	], {
		"A": "tetra:forged_wall"
	})
	
	event.shaped(item.of("tetra:forged_platform", 2), [
		"AA"
	], {
		"A": ["tetra:forged_wall", "tetra:forged_pillar"]
	
	})
	
	event.shaped(item.of("tetra:forged_platform_slab", 6), [
		"AAA"
	], {
		"A": "tetra:forged_platform"
	
	})
	
	event.custom({
		"type": "astralsorcery:altar",
		"altar_type": 1,
		"duration": 200,
		"starlight": 100,
		"pattern": [
			"C___C",
			"_FEF_",
			"_BAB_",
			"_B_B_",
			"D___D"
		],
		"key": {
			"A": {
				"item": "minecraft:anvil"
			},
			"B": {
				"item": "tetra:forged_wall"
			},
			"C": {
				"item": "bloodmagic:reagentfastminer"
			},
			"D": {
				"item": "botania:rune_fire"
			},
			"E": {
				"item": "minecraft:netherite_block"
			},
			"F": {
				"tag": "forge:plates/enderium"
			}
		},
		"output": [
			{
				"item": "tetra:forged_workbench",
				"count": 1
			}
		],
		 "effects": [
			"astralsorcery:built_in_effect_discovery_central_beam",
			"astralsorcery:built_in_effect_attunement_sparkle"
		]
	})
	
	event.custom({
		"type": "astralsorcery:altar",
		"altar_type": 1,
		"duration": 200,
		"starlight": 300,
		"pattern": [
			"C___C",
			"_BFB_",
			"_BAB_",
			"_BEB_",
			"D___D"
		],
		"key": {
			"A": {
				"item": "minecraft:piston"
			},
			"B": {
				"item": "tetra:forged_wall"
			},
			"C": {
				"item": "bloodmagic:reagentvoid"
			},
			"D": {
				"item": "botania:rune_earth"
			},
			"E": {
				"item": "minecraft:netherite_block"
			},
			"F": {
				"tag": "forge:plates/enderium"
			}
		},
		"output": [
			{
				"item": "tetra:hammer_base",
				"count": 1
			}
		],
		 "effects": [
			"astralsorcery:built_in_effect_discovery_central_beam",
			"astralsorcery:built_in_effect_attunement_sparkle"
		]
	})
	
	event.shaped(item.of('tetra:magmatic_cell', {Damage:128,AS_Amulet_Holder:[-1278028611,2042840858,-1502935302,-1734569014]}), [
		" A ",
		"A A",
		" A "	
	], {
		"A": "tetra:vent_plate" 
	})
	
	/*event.recipes.create.filling({item.of('tetra:magmatic_cell', {Damage:0,AS_Amulet_Holder:[-1278028611,2042840858,-1502935302,-1734569014]}), [
		item.of('tetra:magmatic_cell', {Damage:0,AS_Amulet_Holder:[-1278028611,2042840858,-1502935302,-1734569014]}),
		fluid.of("minecraft:lava", 250)
	]})*/
	
	event.custom({
		"type": "create:filling",
		"ingredients": [
			{
				"item": "tetra:magmatic_cell"
			},
			{
				"fluid": "minecraft:lava",
				"nbt": {},
				"amount": 250
			}
		],
		"results": [
			{
				"item": "tetra:magmatic_cell",//item.of('tetra:magmatic_cell', {Damage:0,AS_Amulet_Holder:[-1278028611,2042840858,-1502935302,-1734569014]})
				"nbt": {Damage:0,AS_Amulet_Holder:[-1278028611,2042840858,-1502935302,-1734569014]}
			}
		]
	})
})