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

###################### 
#      Machines      #
######################

# Fusion Crafting Core
recipes.remove(<draconicevolution:fusion_crafting_core>);

mods.extendedcrafting.CombinationCrafting.addRecipe(<draconicevolution:fusion_crafting_core>, 500000000, 500000, <extendedcrafting:crafting_core>, 
[
    <avaritia:extreme_crafting_table>, <actuallyadditions:block_empowerer>, <quantumstorage:quantumcrafter>, <extendedcrafting:ender_crafter>, <thermalexpansion:machine:9>, <morerefinedstorage:fusion_furnace>, <draconicevolution:energy_infuser>, <minecraft:nether_star>, <extendedcrafting:material:40>, <cyclicmagic:soulstone>, <actuallyadditions:item_misc:19>, <draconicevolution:draconium_block:1>, <ore:blockMithril>, <extendedcrafting:storage:3>, <ore:blockAlumite>, <ore:blockOsmiridium>, <ore:blockOsgloglas>, <ore:blockMirion>
]);

# Mob Grinder
recipes.remove(<draconicevolution:grinder>);

recipes.addShaped(<draconicevolution:grinder>, 
[
    [<ore:ingotEndSteel>, <ore:ingotElectricalSteel>, <ore:ingotEndSteel>],
    [<cyclicmagic:crystal_sword>.anyDamage(), <industrialforegoing:mob_relocator> , <cyclicmagic:crystal_sword>.anyDamage()],
    [<enderio:item_material:13>, <draconicevolution:wyvern_core>, <enderio:item_material:13>]
]);

# Generator
recipes.remove(<draconicevolution:generator>);

recipes.addShaped(<draconicevolution:generator>, 
[
    [<ore:ingotSteel>, <draconicevolution:draconic_core>, <ore:ingotSteel>],
    [<ore:ingotSteel>, <thermalexpansion:frame> , <ore:ingotSteel>],
    [<ore:ingotSteel>, <mekanismgenerators:generator>, <ore:ingotSteel>]
]);

######################
#    Energy Core     #
######################

# Energy Core Stabilizer
recipes.remove(<draconicevolution:particle_generator:2>);

mods.extendedcrafting.TableCrafting.addShaped(0, <draconicevolution:particle_generator:2>, [
    [<ore:dustMana>, <ore:circuitUltimate>, <ore:dustMana>], 
    [<ore:circuitUltimate>, <draconicevolution:particle_generator>, <ore:circuitUltimate>], 
    [<ore:dustMana>, <ore:circuitUltimate>, <ore:dustMana>]
]);

# Energy Pylon
recipes.remove(<draconicevolution:energy_pylon>);

mods.extendedcrafting.TableCrafting.addShaped(0, <draconicevolution:energy_pylon> * 2, [
    [<ore:blockDraconium:1>, <mekanism:basicblock2:4>.withTag({tier:3}), <ore:blockDraconium:1>], 
    [<ore:circuitUltimate>, <draconicevolution:wyvern_core>, <ore:circuitUltimate>], 
    [<ore:blockDraconium:1>, <mekanism:basicblock2:4>.withTag({tier:3}), <ore:blockDraconium:1>]
]);

# Energy Core
recipes.remove(<draconicevolution:energy_storage_core>);

mods.forestry.Carpenter.addRecipe(<draconicevolution:energy_storage_core>, 
    [
        [<ore:dustMana>, <mekanism:basicblock2:3>.withTag({tier:3}), <ore:dustMana>],
        [<mekanism:basicblock2:3>.withTag({tier:3}), <draconicevolution:awakened_core>, <mekanism:basicblock2:3>.withTag({tier:3})], 
        [<ore:dustMana>, <mekanism:basicblock2:3>.withTag({tier:3}), <ore:dustMana>]
    ], 40, <liquid:mana> * 2000
);

###################### 
#       Blocks       #
######################

# Charged Draconium
mods.extendedcrafting.CombinationCrafting.addRecipe(<draconicevolution:draconium_block:1> * 2, 200000000, 400000, <draconicevolution:draconium_block>, 
[
    <draconicevolution:draconium_block>
]);

###################### 
#      Materials     #
######################

# Draconic Core
recipes.remove(<draconicevolution:draconic_core>);

mods.extendedcrafting.TableCrafting.addShaped(0, <draconicevolution:draconic_core>, [
    [<ore:ingotDraconium>, <ore:circuitAdvanced>, <ore:ingotDraconium>], 
    [<ore:itemChassiParts>, <ore:gemDiamond>, <ore:itemChassiParts>], 
    [<ore:ingotDraconium>, <ore:circuitAdvanced>, <ore:ingotDraconium>]
]);

