//fixes and unifications tweaks
import crafttweaker.item.IIngredient;
import crafttweaker.item.IItemStack;
import crafttweaker.oredict.IOreDict;
import crafttweaker.oredict.IOreDictEntry;

#packmode normal hard

//Actually Additions var
var restonia = <actuallyadditions:item_crystal>;
var coil = <actuallyadditions:item_misc:7>;
var acoil = <actuallyadditions:item_misc:8>;
var eec = <actuallyadditions:item_crystal_empowered:4>;

//Other vars
var crook = <exnihilocreatio:crook_wood>;
var endstone = <minecraft:end_stone>;
var lavastone = <chisel:lavastone:*>;
var estitgc = <mysticalagriculture:titanium_essence>; //es = essence | tit = titanium | gc = galacticraft
var esziep = <mysticalagriculture:zinc_essence>; //es = essence | zi = zinc | ep = extraplanets
var estunep = <mysticalagriculture:tungsten_essence>; //es = essence | tun = tungsten | ep = extraplanets
var galg = <stevescarts:modulecomponents:49>;
var ch_menril = <integrateddynamics:crystalized_menril_chunk>;
var bl_menril = <integrateddynamics:crystalized_menril_block>;

//steel dust
recipes.addShapeless(<techreborn:dust:51> * 2, 
	[<ore:dustIron>, <ore:coal>, <ore:dustIron>
	]);
recipes.addShapeless(<techreborn:dust:51> * 3, 
	[<ore:dustIron>, <ore:dustIron>, <ore:fuelCoke>
	]);

//removing plates from IE
recipes.removeShapeless(<immersiveengineering:metal:30>);
recipes.removeShapeless(<immersiveengineering:metal:31>);
recipes.removeShapeless(<immersiveengineering:metal:32>);
recipes.removeShapeless(<immersiveengineering:metal:33>);
recipes.removeShapeless(<immersiveengineering:metal:34>);
recipes.removeShapeless(<immersiveengineering:metal:35>);
recipes.removeShapeless(<immersiveengineering:metal:36>);
recipes.removeShapeless(<immersiveengineering:metal:37>);
recipes.removeShapeless(<immersiveengineering:metal:38>);
recipes.removeShapeless(<immersiveengineering:metal:39>);
recipes.removeShapeless(<immersiveengineering:metal:40>);

//Compressed Crook
recipes.remove(<excompressum:compressed_crook>);
recipes.addShaped(<excompressum:compressed_crook>, 
	[[crook, crook, null], 
	[null, crook, null], 
	[null, crook, null]
	]);

//Extra Planets ingots recipe

recipes.addShaped(<extraplanets:tier8_items:5> * 4, 
	[[<ore:ingotZinc>, <ore:ingotZinc>], 
	[<ore:ingotZinc>, <ore:ingotZinc>]
	]);

recipes.addShaped(<extraplanets:tier8_items:5> * 3,
	[[esziep, esziep, esziep], 
	[null, esziep, null], 
	[esziep, esziep, esziep]
	]);

recipes.addShaped(<extraplanets:tier9_items:5> * 4, 
	[[<ore:ingotTungsten>, <ore:ingotTungsten>], 
	[<ore:ingotTungsten>, <ore:ingotTungsten>]
	]);

recipes.addShaped(<extraplanets:tier9_items:5> * 3,
	[[estunep, estunep, estunep], 
	[null, estunep, null], 
	[estunep, estunep, estunep]
	]);

recipes.addShaped(<extraplanets:tier11_items:5> * 4, 
	[[<ore:ingotPlatinum>, <ore:ingotPlatinum>], 
	[<ore:ingotPlatinum>, <ore:ingotPlatinum>]
	]);

recipes.addShaped(<extraplanets:tier5_items:7> * 4,
	[[<ore:ingotNickel>, <ore:ingotNickel>], 
	[<ore:ingotNickel>, <ore:ingotNickel>]
	]);

