import mods.modularmachinery.RecipeBuilder;

// EZ aeternalis fuel

recipes.addShaped(<contenttweaker:essence_of_petrification>,
[[<projecte:item.pe_covalence_dust:1>, <projecte:item.pe_covalence_dust:1>, <projecte:item.pe_covalence_dust:1>],
[<projecte:item.pe_covalence_dust:1>, <contenttweaker:petrified_snake>.reuse(), <projecte:item.pe_covalence_dust:1>],
[<projecte:item.pe_covalence_dust:1>, <projecte:item.pe_covalence_dust:1>, <projecte:item.pe_covalence_dust:1>]]);

recipes.addShaped(<projecte:item.pe_fuel:2>,
[[null, <minecraft:coal_block>, null],
[<minecraft:coal_block>, <contenttweaker:essence_of_petrification>, <minecraft:coal_block>],
[null, <minecraft:coal_block>, null]]);

// EZ EMC
recipes.addShaped(<minecraft:diamond>,
[[null, <minecraft:blaze_rod>, null],
[<minecraft:blaze_rod>, <iceandfire:fire_dragon_heart>.reuse(), <minecraft:blaze_rod>],
[null, <minecraft:blaze_rod>, null]]);

// EZ fluid mana
recipes.addShaped(<contenttweaker:mana_rune>,
[[<divinerpg:liopleurodon_teeth>, <ore:blockMithril>, <divinerpg:liopleurodon_teeth>],
[<ore:blockMithril>, <aoa3:wind_rune>, <ore:blockMithril>],
[<divinerpg:liopleurodon_teeth>, <ore:blockMithril>, <divinerpg:liopleurodon_teeth>]]);

recipes.addShaped(<contenttweaker:compressed_mana_rune>,
[[<divinerpg:molten_stone>, <contenttweaker:mana_rune>, <divinerpg:molten_stone>],
[<contenttweaker:mana_rune>, <aoa3:carved_rune_power>, <contenttweaker:mana_rune>],
[<divinerpg:molten_stone>, <contenttweaker:mana_rune>, <divinerpg:molten_stone>]]);

recipes.addShaped(<contenttweaker:unfathomable_breaker>,
[[<contenttweaker:compressed_mana_rune>, <contenttweaker:compressed_mana_rune>, <contenttweaker:compressed_mana_rune>],
[<contenttweaker:compressed_mana_rune>, <erebus:antlion_egg>, <contenttweaker:compressed_mana_rune>],
[<contenttweaker:compressed_mana_rune>, <contenttweaker:compressed_mana_rune>, <contenttweaker:compressed_mana_rune>]]);

recipes.addShaped(<contenttweaker:manastone_dust>,
[[<enderio:item_alloy_ball:6>, <bewitchment:opal>, <enderio:item_alloy_ball:6>],
[<bewitchment:sanguine_cloth>, <contenttweaker:demonic_manastone>.reuse(), <bewitchment:sanguine_cloth>],
[<enderio:item_alloy_ball:6>, <bewitchment:opal>, <enderio:item_alloy_ball:6>]]);

val makemanaez = RecipeBuilder.newBuilder("makemanaez","dragonfire_forge",100);
makemanaez.addItemInput(<contenttweaker:manastone_dust>);
makemanaez.addFluidOutput(<fluid:mana>*4000);
makemanaez.build();

// EZ terrasteel
val greaterspiritgaia = RecipeBuilder.newBuilder("greaterspiritgaia","gaia_altar",400);
greaterspiritgaia.addEnergyPerTickInput(40000);
greaterspiritgaia.addItemInput(<contenttweaker:greater_gaia_spirit>);
greaterspiritgaia.addItemInput(<divinerpg:arcanium_block>*16);
greaterspiritgaia.addItemInput(<contenttweaker:everwatching_eye>*4);
greaterspiritgaia.addItemInput(<contenttweaker:dramix_skin>);
greaterspiritgaia.addItemInput(<contenttweaker:parasecta_wing>);
greaterspiritgaia.addItemOutput(<contenttweaker:gaia_tesseract>);
greaterspiritgaia.build();

