/* Import scripts to make life easier */
import crafttweaker.api.item.IItemStack;
import crafttweaker.api.FurnaceManager;

/* Set up Values and Variables */
var RArray = [
	<item:immersiveengineering:storage_steel>,
	<item:thermal:copper_block>,
	<item:thermal:tin_block>,
	<item:thermal:lead_block>,
	<item:immersiveengineering:storage_aluminum>,
	<item:thermal:silver_block>,
	<item:immersiveengineering:nugget_aluminum>,
	<item:immersiveengineering:nugget_steel>,
	<item:thermal:copper_nugget>,
	<item:thermal:tin_nugget>,
	<item:thermal:lead_nugget>,
	<item:thermal:silver_nugget>,
	<item:thermal:bronze_nugget>,
	<item:thermal:electrum_nugget>,
	<item:thermal:constantan_nugget>,
	<item:immersiveengineering:ingot_steel>,
	<item:thermal:copper_ingot>,
	<item:immersiveengineering:ingot_aluminum>,
	<item:thermal:tin_ingot>,
	<item:thermal:lead_ingot>,
	<item:thermal:silver_ingot>,
	<item:thermal:bronze_ingot>,
	<item:thermal:electrum_ingot>,
	<item:thermal:constantan_ingot>,
	<item:thermal:nickel_ingot>
];
val air = <item:minecraft:air>;
/* Remove recipes */
for item in RArray {
	craftingTable.removeRecipe(item);
}

/* Re-Add Recipes*/
craftingTable.addShaped("thb_steel_block_unification", <item:immersiveengineering:storage_steel>, [
	[<tag:items:forge:ingots/steel>, <tag:items:forge:ingots/steel>, <tag:items:forge:ingots/steel>],
	[<tag:items:forge:ingots/steel>, <tag:items:forge:ingots/steel>, <tag:items:forge:ingots/steel>],
	[<tag:items:forge:ingots/steel>, <tag:items:forge:ingots/steel>, <tag:items:forge:ingots/steel>]
]);
craftingTable.addShaped("thb_copper_block_unification", <item:thermal:copper_block>, [
	[<tag:items:forge:ingots/copper>, <tag:items:forge:ingots/copper>, <tag:items:forge:ingots/copper>],
	[<tag:items:forge:ingots/copper>, <tag:items:forge:ingots/copper>, <tag:items:forge:ingots/copper>],
	[<tag:items:forge:ingots/copper>, <tag:items:forge:ingots/copper>, <tag:items:forge:ingots/copper>]
]);
craftingTable.addShaped("thb_tin_block_unification", <item:thermal:tin_block>, [
	[<tag:items:forge:ingots/tin>, <tag:items:forge:ingots/tin>, <tag:items:forge:ingots/tin>],
	[<tag:items:forge:ingots/tin>, <tag:items:forge:ingots/tin>, <tag:items:forge:ingots/tin>],
	[<tag:items:forge:ingots/tin>, <tag:items:forge:ingots/tin>, <tag:items:forge:ingots/tin>]
]);
craftingTable.addShaped("thb_lead_block_unification", <item:thermal:lead_block>, [
	[<tag:items:forge:ingots/lead>, <tag:items:forge:ingots/lead>, <tag:items:forge:ingots/lead>],
	[<tag:items:forge:ingots/lead>, <tag:items:forge:ingots/lead>, <tag:items:forge:ingots/lead>],
	[<tag:items:forge:ingots/lead>, <tag:items:forge:ingots/lead>, <tag:items:forge:ingots/lead>]
]);
craftingTable.addShaped("thb_aluminum_block_unification", <item:immersiveengineering:storage_aluminum>, [
	[<tag:items:forge:ingots/aluminum>, <tag:items:forge:ingots/aluminum>, <tag:items:forge:ingots/aluminum>],
	[<tag:items:forge:ingots/aluminum>, <tag:items:forge:ingots/aluminum>, <tag:items:forge:ingots/aluminum>],
	[<tag:items:forge:ingots/aluminum>, <tag:items:forge:ingots/aluminum>, <tag:items:forge:ingots/aluminum>]
]);
craftingTable.addShaped("thb_silver_block_unification", <item:thermal:silver_block>, [
	[<tag:items:forge:ingots/silver>, <tag:items:forge:ingots/silver>, <tag:items:forge:ingots/silver>],
	[<tag:items:forge:ingots/silver>, <tag:items:forge:ingots/silver>, <tag:items:forge:ingots/silver>],
	[<tag:items:forge:ingots/silver>, <tag:items:forge:ingots/silver>, <tag:items:forge:ingots/silver>]
]);
craftingTable.addShapeless("thb_aluminum_nugget_unification", <item:immersiveengineering:nugget_aluminum> * 9, 
	[<tag:items:forge:ingots/aluminum>]
);
craftingTable.addShapeless("thb_steel_nugget_unification", <item:immersiveengineering:nugget_steel> * 9, 
	[<tag:items:forge:ingots/steel>]
);
craftingTable.addShapeless("thb_copper_nugget_unification", <item:thermal:copper_nugget> * 9, 
	[<tag:items:forge:ingots/copper>]
);
craftingTable.addShapeless("thb_tin_nugget_unification", <item:thermal:tin_nugget> * 9, 
	[<tag:items:forge:ingots/tin>]
);
craftingTable.addShapeless("thb_lead_nuget_unification", <item:thermal:lead_nugget> * 9, 
	[<tag:items:forge:ingots/lead>]
);
craftingTable.addShapeless("thb_silver_nugget_unification", <item:thermal:silver_nugget> * 9, 
	[<tag:items:forge:ingots/silver>]
);
craftingTable.addShapeless("thb_bronze_nugget_unification", <item:thermal:bronze_nugget> * 9, 
	[<tag:items:forge:ingots/bronze>]
);
craftingTable.addShapeless("thb_electrum_nugget_unification", <item:thermal:electrum_nugget> * 9, 
	[<tag:items:forge:ingots/electrum>]
);
craftingTable.addShapeless("thb_constantan_nugget_unification", <item:thermal:constantan_nugget> * 9, 
	[<tag:items:forge:ingots/constantan>]
);
	/* Steel ingot */