//GC Titanium Craft
recipes.addShaped(<galacticraftplanets:item_basic_asteroids> * 3, 
	[[estitgc, estitgc, estitgc], 
	[null, estitgc, null], 
	[estitgc, estitgc, estitgc]
	]);

recipes.addShaped(<galacticraftplanets:item_basic_asteroids> * 4, 
	[[<ore:ingotTitanium>, <ore:ingotTitanium>], 
	[<ore:ingotTitanium>, <ore:ingotTitanium>]
	]);

//GC & EP ingots recipe

recipes.addShaped(<galacticraftplanets:item_basic_asteroids> * 3, 
	[[estitgc, estitgc, estitgc], 
	[null, estitgc, null], 
	[estitgc, estitgc, estitgc]
	]);

recipes.addShaped(<galacticraftplanets:item_basic_asteroids> * 4, 
	[[<ore:ingotTitanium>, <ore:ingotTitanium>], 
	[<ore:ingotTitanium>, <ore:ingotTitanium>]
	]);

recipes.addShaped(<extraplanets:tier8_items:5> * 4, 
	[[<ore:ingotZinc>, <ore:ingotZinc>], 
	[<ore:ingotZinc>, <ore:ingotZinc>]
	]);

recipes.addShaped(<extraplanets:tier8_items:5> * 3,
	[[esziep, esziep, esziep], 
	[null, esziep, null], 
	[esziep, esziep, esziep]
	]);

recipes.addShaped(<extraplanets:tier9_items:5> * 4, 
	[[<ore:ingotTungsten>, <ore:ingotTungsten>], 
	[<ore:ingotTungsten>, <ore:ingotTungsten>]
	]);

recipes.addShaped(<extraplanets:tier9_items:5> * 3,
	[[estunep, estunep, estunep], 
	[null, estunep, null], 
	[estunep, estunep, estunep]
	]);

recipes.addShaped(<extraplanets:tier11_items:5> * 4, 
	[[<ore:ingotPlatinum>, <ore:ingotPlatinum>], 
	[<ore:ingotPlatinum>, <ore:ingotPlatinum>]
	]);

recipes.addShaped(<extraplanets:tier5_items:7> * 4,
	[[<ore:ingotNickel>, <ore:ingotNickel>], 
	[<ore:ingotNickel>, <ore:ingotNickel>]
	]);

//Removing Quantum Battery
recipes.remove(<quantumstorage:quantum_battery>);

//Atomic Disassembler
recipes.remove(<mekanism:atomicdisassembler>);

//Reinforced Stone Nerf
recipes.removeShapeless(<sonarcore:reinforcedstoneblock>);
recipes.removeShaped(<sonarcore:reinforcedstoneblock>);

//advanced fuel loader fix
recipes.remove(<extraplanets:advanced_fuel_loader>);
recipes.addShaped(<extraplanets:advanced_fuel_loader>, 
	[[<ore:ingotNickel>, <ore:ingotNickel>, <ore:ingotNickel>], 
	[<ore:ingotNickel>, <galacticraftcore:fuel_loader>, <ore:ingotNickel>], 
	[<ore:ingotPlatinum>, <extraplanets:tier5_items:8>, <ore:ingotPlatinum>]
	]);

//tin gear & unidict
recipes.remove(<thermalfoundation:material:257>);
recipes.addShaped(<thermalfoundation:material:257>, 
	[[null, <ore:ingotTin>, null], 
	[<ore:ingotTin>, <ore:ingotIron>, <ore:ingotTin>], 
	[null, <ore:ingotTin>, null]
	]);

//coal fix
recipes.remove(<excompressum:uncompressed_coal>);
recipes.removeByRecipeName("galacticraftplanets:carbon_fragments_alt_alt");
recipes.remove(<jaopca:item_nuggetcoal>);

//cyclic bag removal
recipes.remove(<cyclicmagic:storage_bag>);