# Wyvern Core
recipes.remove(<draconicevolution:wyvern_core>);

mods.extendedcrafting.TableCrafting.addShaped(0, <draconicevolution:wyvern_core>, [
    [<ore:ingotDraconium>, <ore:circuitUltimate>, <ore:ingotDraconium>], 
    [<draconicevolution:draconic_core>, <extendedcrafting:material:40>, <draconicevolution:draconic_core>], 
    [<ore:ingotRefinedObsidian>, <ore:circuitUltimate>, <ore:ingotRefinedObsidian>]
]);

# Wyvern Energy Core
recipes.remove(<draconicevolution:wyvern_energy_core>);

mods.forestry.Carpenter.addRecipe(<draconicevolution:wyvern_energy_core>,
    [
        [<ore:ingotDraconium>, <thermalexpansion:frame:128>, <ore:ingotDraconium>],
        [<thermalfoundation:material:515>, <draconicevolution:draconic_core>, <thermalfoundation:material:515>], 
        [<ore:ingotDraconium>, <thermalexpansion:frame:128>, <ore:ingotDraconium>]
    ],
    40, <liquid:redstone> * 5000
);

# Draconic Energy Core
recipes.remove(<draconicevolution:draconic_energy_core>);

mods.forestry.Carpenter.addRecipe(<draconicevolution:draconic_energy_core>,
    [
        [<ore:ingotDraconiumAwakened>, <draconicevolution:wyvern_energy_core>, <ore:ingotDraconiumAwakened>],
        [<draconicevolution:wyvern_energy_core>, <draconicevolution:wyvern_core>, <draconicevolution:wyvern_energy_core>], 
        [<ore:ingotDraconiumAwakened>, <draconicevolution:wyvern_energy_core>, <ore:ingotDraconiumAwakened>]
    ],
    40, <liquid:mana> * 1000
);

###################### 
#      Equipment     #
######################

# Wyvern Armor
recipes.remove(<draconicevolution:wyvern_helm>);
recipes.remove(<draconicevolution:wyvern_chest>);
recipes.remove(<draconicevolution:wyvern_legs>);
recipes.remove(<draconicevolution:wyvern_boots>);