recipes.addShaped(<botania:manaresource:4>*8,
[[<botania:petal>, <botania:storage:0>, <botania:petal>],
[<botania:storage:0>, <contenttweaker:terrasteel_crystal>.reuse(), <botania:storage:0>],
[<botania:petal>, <botania:storage:0>, <botania:petal>]]);

// creative mana pool

mods.extendedcrafting.TableCrafting.addShaped(<botania:pool:1>, 
[[<materialpart:sednanite:ingot>, <botania:spreader:3>, <botania:specialflower>.withTag({type: "thermalily"}), <botania:spreader:3>, <materialpart:sednanite:ingot>], 
[<botania:storage:2>, <divinerpg:dungeon_tokens>, <contenttweaker:terrasteel_crystal>, <divinerpg:dungeon_tokens>, <botania:storage:2>], 
[<botania:specialflower>.withTag({type: "gourmaryllis"}), <contenttweaker:terrasteel_crystal>, <botania:pool:3>, <contenttweaker:terrasteel_crystal>, <botania:specialflower>.withTag({type: "arcanerose"})], 
[<botania:storage:2>, <divinerpg:dungeon_tokens>, <contenttweaker:terrasteel_crystal>, <divinerpg:dungeon_tokens>, <botania:storage:2>], 
[<materialpart:sednanite:ingot>, <botania:spreader:3>, <botania:specialflower>.withTag({type: "munchdew"}), <botania:spreader:3>, <materialpart:sednanite:ingot>]]);  

// EZ mana dust

mods.bloodmagic.AlchemyArray.addRecipe(<contenttweaker:fragment_of_unraveling>, <contenttweaker:bloodmaster_block>, <bloodmagic:slate:4>, "bloodmagic:textures/models/AlchemyArrays/bindingarray.png");

mods.bloodmagic.BloodAltar.addRecipe(<contenttweaker:unstable_fragment_of_unraveling>, <contenttweaker:fragment_of_unraveling>, 4, 1000000, 5000, 10000);

recipes.addShaped(<contenttweaker:limbo_warper>,
[[<contenttweaker:unstable_fragment_of_unraveling>, <contenttweaker:unstable_fragment_of_unraveling>, <contenttweaker:unstable_fragment_of_unraveling>],
[<contenttweaker:unstable_fragment_of_unraveling>, <dimdoors:rift_blade>, <contenttweaker:unstable_fragment_of_unraveling>],
[<contenttweaker:unstable_fragment_of_unraveling>, <contenttweaker:unstable_fragment_of_unraveling>, <contenttweaker:unstable_fragment_of_unraveling>]]);

recipes.addShaped(<contenttweaker:vengeful_key>,
[[<dimdoors:unravelled_fabric>, <dimdoors:unravelled_fabric>, <dimdoors:unravelled_fabric>],
[<dimdoors:unravelled_fabric>, <contenttweaker:limbo_warper>.reuse(), <dimdoors:unravelled_fabric>],
[<dimdoors:unravelled_fabric>, <dimdoors:unravelled_fabric>, <dimdoors:unravelled_fabric>]]);

recipes.addShaped(<contenttweaker:retaliation_key>,
[[<contenttweaker:destructive_crystal_cluster>.reuse(), <bloodarsenal:blood_diamond:2>, <contenttweaker:steadfast_crystal_cluster>.reuse()],
[<bloodarsenal:blood_diamond:2>, <bloodarsenal:blood_diamond:2>, <bloodarsenal:blood_diamond:2>],
[<contenttweaker:corrosive_crystal_cluster>.reuse(), <bloodarsenal:blood_diamond:2>, <contenttweaker:vengeful_crystal_cluster>.reuse()]]);

recipes.addShaped(<bloodmagic:decorative_brick:2>,
[[<contenttweaker:destructive_crystal_cluster>.reuse(), <bloodmagic:blood_rune:7>, <contenttweaker:steadfast_crystal_cluster>.reuse()],
[<bloodmagic:blood_rune:7>, <contenttweaker:demonic_crystal_cluster>.reuse(), <bloodmagic:blood_rune:7>],
[<contenttweaker:corrosive_crystal_cluster>.reuse(), <bloodmagic:blood_rune:7>, <contenttweaker:vengeful_crystal_cluster>.reuse()]]);