//lead block
recipes.remove(<thermalfoundation:storage:3>);
recipes.addShaped(<thermalfoundation:storage:3>, 
	[[<ore:ingotLead>, <ore:ingotLead>, <ore:ingotLead>], 
	[<ore:ingotLead>, <ore:ingotLead>, <ore:ingotLead>], 
	[<ore:ingotLead>, <ore:ingotLead>, <ore:ingotLead>]
	]);

//Magnesium Ingot Craft
/*
mods.mekanism.smelter.addRecipe(
	<input>, 
	<output>
	);
*/
mods.mekanism.smelter.addRecipe(
	<techreborn:dust:30>, 
	<extraplanets:tier6_items:5>
	);

/*
mods.thermalexpansion.RedstoneFurnace.addRecipe(
	<output>, 
	<input>, 
	1000
	);
*/

mods.thermalexpansion.RedstoneFurnace.addRecipe(
	<extraplanets:tier6_items:5>, 
	<techreborn:dust:30>, 
	1000
	);


//C&B Wrench
recipes.remove(<chiselsandbits:wrench_wood>);
recipes.addShaped(<chiselsandbits:wrench_wood>, 
	[[null, <ore:plankWood>, <ore:plankWood>], 
	[null, <ore:stickWood>, <ore:plankWood>], 
	[<ore:stickWood>, null, null]
	]);

//Removing Uncrafting Grinder (dupe bugs)
recipes.remove(<cyclicmagic:uncrafting_block>);

//Cow Bait
recipes.remove(<excompressum:bait:2>);
recipes.addShapeless(<excompressum:bait:2>, 
	[<ore:cropWheat>, <ore:cropWheat>, <ore:cropWheat>]);

//Removing Uncrafting Grinder (dupe bugs)
recipes.remove(<cyclicmagic:uncrafting_block>);

//Changing recipes for compressed metals (Galacticraft & Extra Planets)
//mods.GalacticraftTweaker.removeCompressorRecipe(<galacticraftcore:basic_item:6>);
/*
mods.GalacticraftTweaker.addCompressorShapelessRecipe(<galacticraftcore:basic_item:14>,
	<minecraft:emerald>, null, null, 
	null, null, null, 
	null, null, null);
*/