craftingTable.addShapeless("thb_steel_ingot_fix1", <item:immersiveengineering:ingot_steel> * 9, 
	[<tag:items:forge:storage_blocks/steel>]
);
craftingTable.addShaped("thb_steel_ingot_fix2", <item:immersiveengineering:ingot_steel>, [
	[<tag:items:forge:nuggets/steel>, <tag:items:forge:nuggets/steel>, <tag:items:forge:nuggets/steel>],
	[<tag:items:forge:nuggets/steel>, <tag:items:forge:nuggets/steel>, <tag:items:forge:nuggets/steel>],
	[<tag:items:forge:nuggets/steel>, <tag:items:forge:nuggets/steel>, <tag:items:forge:nuggets/steel>]
]);
craftingTable.addShaped("thb_steel_ingot_fix3", <item:immersiveengineering:ingot_steel> * 3, [
	[<item:mysticalagriculture:steel_essence>, <item:mysticalagriculture:steel_essence>, <item:mysticalagriculture:steel_essence>],
	[<item:mysticalagriculture:steel_essence>, air, <item:mysticalagriculture:steel_essence>],
	[<item:mysticalagriculture:steel_essence>, <item:mysticalagriculture:steel_essence>, <item:mysticalagriculture:steel_essence>]
]);
	/* Copper Ingot */