recipes.addShaped(<bloodmagic:decorative_brick:3>*4,
[[null, <bloodmagic:decorative_brick:2>, null],
[<bloodmagic:decorative_brick:2>, null, <bloodmagic:decorative_brick:2>],
[null, <bloodmagic:decorative_brick:2>, null]]);

mods.bloodmagic.BloodAltar.addRecipe(<contenttweaker:forgotten_will>, <iceandfire:dread_shard>, 5, 2000000, 500, 1000);

recipes.addShaped(<thermalfoundation:material:1028>*64,
[[<minecraft:prismarine_crystals>, <minecraft:prismarine_crystals>, null],
[<minecraft:redstone>, <contenttweaker:forgotten_slime>, null],
[null, null, null]]);

recipes.addShaped(<contenttweaker:forgotten_slime>,
[[<tconstruct:edible:3>, <tconstruct:edible:3>, <tconstruct:edible:3>],
[<tconstruct:edible:3>, <contenttweaker:forgotten_will>.reuse(), <tconstruct:edible:3>],
[<tconstruct:edible:3>, <tconstruct:edible:3>, <tconstruct:edible:3>]]);

// EZ celestial manipulator

mods.bloodmagic.BloodAltar.addRecipe(<draconicevolution:celestial_manipulator>, <bloodmagic:ritual_controller:1>, 5, 3000000, 5000, 10000);

// EZ storage

recipes.addShaped(<contenttweaker:object_of_great_mass>,
[[<projectred-core:resource_item:104>, <projectred-core:resource_item:104>, <projectred-core:resource_item:104>],
[<projectred-core:resource_item:104>, <contenttweaker:soul_of_the_grand_wizard>.reuse(), <projectred-core:resource_item:104>],
[<projectred-core:resource_item:104>, <projectred-core:resource_item:104>, <projectred-core:resource_item:104>]]);

mods.immersiveengineering.MetalPress.addRecipe(<storagedrawers:upgrade_creative:0>, <contenttweaker:object_of_great_mass>, <immersiveengineering:mold:1>, 800, 1);

recipes.addShaped(<dankstorage:dank_7>,
[[<projectred-core:resource_item:104>, <storagedrawers:upgrade_creative:0>, <projectred-core:resource_item:104>],
[<storagedrawers:upgrade_creative:0>, <minecraft:chest>, <storagedrawers:upgrade_creative:0>],
[<projectred-core:resource_item:104>, <storagedrawers:upgrade_creative:0>, <projectred-core:resource_item:104>]]);

recipes.addShaped(<contenttweaker:staff_of_iceika>,
[[<divinerpg:snowflake>, <divinerpg:snowflake>, <divinerpg:snowflake>],
[<divinerpg:snowflake>, <ebwizardry:magic_crystal:2>, <divinerpg:snowflake>],
[<divinerpg:snowflake>, <divinerpg:snowflake>, <divinerpg:snowflake>]]);


// EZ dragon scales

recipes.addShapeless(<iceandfire:dragonscales_red>*3,
[<divinerpg:crab_claw>,<contenttweaker:aeldunari>.reuse()]);

recipes.addShapeless(<iceandfire:dragonscales_green>*3,
[<divinerpg:terran_shards>,<contenttweaker:aeldunari>.reuse()]);

recipes.addShapeless(<iceandfire:dragonscales_bronze>*3,
[<aoa3:chitin>,<contenttweaker:aeldunari>.reuse()]);

recipes.addShapeless(<iceandfire:dragonscales_gray>*3,
[<aoa3:rusted_iron_ingot>,<contenttweaker:aeldunari>.reuse()]);

recipes.addShapeless(<iceandfire:dragonscales_blue>*3,
[<aoa3:ice_crystal>,<contenttweaker:aeldunari>.reuse()]);

recipes.addShapeless(<iceandfire:dragonscales_white>*3,
[<aoa3:rammerhead_hide>,<contenttweaker:aeldunari>.reuse()]);

recipes.addShapeless(<iceandfire:dragonscales_sapphire>*3,
[<divinerpg:aquatic_pellets>,<contenttweaker:aeldunari>.reuse()]);

recipes.addShapeless(<iceandfire:dragonscales_silver>*3,
[<aoa3:ivory>,<contenttweaker:aeldunari>.reuse()]);