import mods.jei.JEI.removeAndHide as rah;
#modloaded extendedcrafting

# Remove and Hide Recipes
rah(<extendedcrafting:crafting_table>);
rah(<extendedcrafting:handheld_table>);

# Advanced Table
recipes.remove(<extendedcrafting:table_advanced>);
mods.extendedcrafting.TableCrafting.addShaped(0, <extendedcrafting:table_advanced>, 
[
    [<ore:blockIron>, <extendedcrafting:material:9>, <ore:blockGold>], 
    [<extendedcrafting:material:8>, <extendedcrafting:table_basic>, <extendedcrafting:material:10>], 
    [<ore:blockEmerald>, <extendedcrafting:material:11>, <ore:blockDiamond>]
]);

# Elite Table
recipes.remove(<extendedcrafting:table_elite>);
mods.extendedcrafting.TableCrafting.addShaped(0, <extendedcrafting:table_elite>, 
[
    [<extendedcrafting:trimmed:2>, <extendedcrafting:material:17>, <ore:dustMana>, <extendedcrafting:material:17>, <extendedcrafting:trimmed:2>], 
    [<extendedcrafting:material:16>, <extendedcrafting:material:48>, <ore:blockEnderium>, <extendedcrafting:material:48>, <extendedcrafting:material:16>], 
    [<ore:dustMana>, <extendedcrafting:table_advanced>, <quantumstorage:quantumcrafter>, <extendedcrafting:table_advanced>, <ore:dustMana>], 
    [<extendedcrafting:material:16>, <extendedcrafting:material:48>, <ore:blockEnderium>, <extendedcrafting:material:48>, <extendedcrafting:material:16>], 
    [<extendedcrafting:trimmed:3>, <extendedcrafting:material:17>, <ore:dustMana>, <extendedcrafting:material:17>, <extendedcrafting:trimmed:3>]
]);

# Ultimate Table
recipes.remove(<extendedcrafting:table_ultimate>);
mods.extendedcrafting.TableCrafting.addShaped(0, <extendedcrafting:table_ultimate>, 
[
    [<thermalexpansion:cell>.withTag({Level: 4 as byte}), <extendedcrafting:trimmed:4>, <extendedcrafting:material:12>, <rebornstorage:storagepart:3>, <extendedcrafting:material:12>, <extendedcrafting:trimmed:4>, <thermalexpansion:cell>.withTag({Level: 4 as byte})], 
    [<extendedcrafting:trimmed:2>, <draconicevolution:wyvern_core>, <refinedstorage:crafter>, <extendedcrafting:storage:7>, <refinedstorage:crafter>, <draconicevolution:wyvern_core>, <extendedcrafting:trimmed:2>], 
    [<extendedcrafting:material:10>, <refinedstorage:crafter>, <thermalexpansion:machine:11>, <extendedcrafting:table_elite>, <rftools:crafter3>, <refinedstorage:crafter>, <extendedcrafting:material:10>], 
    [<rebornstorage:storagepart:3>, <extendedcrafting:storage:6>, <extendedcrafting:table_advanced>, <avaritia:extreme_crafting_table>, <extendedcrafting:table_advanced>, <actuallyadditions:block_crystal_empowered:2>, <rebornstorage:storagepart:3>], 
    [<extendedcrafting:material:10>, <refinedstorage:crafter>, <mekanism:machineblock3:5>, <extendedcrafting:table_elite>, <enderio:block_crafter>, <refinedstorage:crafter>, <extendedcrafting:material:10>], 
    [<extendedcrafting:trimmed:2>, <draconicevolution:wyvern_core>, <refinedstorage:crafter>, <actuallyadditions:block_crystal_empowered:4>, <refinedstorage:crafter>, <draconicevolution:wyvern_core>, <extendedcrafting:trimmed:2>], 
    [<thermalexpansion:cell>.withTag({Level: 4 as byte}), <extendedcrafting:trimmed:4>, <extendedcrafting:material:12>, <rebornstorage:storagepart:3>, <extendedcrafting:material:12>, <extendedcrafting:trimmed:4>, <thermalexpansion:cell>.withTag({Level: 4 as byte})]
]);