craftingTable.addShapeless("thb_copper_ingot_fix1", <item:mekanism:ingot_copper> * 9, 
	[<tag:items:forge:storage_blocks/copper>]
);
craftingTable.addShaped("thb_copper_ingot_fix2", <item:mekanism:ingot_copper>, [
	[<tag:items:forge:nuggets/copper>, <tag:items:forge:nuggets/copper>, <tag:items:forge:nuggets/copper>],
	[<tag:items:forge:nuggets/copper>, <tag:items:forge:nuggets/copper>, <tag:items:forge:nuggets/copper>],
	[<tag:items:forge:nuggets/copper>, <tag:items:forge:nuggets/copper>, <tag:items:forge:nuggets/copper>]
]);
craftingTable.addShaped("thb_copper_ingot_fix3", <item:mekanism:ingot_copper> * 6, [
	[<item:mysticalagriculture:copper_essence>, <item:mysticalagriculture:copper_essence>, <item:mysticalagriculture:copper_essence>],
	[<item:mysticalagriculture:copper_essence>, air, <item:mysticalagriculture:copper_essence>],
	[<item:mysticalagriculture:copper_essence>, <item:mysticalagriculture:copper_essence>, <item:mysticalagriculture:copper_essence>]
]);
	/* Aluminum Ingot */
craftingTable.addShapeless("thb_aluminum_ingot_fix1", <item:immersiveengineering:ingot_aluminum> * 9, 
	[<tag:items:forge:storage_blocks/aluminum>]
);
craftingTable.addShaped("thb_aluminum_ingot_fix2", <item:immersiveengineering:ingot_aluminum>, [
	[<tag:items:forge:nuggets/aluminum>, <tag:items:forge:nuggets/aluminum>, <tag:items:forge:nuggets/aluminum>],
	[<tag:items:forge:nuggets/aluminum>, <tag:items:forge:nuggets/aluminum>, <tag:items:forge:nuggets/aluminum>],
	[<tag:items:forge:nuggets/aluminum>, <tag:items:forge:nuggets/aluminum>, <tag:items:forge:nuggets/aluminum>]
]);
craftingTable.addShaped("thb_aluminum_ingot_fix3", <item:immersiveengineering:ingot_aluminum> * 8, [
	[<item:mysticalagriculture:aluminum_essence>, <item:mysticalagriculture:aluminum_essence>, <item:mysticalagriculture:aluminum_essence>],
	[<item:mysticalagriculture:aluminum_essence>, air, <item:mysticalagriculture:aluminum_essence>],
	[<item:mysticalagriculture:aluminum_essence>, <item:mysticalagriculture:aluminum_essence>, <item:mysticalagriculture:aluminum_essence>]
]);
	/* Tin Ingot */
craftingTable.addShapeless("thb_tin_ingot_fix1", <item:mekanism:ingot_tin> * 9, 
	[<tag:items:forge:storage_blocks/tin>]
);
craftingTable.addShaped("thb_tin_ingot_fix2", <item:mekanism:ingot_tin>, [
	[<tag:items:forge:nuggets/tin>, <tag:items:forge:nuggets/tin>, <tag:items:forge:nuggets/tin>],
	[<tag:items:forge:nuggets/tin>, <tag:items:forge:nuggets/tin>, <tag:items:forge:nuggets/tin>],
	[<tag:items:forge:nuggets/tin>, <tag:items:forge:nuggets/tin>, <tag:items:forge:nuggets/tin>]
]);
craftingTable.addShaped("thb_tin_ingot_fix3", <item:mekanism:ingot_tin> * 4, [
	[<item:mysticalagriculture:tin_essence>, <item:mysticalagriculture:tin_essence>, <item:mysticalagriculture:tin_essence>],
	[<item:mysticalagriculture:tin_essence>, air, <item:mysticalagriculture:tin_essence>],
	[<item:mysticalagriculture:tin_essence>, <item:mysticalagriculture:tin_essence>, <item:mysticalagriculture:tin_essence>]
]);
	/* Lead Ingot */