mods.extendedcrafting.CombinationCrafting.addRecipe(<draconicevolution:wyvern_helm>, 150000000, 150000, <draconicevolution:wyvern_core>, 
[
    <redstonearsenal:armor.helmet_flux>.anyDamage(), 
    <enderio:item_end_steel_helmet>.anyDamage(), <enderio:item_dark_steel_helmet>.anyDamage(), <ic2:nano_helmet>.anyDamage(), 
    <botania:elementiumhelm>.anyDamage(), <cyclicmagic:purple_helmet>.anyDamage(), 
    <actuallyadditions:item_helm_crystal_light_blue>.anyDamage(), 
    <thebetweenlands:bone_helmet>.anyDamage(), <thebetweenlands:lurker_skin_helmet>.anyDamage(), <thebetweenlands:syrmorite_helmet>.anyDamage(), <thebetweenlands:valonite_helmet>.anyDamage(),
    <iceandfire:deathworm_white_helmet>.anyDamage(), <iceandfire:dragonsteel_fire_helmet>.anyDamage(), <iceandfire:dragonsteel_ice_helmet>.anyDamage(), 
    <draconicevolution:wyvern_energy_core>, <draconicevolution:draconium_capacitor>
]);
mods.extendedcrafting.CombinationCrafting.addRecipe(<draconicevolution:wyvern_chest>, 150000000, 150000, <draconicevolution:wyvern_core>, 
[
    <redstonearsenal:armor.plate_flux>.anyDamage(), 
    <enderio:item_end_steel_chestplate>.anyDamage(), <enderio:item_dark_steel_chestplate>.anyDamage(), <ic2:nano_chestplate>.anyDamage(), 
    <botania:elementiumchest>.anyDamage(), <cyclicmagic:purple_chestplate>.anyDamage(), 
    <actuallyadditions:item_chest_crystal_light_blue>.anyDamage(), 
    <thebetweenlands:bone_chestplate>.anyDamage(), <thebetweenlands:lurker_skin_chestplate>.anyDamage(), <thebetweenlands:syrmorite_chestplate>.anyDamage(), <thebetweenlands:valonite_chestplate>.anyDamage(),
    <iceandfire:deathworm_white_chestplate>.anyDamage(), <iceandfire:dragonsteel_fire_chestplate>.anyDamage(), <iceandfire:dragonsteel_ice_chestplate>.anyDamage(), 
    <draconicevolution:wyvern_energy_core>, <draconicevolution:draconium_capacitor>
]);
mods.extendedcrafting.CombinationCrafting.addRecipe(<draconicevolution:wyvern_legs>, 150000000, 150000, <draconicevolution:wyvern_core>, 
[
    <redstonearsenal:armor.legs_flux>.anyDamage(), 
    <enderio:item_end_steel_leggings>.anyDamage(), <enderio:item_dark_steel_leggings>.anyDamage(), <ic2:nano_leggings>.anyDamage(), 
    <botania:elementiumlegs>.anyDamage(), <cyclicmagic:purple_leggings>.anyDamage(), 
    <actuallyadditions:item_pants_crystal_light_blue>.anyDamage(), 
    <thebetweenlands:bone_leggings>.anyDamage(), <thebetweenlands:lurker_skin_leggings>.anyDamage(), <thebetweenlands:syrmorite_leggings>.anyDamage(), <thebetweenlands:valonite_leggings>.anyDamage(),
    <iceandfire:deathworm_white_leggings>.anyDamage(), <iceandfire:dragonsteel_fire_leggings>.anyDamage(), <iceandfire:dragonsteel_ice_leggings>.anyDamage(), 
    <draconicevolution:wyvern_energy_core>, <draconicevolution:draconium_capacitor>
]);
mods.extendedcrafting.CombinationCrafting.addRecipe(<draconicevolution:wyvern_boots>, 150000000, 150000, <draconicevolution:wyvern_core>, 
[
    <redstonearsenal:armor.boots_flux>.anyDamage(), 
    <enderio:item_end_steel_boots>.anyDamage(), <enderio:item_dark_steel_boots>.anyDamage(), <ic2:nano_boots>.anyDamage(), <
    botania:elementiumboots>.anyDamage(), <cyclicmagic:purple_boots>.anyDamage(), 
    <actuallyadditions:item_boots_crystal_light_blue>.anyDamage(), 
    <thebetweenlands:bone_boots>.anyDamage(), <thebetweenlands:lurker_skin_boots>.anyDamage(), <thebetweenlands:syrmorite_boots>.anyDamage(), <thebetweenlands:valonite_boots>.anyDamage(),
    <iceandfire:deathworm_white_boots>.anyDamage(), <iceandfire:dragonsteel_fire_boots>.anyDamage(), <iceandfire:dragonsteel_ice_boots>.anyDamage(), 
    <draconicevolution:wyvern_energy_core>, <draconicevolution:draconium_capacitor>
]);

# Wyvern Tools
recipes.remove(<draconicevolution:wyvern_sword>);
recipes.remove(<draconicevolution:wyvern_bow>);
recipes.remove(<draconicevolution:wyvern_pick>);
recipes.remove(<draconicevolution:wyvern_axe>);
recipes.remove(<draconicevolution:wyvern_shovel>);