# Ultimate Ingot
mods.extendedcrafting.TableCrafting.addShapeless(0, <extendedcrafting:material:32>, 
[<ore:ingotIron>, <ore:ingotGold>, <ore:ingotCopper>, <ore:ingotTin>, <ore:ingotSilver>, <ore:ingotLead>, <ore:ingotAluminum>, <ore:ingotNickel>, <ore:ingotPlatinum>, <ore:ingotIridium>, <ore:ingotUranium>, <ore:ingotMithril>, <ore:ingotCobalt>, <ore:ingotArdite>, <ore:ingotManyullyn>, <ore:ingotSteel>, <ore:ingotElectrum>, <ore:ingotInvar>, <ore:ingotBronze>, <ore:ingotConstantan>, <ore:ingotSignalum>, <ore:ingotLumium>, <ore:ingotEnderium>, <ore:ingotManasteel>, <ore:ingotElvenElementium>, <ore:ingotTerrasteel>, <ore:gaiaIngot>, <extendedcrafting:material:36>, <extendedcrafting:material:48>, <ore:ingotAstralStarmetal>, <ore:ingotDemonicMetal>, <ore:ingotEnchantedMetal>, <ore:ingotEvilMetal>, <ore:ingotElectricalSteel>, <ore:ingotEnergeticAlloy>, <ore:ingotVibrantAlloy>, <ore:ingotRedstoneAlloy>, <ore:ingotConductiveIron>, <ore:ingotPulsatingIron>, <ore:ingotDarkSteel>, <ore:ingotSoularium>, <ore:ingotEndSteel>, <ore:ingotConstructionAlloy>, <ore:ingotBlackIron>, <ore:ingotCrystaltine>, <ore:ingotKnightslime>, <ore:ingotPigiron>, <ore:ingotAlubrass>, <ore:ingotOsmium>, <ore:ingotRefinedGlowstone>, <ore:ingotRefinedObsidian>, <industrialforegoing:pink_slime_ingot>, <ore:ingotAlumite>, <ore:ingotOsgloglas>, <ore:ingotOsmiridium>, <ore:ingotMirion>, <ore:ingotPsi>, <ore:ingotEbonyPsi>, <ore:ingotIvoryPsi>, <ore:ingotCrystalized>, <ore:ingotObsidian>, <ore:ingotSoulium>, <advanced_solar_panels:crafting:3>, <ore:ingotSupremium>, <ore:ingotSuperium>, <ore:ingotInferium>, <ore:ingotBaseEssence>, <ore:ingotInsanium>, <ore:ingotIntermedium>, <ore:ingotPrudentium>, <ore:ingotElectrumFlux>, <ore:ingotHOPGraphite>, <ore:ingotFireDragonsteel>, <ore:ingotIceDragonsteel>, <ore:ingotSyrmorite>, <ore:ingotOctine>, <ore:ingotCyanite>, <ore:ingotBlutonium>, <ore:ingotLudicrite>, <ore:ingotDraconiumAwakened>, <ore:ingotDraconium>]);

# Black Iron
var blackIron = <ore:ingotBlackIron>;
recipes.remove(blackIron);

recipes.addShapeless("Black Iron From Block", <extendedcrafting:material> * 9, [<ore:blockBlackIron>]);

recipes.addShaped("Black Iron From Nuggets", <extendedcrafting:material>, 
[
    [<ore:nuggetBlackIron>, <ore:nuggetBlackIron>, <ore:nuggetBlackIron>],
    [<ore:nuggetBlackIron>, <ore:nuggetBlackIron>, <ore:nuggetBlackIron>], 
    [<ore:nuggetBlackIron>, <ore:nuggetBlackIron>, <ore:nuggetBlackIron>]
]);

mods.thermalexpansion.InductionSmelter.addRecipe(<extendedcrafting:material> * 2, <enderio:item_alloy_ingot:6>, <immersiveengineering:material:19>, 15000);
mods.enderio.AlloySmelter.addRecipe(<extendedcrafting:material> * 2, [<enderio:item_alloy_ingot:6>, <immersiveengineering:material:19>], 15000);

# *======= Extended Crafting Table =======*

# Shaped
# Basic
//mods.extendedcrafting.TableCrafting.addShaped(tier, <output>, [[<>, <>, <>], [<>, <>, <>], [<>, <>, <>]]);  
# Advanced
//mods.extendedcrafting.TableCrafting.addShaped(tier, <output>, [[<>, <>, <>, <>, <>], [<>, <>, <>, <>, <>], [<>, <>, <>, <>, <>], [<>, <>, <>, <>, <>], [<>, <>, <>, <>, <>]]);  
# Elite
//mods.extendedcrafting.TableCrafting.addShaped(tier, <output>, [[<>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>]]);  
# Ultimate
//mods.extendedcrafting.TableCrafting.addShaped(tier, <output>, [[<>, <>, <>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>, <>, <>], [<>, <>, <>, <>, <>, <>, <>, <>, <>]]);  

# Thermal Expansion Examples
# Induction Smelter
/*
for steelIngot in oreDict.ingotSteel.items {
    mods.thermalexpansion.InductionSmelter.addRecipe(<extendedcrafting:material>, steelIngot, <minecraft:coal> * 3, 15000);
    mods.thermalexpansion.InductionSmelter.addRecipe(<extendedcrafting:material> * 3, steelIngot * 3, <minecraft:coal_block>, 15000);
}
 */