craftingTable.addShapeless("thb_lead_ingot_fix1", <item:thermal:lead_ingot> * 9, 
	[<tag:items:forge:storage_blocks/lead>]
);
craftingTable.addShaped("thb_lead_ingot_fix2", <item:thermal:lead_ingot>, [
	[<tag:items:forge:nuggets/lead>, <tag:items:forge:nuggets/lead>, <tag:items:forge:nuggets/lead>],
	[<tag:items:forge:nuggets/lead>, <tag:items:forge:nuggets/lead>, <tag:items:forge:nuggets/lead>],
	[<tag:items:forge:nuggets/lead>, <tag:items:forge:nuggets/lead>, <tag:items:forge:nuggets/lead>]
]);
craftingTable.addShaped("thb_lead_ingot_fix3", <item:thermal:lead_ingot> * 4, [
	[<item:mysticalagriculture:lead_essence>, <item:mysticalagriculture:lead_essence>, <item:mysticalagriculture:lead_essence>],
	[<item:mysticalagriculture:lead_essence>, air, <item:mysticalagriculture:lead_essence>],
	[<item:mysticalagriculture:lead_essence>, <item:mysticalagriculture:lead_essence>, <item:mysticalagriculture:lead_essence>]
]);
	/* Silver Ingot */
craftingTable.addShapeless("thb_silver_ingot_fix1", <item:thermal:silver_ingot> * 9, 
	[<tag:items:forge:storage_blocks/silver>]
);
craftingTable.addShaped("thb_silver_ingot_fix2", <item:thermal:silver_ingot>, [
	[<tag:items:forge:nuggets/silver>, <tag:items:forge:nuggets/silver>, <tag:items:forge:nuggets/silver>],
	[<tag:items:forge:nuggets/silver>, <tag:items:forge:nuggets/silver>, <tag:items:forge:nuggets/silver>],
	[<tag:items:forge:nuggets/silver>, <tag:items:forge:nuggets/silver>, <tag:items:forge:nuggets/silver>]
]);
craftingTable.addShaped("thb_silver_ingot_fix3", <item:thermal:silver_ingot> * 4, [
	[<item:mysticalagriculture:silver_essence>, <item:mysticalagriculture:silver_essence>, <item:mysticalagriculture:silver_essence>],
	[<item:mysticalagriculture:silver_essence>, air, <item:mysticalagriculture:silver_essence>],
	[<item:mysticalagriculture:silver_essence>, <item:mysticalagriculture:silver_essence>, <item:mysticalagriculture:silver_essence>]
]);
	/* Bronze Ingot */
craftingTable.addShapeless("thb_bronze_ingot_fix1", <item:thermal:bronze_ingot> * 9, 
	[<tag:items:forge:storage_blocks/bronze>]
);
craftingTable.addShaped("thb_bronze_ingot_fix2", <item:thermal:bronze_ingot>, [
	[<tag:items:forge:nuggets/bronze>, <tag:items:forge:nuggets/bronze>, <tag:items:forge:nuggets/bronze>],
	[<tag:items:forge:nuggets/bronze>, <tag:items:forge:nuggets/bronze>, <tag:items:forge:nuggets/bronze>],
	[<tag:items:forge:nuggets/bronze>, <tag:items:forge:nuggets/bronze>, <tag:items:forge:nuggets/bronze>]
]);
craftingTable.addShaped("thb_bronze_ingot_fix3", <item:thermal:bronze_ingot> * 4, [
	[<item:mysticalagriculture:bronze_essence>, <item:mysticalagriculture:bronze_essence>, <item:mysticalagriculture:bronze_essence>],
	[<item:mysticalagriculture:bronze_essence>, air, <item:mysticalagriculture:bronze_essence>],
	[<item:mysticalagriculture:bronze_essence>, <item:mysticalagriculture:bronze_essence>, <item:mysticalagriculture:bronze_essence>]
]);
	/* Electrum Ingot */