//Compressor Recipe
	//Copper
		mods.GalacticraftTweaker.removeCompressorRecipe(<galacticraftcore:basic_item:6>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<galacticraftcore:basic_item:6>,
			<thermalfoundation:material:128>, null, null, 
			null, null, null, 
			null, null, null);
	//Tin
		mods.GalacticraftTweaker.removeCompressorRecipe(<galacticraftcore:basic_item:7>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<galacticraftcore:basic_item:7>,
			<thermalfoundation:material:129>, null, null, 
			null, null, null, 
			null, null, null);
	//Aluminum / Aluminium
		mods.GalacticraftTweaker.removeCompressorRecipe(<galacticraftcore:basic_item:8>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<galacticraftcore:basic_item:8>,
			<thermalfoundation:material:132>, null, null, 
			null, null, null, 
			null, null, null);
	//Steel
		mods.GalacticraftTweaker.removeCompressorRecipe(<galacticraftcore:basic_item:9>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<galacticraftcore:basic_item:9>,
			<thermalfoundation:material:160>, null, null, 
			null, null, null, 
			null, null, null);
	//Bronze
		mods.GalacticraftTweaker.removeCompressorRecipe(<galacticraftcore:basic_item:10>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<galacticraftcore:basic_item:10>,
			<thermalfoundation:material:163>, null, null, 
			null, null, null, 
			null, null, null);
	//Iron
		mods.GalacticraftTweaker.removeCompressorRecipe(<galacticraftcore:basic_item:11>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<galacticraftcore:basic_item:11>,
			<minecraft:iron_ingot>, null, null, 
			null, null, null, 
			null, null, null);
	//Titanium
		mods.GalacticraftTweaker.removeCompressorRecipe(<galacticraftplanets:item_basic_asteroids:6>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<galacticraftplanets:item_basic_asteroids:6>,
			<galacticraftplanets:item_basic_asteroids>, null, null, 
			null, null, null, 
			null, null, null);
	//Dark Iron (not dank iron)
		mods.GalacticraftTweaker.removeCompressorRecipe(<extraplanets:tier10_items:4>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<extraplanets:tier10_items:4>,
			<extraplanets:tier10_items:5>, null, null, 
			null, null, null, 
			null, null, null);
	//Tungsten
		mods.GalacticraftTweaker.removeCompressorRecipe(<extraplanets:tier9_items:4>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<extraplanets:tier9_items:4>,
			<extraplanets:tier9_items:5>, null, null, 
			null, null, null, 
			null, null, null);
	//Platinum
		mods.GalacticraftTweaker.removeCompressorRecipe(<extraplanets:tier11_items:6>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<extraplanets:tier11_items:6>,
			<extraplanets:tier11_items:5>, null, null, 
			null, null, null, 
			null, null, null);
	//Mercury
		mods.GalacticraftTweaker.removeCompressorRecipe(<extraplanets:compressed_mercury>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<extraplanets:compressed_mercury>,
			<extraplanets:ingot_mercury>, null, null, 
			null, null, null, 
			null, null, null);
	//Carbon
		mods.GalacticraftTweaker.removeCompressorRecipe(<extraplanets:tier4_items:4>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<extraplanets:tier4_items:4>,
			<extraplanets:tier4_items:5>, null, null, 
			null, null, null, 
			null, null, null);
	//Palladium
		mods.GalacticraftTweaker.removeCompressorRecipe(<extraplanets:tier5_items:4>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<extraplanets:tier5_items:4>,
			<extraplanets:tier5_items:5>, null, null, 
			null, null, null, 
			null, null, null);
	//Nickel
		mods.GalacticraftTweaker.removeCompressorRecipe(<extraplanets:tier5_items:6>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<extraplanets:tier5_items:6>,
			<extraplanets:tier5_items:7>, null, null, 
			null, null, null, 
			null, null, null);
	//Magnesium
		mods.GalacticraftTweaker.removeCompressorRecipe(<extraplanets:tier6_items:4>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<extraplanets:tier6_items:4>,
			<extraplanets:tier6_items:5>, null, null, 
			null, null, null, 
			null, null, null);
	//Crystal
		mods.GalacticraftTweaker.removeCompressorRecipe(<extraplanets:tier7_items:4>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<extraplanets:tier7_items:4>,
			<extraplanets:tier7_items:5>, null, null, 
			null, null, null, 
			null, null, null);
	//Reinforced Crystal
		mods.GalacticraftTweaker.removeCompressorRecipe(<extraplanets:tier7_items:6>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<extraplanets:tier7_items:6>,
			<extraplanets:tier7_items:4>, null, null, 
			null, null, null, 
			null, null, null);
	//Zinc
		mods.GalacticraftTweaker.removeCompressorRecipe(<extraplanets:tier8_items:4>);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<extraplanets:tier8_items:4>,
			<extraplanets:tier8_items:5>, null, null, 
			null, null, null, 
			null, null, null);
	//Heavy Duty Plate
		mods.GalacticraftTweaker.removeCompressorRecipe(<galacticraftcore:heavy_plating> * 2);
		mods.GalacticraftTweaker.addCompressorShapelessRecipe(<galacticraftcore:heavy_plating> * 2,
			<galacticraftcore:basic_item:9>, <galacticraftcore:basic_item:10>, <galacticraftcore:basic_item:8>, 
			null, null, null, 
			null, null, null);
	//-----
//-----

//Wooden Gear removal (AE2)
recipes.remove(<appliedenergistics2:material:40>);

