import mods.bloodmagic.Alchemy;
import minetweaker.item.IItemStack;
import mods.thaumcraft.Infusion;

val AM2Runes = [<arsmagica2:rune>,<arsmagica2:rune:14>,<arsmagica2:rune:6>,<arsmagica2:rune:3>,<arsmagica2:rune:2>,<arsmagica2:rune:13>,<arsmagica2:rune:4>,<arsmagica2:rune:8>,<arsmagica2:rune:5>,<arsmagica2:rune:12>,<arsmagica2:rune:9>,<arsmagica2:rune:16>,<arsmagica2:rune:7>,<arsmagica2:rune:10>,<arsmagica2:rune:11>,<arsmagica2:rune:15>] as IItemStack[];
val BoostedShards = [<ChromatiCraft:chromaticraft_item_shard:16>,<ChromatiCraft:chromaticraft_item_shard:17>,<ChromatiCraft:chromaticraft_item_shard:18>,<ChromatiCraft:chromaticraft_item_shard:19>,<ChromatiCraft:chromaticraft_item_shard:20>,<ChromatiCraft:chromaticraft_item_shard:21>,<ChromatiCraft:chromaticraft_item_shard:22>,<ChromatiCraft:chromaticraft_item_shard:23>,<ChromatiCraft:chromaticraft_item_shard:24>,<ChromatiCraft:chromaticraft_item_shard:25>,<ChromatiCraft:chromaticraft_item_shard:26>,<ChromatiCraft:chromaticraft_item_shard:27>,<ChromatiCraft:chromaticraft_item_shard:28>,<ChromatiCraft:chromaticraft_item_shard:29>,<ChromatiCraft:chromaticraft_item_shard:30>,<ChromatiCraft:chromaticraft_item_shard:31>] as IItemStack[];
val BotaniaRunes = [<Botania:rune:7>,<Botania:rune:4>,<Botania:rune:5>,<Botania:rune:6>,<Botania:rune:4>,<Botania:rune:4>,<Botania:rune:5>,<Botania:rune:7>,<Botania:rune:7>,<Botania:rune:6>,<Botania:rune:5>,<Botania:rune:5>,<Botania:rune:6>,<Botania:rune:4>,<Botania:rune:6>,<Botania:rune:7>] as IItemStack[];
val DemonicBlood = <witchery:ingredient:80>;
val BasicRune = <arsmagica2:rune:1>;
val ImbuedSlate = <AWWayofTime:imbuedSlate>;
val EssenceRefiner = <arsmagica2:essenceRefiner>;
val ScentedPaneling = <Forestry:craftingMaterial:6>;
val ImpregnatedStick = <Forestry:oakStick>;
val ManaDiamond = <Botania:manaResource:2>;
val BlackRune = <arsmagica2:rune>;
val RunedObsidianEarth = <Automagy:blockNetherRune>;
val CraftingAltar = <arsmagica2:CraftingAltar>;
val LightningEssence = <arsmagica2:essence:7>;
val NatureEssence = <arsmagica2:essence:5>;
val ArcaneEssence = <arsmagica2:essence>;
val IceEssence = <arsmagica2:essence:6>;
val PurifiedVinteum = <arsmagica2:itemOre:3>;
val Stone = <minecraft:stone>;
val KnightMetalIngot = <TwilightForest:item.knightMetal>;

for i,Rune in AM2Runes {
recipes.remove(Rune);
Alchemy.addRecipe(Rune, [BasicRune, BotaniaRunes[i],BoostedShards[i], DemonicBlood, ImbuedSlate], 3, 1000);
}

recipes.remove(EssenceRefiner);
recipes.addShaped(EssenceRefiner,[[ScentedPaneling,ManaDiamond,ScentedPaneling],[ImpregnatedStick,BlackRune,ImpregnatedStick],[ScentedPaneling,RunedObsidianEarth,ScentedPaneling]]);
recipes.addShaped(EssenceRefiner,[[KnightMetalIngot,ManaDiamond,KnightMetalIngot],[ImpregnatedStick,BlackRune,ImpregnatedStick],[KnightMetalIngot,RunedObsidianEarth,KnightMetalIngot]]);

recipes.remove(CraftingAltar);
Infusion.addRecipe("ASPECTS",Stone,[LightningEssence,PurifiedVinteum,NatureEssence,PurifiedVinteum,ArcaneEssence,PurifiedVinteum,IceEssence,PurifiedVinteum],"praecantatio 32, potentia 32, lux 32", CraftingAltar, 5);