craftingTable.addShapeless("thb_electrum_ingot_fix1", <item:thermal:electrum_ingot> * 9, 
	[<tag:items:forge:storage_blocks/electrum>]
);
craftingTable.addShaped("thb_electrum_ingot_fix2", <item:thermal:electrum_ingot>, [
	[<tag:items:forge:nuggets/electrum>, <tag:items:forge:nuggets/electrum>, <tag:items:forge:nuggets/electrum>],
	[<tag:items:forge:nuggets/electrum>, <tag:items:forge:nuggets/electrum>, <tag:items:forge:nuggets/electrum>],
	[<tag:items:forge:nuggets/electrum>, <tag:items:forge:nuggets/electrum>, <tag:items:forge:nuggets/electrum>]
]);
craftingTable.addShaped("thb_electrum_ingot_fix3", <item:thermal:electrum_ingot> * 4, [
	[<item:mysticalagriculture:electrum_essence>, <item:mysticalagriculture:electrum_essence>, <item:mysticalagriculture:electrum_essence>],
	[<item:mysticalagriculture:electrum_essence>, air, <item:mysticalagriculture:electrum_essence>],
	[<item:mysticalagriculture:electrum_essence>, <item:mysticalagriculture:electrum_essence>, <item:mysticalagriculture:electrum_essence>]
]);
	/* Constantan */
craftingTable.addShapeless("thb_constantan_ingot_fix1", <item:thermal:constantan_ingot> * 9, 
	[<tag:items:forge:storage_blocks/constantan>]
);
craftingTable.addShaped("thb_constantan_ingot_fix2", <item:thermal:constantan_ingot>, [
	[<tag:items:forge:nuggets/constantan>, <tag:items:forge:nuggets/constantan>, <tag:items:forge:nuggets/constantan>],
	[<tag:items:forge:nuggets/constantan>, <tag:items:forge:nuggets/constantan>, <tag:items:forge:nuggets/constantan>],
	[<tag:items:forge:nuggets/constantan>, <tag:items:forge:nuggets/constantan>, <tag:items:forge:nuggets/constantan>]
]);
craftingTable.addShaped("thb_constantan_ingot_fix3", <item:thermal:constantan_ingot> * 4, [
	[<item:mysticalagriculture:constantan_essence>, <item:mysticalagriculture:constantan_essence>, <item:mysticalagriculture:constantan_essence>],
	[<item:mysticalagriculture:constantan_essence>, air, <item:mysticalagriculture:constantan_essence>],
	[<item:mysticalagriculture:constantan_essence>, <item:mysticalagriculture:constantan_essence>, <item:mysticalagriculture:constantan_essence>]
]);
	/* Nickel Ingot */
craftingTable.addShapeless("thb_nickel_ingot_fix1", <item:thermal:nickel_ingot> * 9, 
	[<tag:items:forge:storage_blocks/nickel>]
);
craftingTable.addShaped("thb_nickel_ingot_fix2", <item:thermal:nickel_ingot>, [
	[<tag:items:forge:nuggets/nickel>, <tag:items:forge:nuggets/nickel>, <tag:items:forge:nuggets/nickel>],
	[<tag:items:forge:nuggets/nickel>, <tag:items:forge:nuggets/nickel>, <tag:items:forge:nuggets/nickel>],
	[<tag:items:forge:nuggets/nickel>, <tag:items:forge:nuggets/nickel>, <tag:items:forge:nuggets/nickel>]
]);
craftingTable.addShaped("thb_nickel_ingot_fix3", <item:thermal:nickel_ingot> * 4, [
	[<item:mysticalagriculture:nickel_essence>, <item:mysticalagriculture:nickel_essence>, <item:mysticalagriculture:nickel_essence>],
	[<item:mysticalagriculture:nickel_essence>, air, <item:mysticalagriculture:nickel_essence>],
	[<item:mysticalagriculture:nickel_essence>, <item:mysticalagriculture:nickel_essence>, <item:mysticalagriculture:nickel_essence>]
]);

/* Fix Smelting Ores directly recipes */
furnace.getAllRecipes();