mods.extendedcrafting.TableCrafting.addShaped(0, <draconicevolution:wyvern_sword>, [
    [null, null, null, <draconicevolution:draconium_block:1>, null, null, null], 
    [null, null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null, null], 
    [null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:wyvern_energy_core>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null], 
    [<draconicevolution:draconium_block:1>, <ore:itemEnhancedChassiParts>, <ore:blockMithril>, <redstonearsenal:tool.sword_flux>.anyDamage(), <ore:blockMithril>, <ore:itemEnhancedChassiParts>, <draconicevolution:draconium_block:1>], 
    [null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:wyvern_core>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null], 
    [null, null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null, null], 
    [null, null, null, <draconicevolution:draconium_block:1>, null, null, null]
]);
mods.extendedcrafting.TableCrafting.addShaped(0, <draconicevolution:wyvern_bow>, [
    [null, null, null, <draconicevolution:draconium_block:1>, null, null, null], 
    [null, null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null, null], 
    [null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:wyvern_energy_core>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null], 
    [<draconicevolution:draconium_block:1>, <ore:itemEnhancedChassiParts>, <ore:blockMithril>, <redstonearsenal:tool.bow_flux>.anyDamage(), <ore:blockMithril>, <ore:itemEnhancedChassiParts>, <draconicevolution:draconium_block:1>], 
    [null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:wyvern_core>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null], 
    [null, null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null, null], 
    [null, null, null, <draconicevolution:draconium_block:1>, null, null, null]
]);
mods.extendedcrafting.TableCrafting.addShaped(0, <draconicevolution:wyvern_pick>, [
    [null, null, null, <draconicevolution:draconium_block:1>, null, null, null], 
    [null, null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null, null], 
    [null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:wyvern_energy_core>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null], 
    [<draconicevolution:draconium_block:1>, <ore:itemEnhancedChassiParts>, <ore:blockMithril>, <redstonearsenal:tool.pickaxe_flux>.anyDamage(), <ore:blockMithril>, <ore:itemEnhancedChassiParts>, <draconicevolution:draconium_block:1>], 
    [null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:wyvern_core>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null], 
    [null, null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null, null], 
    [null, null, null, <draconicevolution:draconium_block:1>, null, null, null]
]);
mods.extendedcrafting.TableCrafting.addShaped(0, <draconicevolution:wyvern_axe>, [
    [null, null, null, <draconicevolution:draconium_block:1>, null, null, null], 
    [null, null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null, null], 
    [null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:wyvern_energy_core>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null], 
    [<draconicevolution:draconium_block:1>, <ore:itemEnhancedChassiParts>, <ore:blockMithril>, <redstonearsenal:tool.axe_flux>.anyDamage(), <ore:blockMithril>, <ore:itemEnhancedChassiParts>, <draconicevolution:draconium_block:1>], 
    [null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:wyvern_core>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null], 
    [null, null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null, null], 
    [null, null, null, <draconicevolution:draconium_block:1>, null, null, null]
]);
mods.extendedcrafting.TableCrafting.addShaped(0, <draconicevolution:wyvern_shovel>, [
    [null, null, null, <draconicevolution:draconium_block:1>, null, null, null], 
    [null, null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null, null], 
    [null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:wyvern_energy_core>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null], 
    [<draconicevolution:draconium_block:1>, <ore:itemEnhancedChassiParts>, <ore:blockMithril>, <redstonearsenal:tool.shovel_flux>.anyDamage(), <ore:blockMithril>, <ore:itemEnhancedChassiParts>, <draconicevolution:draconium_block:1>], 
    [null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:wyvern_core>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null], 
    [null, null, <draconicevolution:infused_obsidian>, <ore:itemEnhancedChassiParts>, <draconicevolution:infused_obsidian>, null, null], 
    [null, null, null, <draconicevolution:draconium_block:1>, null, null, null]
]);

# Draconic Armor
mods.extendedcrafting.CombinationCrafting.addRecipe(<draconicevolution:draconic_helm>, 1000000000, 1000000, <draconicevolution:awakened_core>, 
[
    <draconicevolution:wyvern_helm>.anyDamage(), <extrautils2:angelring>.anyDamage(), <draconicevolution:draconic_ingot>, <draconicevolution:draconic_ingot>, <draconicevolution:draconic_energy_core>, <mekanism:basicblock2:4>.withTag({tier: 3}), <extendedcrafting:material:32>, <astralsorcery:itemcape>.anyDamage()
]);
mods.extendedcrafting.CombinationCrafting.addRecipe(<draconicevolution:draconic_chest>, 1000000000, 1000000, <draconicevolution:awakened_core>,  
[
    <draconicevolution:wyvern_chest>.anyDamage(),<extrautils2:angelring>.anyDamage(), <draconicevolution:draconic_ingot>, <draconicevolution:draconic_ingot>, <draconicevolution:draconic_energy_core>, <mekanism:basicblock2:4>.withTag({tier: 3}), <extendedcrafting:material:32>, <astralsorcery:itemcape>.anyDamage()
]);
mods.extendedcrafting.CombinationCrafting.addRecipe(<draconicevolution:draconic_legs>, 1000000000, 1000000, <draconicevolution:awakened_core>, 
[
    <draconicevolution:wyvern_legs>.anyDamage(), <extrautils2:angelring>.anyDamage(), <draconicevolution:draconic_ingot>, <draconicevolution:draconic_ingot>, <draconicevolution:draconic_energy_core>, <mekanism:basicblock2:4>.withTag({tier: 3}), <extendedcrafting:material:32>, <astralsorcery:itemcape>.anyDamage()
]);
mods.extendedcrafting.CombinationCrafting.addRecipe(<draconicevolution:draconic_boots>, 1000000000, 1000000, <draconicevolution:awakened_core>, 
[
    <draconicevolution:wyvern_boots>.anyDamage(), <extrautils2:angelring>.anyDamage(), <draconicevolution:draconic_ingot>, <draconicevolution:draconic_ingot>, <draconicevolution:draconic_energy_core>, <mekanism:basicblock2:4>.withTag({tier: 3}), <extendedcrafting:material:32>, <astralsorcery:itemcape>.anyDamage()
]);