//Emerald Jetpack
recipes.remove(<ironjetpacks:emerald_jetpack>);
recipes.addShaped(<ironjetpacks:emerald_jetpack>, 
	[[eec, <ironjetpacks:emerald_capacitor>, eec], 
	[eec, <ore:jetpackTier4>, eec], 
	[<ironjetpacks:emerald_thruster>, null, <ironjetpacks:emerald_thruster>]
	]);

//Prosperity Shards
recipes.addShapeless(<mysticalagriculture:crafting:5> * 4, 
	[<skyresources:techitemcomponent:2>]
	);

//Sap
recipes.addShapeless(<techreborn:part:32> * 3, [<ore:treeSapling>, <ore:slimeball>]);

//Lonsdaleite
recipes.addShaped(<environmentaltech:lonsdaleite_crystal> * 8, [[<ore:gemCoal>, <ore:gemQuartzBlack>, <ore:gemCoal>],[<ore:ingotTungsten>, <ore:plateRefinedIron>, <ore:ingotTungsten>], [<ore:ingotSteel>, <ore:gemQuartzBlack>, <ore:ingotSteel>]]);

//Remove plates (Embers)
recipes.removeByRecipeName("unidict:plateiron_x1_size.5");
recipes.removeByRecipeName("unidict:plategold_x1_size.5");
recipes.removeByRecipeName("unidict:platecopper_x1_size.5");
recipes.removeByRecipeName("unidict:platetin_x1_size.5");
recipes.removeByRecipeName("unidict:platesilver_x1_size.5");
recipes.removeByRecipeName("unidict:platelead_x1_size.5");
recipes.removeByRecipeName("unidict:platealuminum_x1_size.5");
recipes.removeByRecipeName("unidict:platenickel_x1_size.5");
recipes.removeByRecipeName("unidict:platebronze_x1_size.5");
recipes.removeByRecipeName("unidict:plateelectrum_x1_size.5");

//Stirling Engine Removal
recipes.remove(<tinker_io:stirling_engine>);

//Flux Craft
mods.thermalexpansion.InductionSmelter.addRecipe(
	<fluxnetworks:flux>, 
	<minecraft:coal>, 
	<minecraft:redstone>, 1500
	);

//QS storage thing
recipes.remove(<quantumstorage:multistorage>);
recipes.remove(<quantumstorage:multistorage:1>);
recipes.remove(<quantumstorage:multistorage:2>);
recipes.remove(<quantumstorage:multistorage:3>);

//ID battery fix
recipes.remove(<integrateddynamics:energy_battery>);
recipes.addShaped(<integrateddynamics:energy_battery>, [
	[ch_menril, bl_menril, ch_menril],
	[<forestry:thermionic_tubes:10>, <calculator:material:9>, <forestry:thermionic_tubes:10>],
	[ch_menril, bl_menril, ch_menril]
	]);

//Reactor Controller (Mekanism)
recipes.remove(<mekanismgenerators:reactor>);
recipes.addShaped(<mekanismgenerators:reactor>, 
	[[<ore:glassReinforced>, <ore:glassReinforced>, <ore:glassReinforced>],
	[<mekanismgenerators:reactor:1>, <techreborn:fusion_control_computer>, <mekanismgenerators:reactor:1>], 
	 [<mekanismgenerators:reactor:1>, <mekanismgenerators:reactor:1>, <mekanismgenerators:reactor:1>]
	 ]);

//Reactor Frame (Mekanism)
recipes.remove(<mekanismgenerators:reactor:1>);
recipes.addShaped(<mekanismgenerators:reactor:1> * 8, 
	[[<ore:craftingSuperconductor>, <techreborn:part:14>, <ore:craftingSuperconductor>], 
	[<ore:machineBlockAdvanced>, <environmentaltech:aethium_crystal>, <ore:machineBlockAdvanced>], 
	[<ore:craftingSuperconductor>, <techreborn:part:14>, <ore:craftingSuperconductor>]
	]);