val spell1 = <lootbags:lootbag:11>;
val spell2 = <lootbags:lootbag:12>;
val spell3 = <lootbags:lootbag:13>;
val spell4 = <lootbags:lootbag:14>;
val spell5 = <lootbags:lootbag:15>;
val spell6 = <lootbags:lootbag:16>;
val spell7 = <lootbags:lootbag:17>;
val spell8 = <lootbags:lootbag:18>;

mods.thaumcraft.Research.addTab("ARS", "thaumcraft", "textures/modpack/iblue.png", "thaumcraft", "textures/modpack/bgblue.png");
game.setLocalization("en_US", "tc.research_category.ARS", "Arcane");

mods.thaumcraft.Research.addResearch("ARS_INTRODUCTION", "ARS", "potentia 20, praecantatio 25, auram 10", 11, 6, 0, <arsmagica2:ArcaneCompendium>);
game.setLocalization("en_US", "tc.research_name.ARS_INTRODUCTION", "Magica");
game.setLocalization("en_US", "tc.research_text.ARS_INTRODUCTION", "[AoB][AM2] A magical world");
mods.thaumcraft.Research.addPage("ARS_INTRODUCTION", "AgeOfBewitchment.research_page.ARS_INTRO-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_INTRO-1", "Thaumaturgy is not the only form of magic. There are many more waiting to be discovered by a skilled magus. This form of magic is called Arcane. Arcane magic focuses around spellmaking and some small utilities. <BR>Because this is another type of magic, you will need another book to guide you. It is called the Arcane compendium. To obtain one, you have to place a book in an item fram above a pool of etherium. The Arcane compendium will unlock new chapters as you progress through Ars Magica 2 while carrying it with you.");
mods.thaumcraft.Research.addPage("ARS_INTRODUCTION", "AgeOfBewitchment.research_page.AC1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.AC1", "<IMG>thaumcraft:textures/modpack/Ars/AC1.png:0:0:255:255:0.5</IMG>");
mods.thaumcraft.Research.addPage("ARS_INTRODUCTION", "AgeOfBewitchment.research_page.AC2");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.AC2", "<IMG>thaumcraft:textures/modpack/Ars/AC2.png:0:0:255:255:0.5</IMG>");
mods.thaumcraft.Research.addPage("ARS_INTRODUCTION", "AgeOfBewitchment.research_page.AC3");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.AC3", "<IMG>thaumcraft:textures/modpack/Ars/AC4.png:0:0:255:255:0.5</IMG>");
mods.thaumcraft.Research.addPage("ARS_INTRODUCTION", "AgeOfBewitchment.research_page.AC4");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.AC4", "<IMG>thaumcraft:textures/modpack/Ars/AC3.png:0:0:255:255:0.5</IMG>");
mods.thaumcraft.Research.setRound("ARS_INTRODUCTION", true);
mods.thaumcraft.Research.setStub("ARS_INTRODUCTION", true);
mods.thaumcraft.Research.setAutoUnlock("ARS_INTRODUCTION", true);

mods.thaumcraft.Research.addResearch("ARS_ORES", "ARS", "praecantatio 4, terra 5, perfodio 3, metallum 4, vitreus 4", 11, 5, 0, <arsmagica2:vinteumOre>);
game.setLocalization("en_US", "tc.research_name.ARS_ORES", "Arcane minerals");
game.setLocalization("en_US", "tc.research_text.ARS_ORES", "[AoB][AM2] Harvesting the underground magic");
mods.thaumcraft.Research.addPage("ARS_ORES", "AgeOfBewitchment.research_page.ARS_ORES-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_ORES-1", "Some of the materials which are required for Arcane magic can only be found underground. These are: Vinteum, Chimerite and Blue Topaz. There are also sunstones which rarely spawn near lava especially in the nether and moonstones which randomly fall from the sky near mages. <BR>All of them can be made using stone and some aspects but this method is not meant to be used frequently.");
mods.thaumcraft.Research.addCruciblePage("ARS_ORES", <arsmagica2:vinteumOre>);
mods.thaumcraft.Research.addCruciblePage("ARS_ORES", <arsmagica2:vinteumOre:1>);
mods.thaumcraft.Research.addCruciblePage("ARS_ORES", <arsmagica2:vinteumOre:2>);
mods.thaumcraft.Research.addCruciblePage("ARS_ORES", <arsmagica2:vinteumOre:3>);
mods.thaumcraft.Research.addCruciblePage("ARS_ORES", <arsmagica2:vinteumOre:4>);
mods.thaumcraft.Research.setSecondary("ARS_ORES", true);
mods.thaumcraft.Research.addPrereq("ARS_ORES", "ARS_INTRODUCTION", false);

mods.thaumcraft.Research.addResearch("ARS_GEN", "ARS", "praecantatio 4, terra 5, herba 7, aqua 5", 12, 6, 0, <arsmagica2:blueOrchid>);
game.setLocalization("en_US", "tc.research_name.ARS_GEN", "Arcane herbs");
game.setLocalization("en_US", "tc.research_text.ARS_GEN", "[AoB][AM2] Collecting magical plants");
mods.thaumcraft.Research.addPage("ARS_GEN", "AgeOfBewitchment.research_page.ARS_GEN-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_GEN-1", "Some of the basic materials needed for Arcane magic can be found simply by traveling around the world. These are: <BR>-Cerublossom: Spawns like a flower <BR>-Aum: Spawns like a flower <BR>-Tarma Root: Spawns underground <BR>-Desert Nova: Spawns in deserts <BR>-Wakebloom: Spawns like lilypads <BR>-Witchwood: A kind of tree that can spawn randomly in the world or in witchwood forests");
mods.thaumcraft.Research.addCruciblePage("ARS_GEN", <arsmagica2:blueOrchid>);
mods.thaumcraft.Research.addCruciblePage("ARS_GEN", <arsmagica2:Aum>);
mods.thaumcraft.Research.addCruciblePage("ARS_GEN", <arsmagica2:TarmaRoot>);
mods.thaumcraft.Research.addCruciblePage("ARS_GEN", <arsmagica2:desertNova>);
mods.thaumcraft.Research.addCruciblePage("ARS_GEN", <arsmagica2:wakebloom>);
mods.thaumcraft.Research.addCruciblePage("ARS_GEN", <arsmagica2:saplingWitchwood>);
mods.thaumcraft.Research.addCruciblePage("ARS_GEN", <evilcraft:darkTank>.withTag({darkTank: {FluidName: "liquidessence", Amount: 16000}, tankCapacity: 16000}));
mods.thaumcraft.Research.setSecondary("ARS_GEN", true);
mods.thaumcraft.Research.addPrereq("ARS_GEN", "ARS_INTRODUCTION", false);

mods.thaumcraft.Research.addResearch("ARS_SPELL1", "ARS", "praecantatio 5, potentia 5", 6, 6, 0, <arsmagica2:spellBase:106>);
game.setLocalization("en_US", "tc.research_name.ARS_SPELL1", "Arcane Arrow");
game.setLocalization("en_US", "tc.research_text.ARS_SPELL1", "[AoB][AM2] (Arcane bow not included!)");
mods.thaumcraft.Research.addPage("ARS_SPELL1", "AgeOfBewitchment.research_page.ARS_SPELL1-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_SPELL1-1", "A simple spell which helps beginner arcanists deal with their problems.");
mods.thaumcraft.Research.addInfusionPage("ARS_SPELL1", spell1);
mods.thaumcraft.Research.addPrereq("ARS_SPELL1", "INFUSION", true);
mods.thaumcraft.Research.setSecondary("ARS_SPELL1", true);

mods.thaumcraft.Research.addResearch("ARS_SPELL2", "ARS", "praecantatio 5, ignis 10", 7, 6, 0, <arsmagica2:spellBase:79>);
game.setLocalization("en_US", "tc.research_name.ARS_SPELL2", "Flaming Grenade");
game.setLocalization("en_US", "tc.research_text.ARS_SPELL2", "[AoB][AM2] Can also be used as a lighter!");
mods.thaumcraft.Research.addPage("ARS_SPELL2", "AgeOfBewitchment.research_page.ARS_SPELL2-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_SPELL2-1", "Fires a tiny spark which ignites a small area around its landing spot. Anything caught in that area will receive additional fire damage.");
mods.thaumcraft.Research.addInfusionPage("ARS_SPELL2", spell2);
mods.thaumcraft.Research.addPrereq("ARS_SPELL2", "INFUSION", true);
mods.thaumcraft.Research.addPrereq("ARS_SPELL2", "ALUMENTUM", true);
mods.thaumcraft.Research.setSecondary("ARS_SPELL2", true);

mods.thaumcraft.Research.addResearch("ARS_SPELL3", "ARS", "praecantatio 5, aer 10, potentia 5", 8, 6, 0, <arsmagica2:spellBase:45>);
game.setLocalization("en_US", "tc.research_name.ARS_SPELL3", "Mage's Uppercut");
game.setLocalization("en_US", "tc.research_text.ARS_SPELL3", "[AoB][AM2] Sometimes, you just need to get physical...");
mods.thaumcraft.Research.addPage("ARS_SPELL3", "AgeOfBewitchment.research_page.ARS_SPELL3-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_SPELL3-1", "Some times even mages need to get physical. This spell helps the user punch their enemy with incredible force, sending them flying into the air and then falling to their doom.");
mods.thaumcraft.Research.addInfusionPage("ARS_SPELL3", spell3);
mods.thaumcraft.Research.addPrereq("ARS_SPELL3", "INFUSION", true);
mods.thaumcraft.Research.setSecondary("ARS_SPELL3", true);

mods.thaumcraft.Research.addResearch("ARS_SPELL4", "ARS", "praecantatio 5, tempestas 10, motus 5", 9, 6, 0, <arsmagica2:spellBase:385>);
game.setLocalization("en_US", "tc.research_name.ARS_SPELL4", "Electric Charge");
game.setLocalization("en_US", "tc.research_text.ARS_SPELL4", "[AoB][AM2] Vroom vroom!");
mods.thaumcraft.Research.addPage("ARS_SPELL4", "AgeOfBewitchment.research_page.ARS_SPELL4-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_SPELL4-1", "A very useful tool for all who like to traverse the world. This spell gives the user a *small* shock which increases their physical abilities for a short while.");
mods.thaumcraft.Research.addInfusionPage("ARS_SPELL4", spell4);
mods.thaumcraft.Research.addPrereq("ARS_SPELL4", "INFUSION", true);
mods.thaumcraft.Research.addPrereq("ARS_SPELL4", "ELECTRUM", true);
mods.thaumcraft.Research.setSecondary("ARS_SPELL4", true);

mods.thaumcraft.Research.addResearch("ARS_SPELL5", "ARS", "praecantatio 10, herba 5, sano 5, tutamen 5", 6, 7, 0, <arsmagica2:spellBase:269>);
game.setLocalization("en_US", "tc.research_name.ARS_SPELL5", "Sanctuary");
game.setLocalization("en_US", "tc.research_text.ARS_SPELL5", "[AoB][AM2] Everyone is safe here!");
mods.thaumcraft.Research.addPage("ARS_SPELL5", "AgeOfBewitchment.research_page.ARS_SPELL5-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_SPELL5-1", "Creates a vine-covered zone around the user. Any entity caught inside will become entangled by the vines, while also receiving a regeneration and a protective buff.");
mods.thaumcraft.Research.addInfusionPage("ARS_SPELL5", spell5);
mods.thaumcraft.Research.addPrereq("ARS_SPELL5", "INFUSION", true);
mods.thaumcraft.Research.addPrereq("ARS_SPELL5", "ARS_WALL", true);
mods.thaumcraft.Research.setSecondary("ARS_SPELL5", true);

mods.thaumcraft.Research.addResearch("ARS_SPELL6", "ARS", "praecantatio 5, gelum 10, aqua 2, potentia 2", 7, 7, 0, <arsmagica2:spellBase:16>);
game.setLocalization("en_US", "tc.research_name.ARS_SPELL6", "Freeze Beam");
game.setLocalization("en_US", "tc.research_text.ARS_SPELL6", "[AoB][AM2] To keep enemies and water at bay!");
mods.thaumcraft.Research.addPage("ARS_SPELL6", "AgeOfBewitchment.research_page.ARS_SPELL6-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_SPELL6-1", "A continuous stream of magic which freezes anything near its end point, and causes all entities to sink in water.");
mods.thaumcraft.Research.addInfusionPage("ARS_SPELL6", spell6);
mods.thaumcraft.Research.addPrereq("ARS_SPELL6", "INFUSION", true);
mods.thaumcraft.Research.setSecondary("ARS_SPELL6", true);

mods.thaumcraft.Research.addResearch("ARS_SPELL7", "ARS", "praecantatio 10, tempestas 5, aer 15, vinculum 5", 8, 7, 0, <arsmagica2:spellBase:10>);
game.setLocalization("en_US", "tc.research_name.ARS_SPELL7", "Whirlwind");
game.setLocalization("en_US", "tc.research_text.ARS_SPELL7", "[AoB][AM2] Just like a big trampoline!");
mods.thaumcraft.Research.addPage("ARS_SPELL7", "AgeOfBewitchment.research_page.ARS_SPELL7-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_SPELL7-1", "Creates a medium-sized area in which everything is knocked up high into the air, and then descends gracefully.");
mods.thaumcraft.Research.setSecondary("ARS_SPELL7", true);
mods.thaumcraft.Research.addPrereq("ARS_SPELL7", "INFUSION", true);
mods.thaumcraft.Research.addInfusionPage("ARS_SPELL7", spell7);

mods.thaumcraft.Research.addResearch("ARS_SPELL8", "ARS", "praecantatio 10, tempestas 5, aer 15, vinculum 5", 9, 7, 0, <arsmagica2:spellBase:396>);
game.setLocalization("en_US", "tc.research_name.ARS_SPELL8", "Distortion Wave");
game.setLocalization("en_US", "tc.research_text.ARS_SPELL8", "[AoB][AM2] Your personal personal space creator!");
mods.thaumcraft.Research.addPage("ARS_SPELL8", "AgeOfBewitchment.research_page.ARS_SPELL8-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_SPELL8-1", "Sends out a wave of ender-infused magic, causing all entities hit to be randomly teleported and/or be knocked back.");
mods.thaumcraft.Research.setSecondary("ARS_SPELL8", true);
mods.thaumcraft.Research.addPrereq("ARS_SPELL8", "INFUSION", true);
mods.thaumcraft.Research.addInfusionPage("ARS_SPELL8", spell8);

mods.thaumcraft.Research.addResearch("ARS_CRYSTALS", "ARS", "praecantatio 5, potentia 10, machina 10, instrumentum 8", 11, 3, 1, <arsmagica2:crystalMarker:3>);
game.setLocalization("en_US", "tc.research_name.ARS_CRYSTALS", "Arcane systems");
game.setLocalization("en_US", "tc.research_text.ARS_CRYSTALS", "[AoB][AM2] Item transportation");
mods.thaumcraft.Research.addPage("ARS_CRYSTALS", "AgeOfBewitchment.research_page.ARS_CRYSTALS-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_CRYSTALS-1", "Crystals are a very useful tool which can be used for many things such as sorting and automation. For more information, refer to the Arcane compendium. The chapter should be unlocked once you craft them.");
mods.thaumcraft.Research.addCraftingPage("ARS_CRYSTALS", <arsmagica2:crystalMarker>);
mods.thaumcraft.Research.addCraftingPage("ARS_CRYSTALS", <arsmagica2:crystalMarker:1>);
mods.thaumcraft.Research.addCraftingPage("ARS_CRYSTALS", <arsmagica2:crystalMarker:2>);
mods.thaumcraft.Research.addCraftingPage("ARS_CRYSTALS", <arsmagica2:crystalMarker:3>);
mods.thaumcraft.Research.addCraftingPage("ARS_CRYSTALS", <arsmagica2:crystalMarker:4>);
mods.thaumcraft.Research.addCraftingPage("ARS_CRYSTALS", <arsmagica2:crystalMarker:5>);
mods.thaumcraft.Research.addCraftingPage("ARS_CRYSTALS", <arsmagica2:crystalMarker:6>);
mods.thaumcraft.Research.addCraftingPage("ARS_CRYSTALS", <arsmagica2:crystalMarker:7>);
mods.thaumcraft.Research.addCraftingPage("ARS_CRYSTALS", <arsmagica2:crystalMarker:8>);
mods.thaumcraft.Research.addPrereq("ARS_CRYSTALS", "ARS_ORES", false);
mods.thaumcraft.Research.setConcealed("ARS_CRYSTALS", true);

mods.thaumcraft.Research.addResearch("ARS_OCCULUS", "ARS", "cognitio 5, potentia 10, sensus 10, praecantatio 15, superbia 5", 5, 4, 3, <arsmagica2:occulus>);
game.setLocalization("en_US", "tc.research_name.ARS_OCCULUS", "The occulus");
game.setLocalization("en_US", "tc.research_text.ARS_OCCULUS", "[AoB][AM2] Unlocking your true potential...");
mods.thaumcraft.Research.addPage("ARS_OCCULUS", "AgeOfBewitchment.research_page.ARS_OCCULUS-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_OCCULUS-1", "One day, you heard a gentle voice whispering into your ears. It was telling you how to unlock the secrets of the Arcane. <BR>The occulus is an essential tool for every mage. It allows mages to unlock pieces of knowledge which can be turned into spells. For more information refer to the Arcane compendium.");
mods.thaumcraft.Research.addArcanePage("ARS_OCCULUS", <arsmagica2:occulus>);
mods.thaumcraft.Research.addPrereq("ARS_OCCULUS", "ARS_INTRODUCTION", false);
mods.thaumcraft.Research.setSpikey("ARS_OCCULUS", true);
mods.thaumcraft.Warp.addToResearch("ARS_OCCULUS", 1);
mods.thaumcraft.Research.setConcealed("ARS_OCCULUS", true);

mods.thaumcraft.Research.addResearch("ARS_TABLE", "ARS", "cognitio 10, praecantatio 10, fabrico 20", 4, 6, 2, <arsmagica2:InscriptionTable>);
game.setLocalization("en_US", "tc.research_name.ARS_TABLE", "Inscription Table");
game.setLocalization("en_US", "tc.research_text.ARS_TABLE", "[AoB][AM2] Writing spells");
mods.thaumcraft.Research.addPage("ARS_TABLE", "AgeOfBewitchment.research_page.ARS_TABLE-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_TABLE-1", "If you have studied enough using the occulus, you should be able to write your first functional spell. Inside the inscription table, place a square shaped spell component in the left square space, then place an octagonal shaped component in the grey rectangular space at the bottom. This is the basic spell recipe. You can add modifers (The diamond shaped components) after every other component to increase its power. To finalyze the spell recipe, give it a name (optional) and place a book and quill in the item slot. For more information refer to the Arcane compendium.");
mods.thaumcraft.Research.addArcanePage("ARS_TABLE", <arsmagica2:InscriptionTable>);
mods.thaumcraft.Research.addPrereq("ARS_TABLE", "ARS_OCCULUS", false);
mods.thaumcraft.Research.setConcealed("ARS_TABLE", true);

mods.thaumcraft.Research.addResearch("ARS_ALTAR", "ARS", "cognitio 10, praecantatio 10, fabrico 20, potentia 10", 3, 8, 2, <arsmagica2:CraftingAltar>);
game.setLocalization("en_US", "tc.research_name.ARS_ALTAR", "Crafting altar");
game.setLocalization("en_US", "tc.research_text.ARS_ALTAR", "[AoB][AM2] Turning text into spells");
mods.thaumcraft.Research.addPage("ARS_ALTAR", "AgeOfBewitchment.research_page.ARS_ALTAR-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_ALTAR-1", "The crafting altar must be placed in the correct spot in a multiblock structure (See Arcane compendium). It has the power to turn a spell recipe into a functional spell if you provide it whith the required materials and essence. A spell recipe has all of the required materials writen in it. <BR>To start this process, place the spell recipe in the lectern and throw a blank rune at the center of the altar. Then, start throwing every item that is being displayed on top of the book. If the book displays magical sparks, make sure to link the altar to an essence source and activate the lever.");
mods.thaumcraft.Research.addArcanePage("ARS_ALTAR", <arsmagica2:CraftingAltar>);
mods.thaumcraft.Research.addArcanePage("ARS_ALTAR", <arsmagica2:blockLectern>);
mods.thaumcraft.Research.addArcanePage("ARS_ALTAR", <arsmagica2:spellParchment>);
mods.thaumcraft.Research.addPrereq("ARS_ALTAR", "ARS_TABLE", false);
mods.thaumcraft.Research.addPrereq("ARS_ALTAR", "ARS_WALL", false);
mods.thaumcraft.Research.addPrereq("ARS_ALTAR", "ARS_OBELISK", false);
mods.thaumcraft.Research.setConcealed("ARS_ALTAR", true);

mods.thaumcraft.Research.addResearch("ARS_WALL", "ARS", "sensus 5, potentia 10, praecantatio 1", 10, 8, 2, <arsmagica2:magicWall>);
game.setLocalization("en_US", "tc.research_name.ARS_WALL", "Magic Wall");
game.setLocalization("en_US", "tc.research_text.ARS_WALL", "[AoB][AM2] Not that magical...");
mods.thaumcraft.Research.addPage("ARS_WALL", "AgeOfBewitchment.research_page.ARS_WALL-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_WALL-1", "Magic walls are non-solid, semi-transparent blocks which are used to make crafting altars. <BR>They are also a nice replacement for regular glass.");
mods.thaumcraft.Research.addArcanePage("ARS_WALL", <arsmagica2:magicWall>);
mods.thaumcraft.Research.addPrereq("ARS_WALL", "ARS_INTRODUCTION", false);
mods.thaumcraft.Research.setSecondary("ARS_WALL", true);

mods.thaumcraft.Research.addResearch("ARS_OBELISK", "ARS", "auram 20, potentia 10, praecantatio 10", 12, 10, 1, <arsmagica2:obelisk>);
game.setLocalization("en_US", "tc.research_name.ARS_OBELISK", "Obelisk");
game.setLocalization("en_US", "tc.research_text.ARS_OBELISK", "[AoB][AM2] Essence source");
mods.thaumcraft.Research.addPage("ARS_OBELISK", "AgeOfBewitchment.research_page.ARS_OBELISK-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_OBELISK-1", "Obelisks are capable of generating essence which is similar to a mage's mana. Essence has many different uses, mainly powering arcane devices. The obelisk will only accept vinteum dust and buckets of liquid etherium. <BR>There are three different types of essence: Neutral (from obelisk), Dark (fromblack aurem) and Light (from celestial prisms). <BR>*Essence is the old name of etherium. It is currently called etherium.");
mods.thaumcraft.Research.addInfusionPage("ARS_OBELISK", <arsmagica2:obelisk>);
mods.thaumcraft.Research.addPrereq("ARS_OBELISK", "ARS_INTRODUCTION", false);
mods.thaumcraft.Research.addPrereq("ARS_OBELISK", "ATTUNEDSTONE", true);
mods.thaumcraft.Research.setSpikey("ARS_OBELISK", true);

mods.thaumcraft.Research.addResearch("ARS_CANDLES", "ARS", "auram 5, ignis 10, praecantatio 10", 9, 11, 1, <arsmagica2:wardingCandle>);
game.setLocalization("en_US", "tc.research_name.ARS_CANDLES", "Warding candles");
game.setLocalization("en_US", "tc.research_text.ARS_CANDLES", "[AoB][AM2] Casting rituals");
mods.thaumcraft.Research.addPage("ARS_CANDLES", "AgeOfBewitchment.research_page.ARS_CANDLES-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_CANDLES-1", "Warding candles can be used to perform rituals that turn obelisks to either celestial prisms or dark aurems (For more information about the rituals, read the Arcane compendium). <BR>Celestial prisms generate light etherium by being exposed to sunlight. <BR>Dark aurems produce dark etherium by killing nearby mobs and draining their life (players excluded).");
mods.thaumcraft.Research.addArcanePage("ARS_CANDLES", <arsmagica2:wardingCandle>);
mods.thaumcraft.Research.addPrereq("ARS_CANDLES", "ARS_OBELISK", false);
mods.thaumcraft.Research.setSecondary("ARS_CANDLES", true);
mods.thaumcraft.Research.setConcealed("ARS_CANDLES", true);

mods.thaumcraft.Research.addResearch("ARS_FOCUS", "ARS", "vacuos 10, cognitio 5, vitreus 5, ordo 20", 9, 3, 3, <arsmagica2:lesserFocus>);
game.setLocalization("en_US", "tc.research_name.ARS_FOCUS", "Foci");
game.setLocalization("en_US", "tc.research_text.ARS_FOCUS", "[AoB][AM2] Stay focused!");
mods.thaumcraft.Research.addPage("ARS_FOCUS", "AgeOfBewitchment.research_page.ARS_FOCUS-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_FOCUS-1", "Foci can be used to make Arcane machines function a bit differently. For more information refer to the Arcane compendium.");
mods.thaumcraft.Research.addArcanePage("ARS_FOCUS", <arsmagica2:lesserFocus>);
mods.thaumcraft.Research.addCraftingPage("ARS_FOCUS", <arsmagica2:standardFocus>);
mods.thaumcraft.Research.addCraftingPage("ARS_FOCUS", <arsmagica2:greaterFocus>);
mods.thaumcraft.Research.addCraftingPage("ARS_FOCUS", <arsmagica2:manaFocus>);
mods.thaumcraft.Research.addCraftingPage("ARS_FOCUS", <arsmagica2:chargeFocus>);
mods.thaumcraft.Research.addCraftingPage("ARS_FOCUS", <arsmagica2:playerFocus>);
mods.thaumcraft.Research.addCraftingPage("ARS_FOCUS", <arsmagica2:mobFocus>);
mods.thaumcraft.Research.addCraftingPage("ARS_FOCUS", <arsmagica2:itemFocus>);
mods.thaumcraft.Research.addCraftingPage("ARS_FOCUS", <arsmagica2:creatureFocus>);
mods.thaumcraft.Research.addPrereq("ARS_FOCUS", "ARS_ORES", false);
mods.thaumcraft.Research.setSecondary("ARS_FOCUS", true);
mods.thaumcraft.Research.setConcealed("ARS_FOCUS", true);

mods.thaumcraft.Research.addResearch("ARS_KEYSTONE", "ARS", "machina 5, praecantatio 10, ordo 8", 14, 9, 4, <arsmagica2:keystone>);
game.setLocalization("en_US", "tc.research_name.ARS_KEYSTONE", "Keystones");
game.setLocalization("en_US", "tc.research_text.ARS_KEYSTONE", "[AoB][AM2] Magical keys");
mods.thaumcraft.Research.addPage("ARS_KEYSTONE", "AgeOfBewitchment.research_page.ARS_KEYSTONE-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_KEYSTONE-1", "Keystones can be used to unlock any arcane machine but only if you know the rune combination. To lock a machine, simply put the rune combination of your choice in the top three slots (This will not consume the runes). If you close the machine interface, it will be locked and you will not be able to break it unless you have a keystone with the same rune combination in your inventory.");
mods.thaumcraft.Research.addArcanePage("ARS_KEYSTONE", <arsmagica2:keystone>);
mods.thaumcraft.Research.addPrereq("ARS_KEYSTONE", "ARS_WRENCH", false);
mods.thaumcraft.Research.setSecondary("ARS_KEYSTONE", true);
mods.thaumcraft.Research.setConcealed("ARS_KEYSTONE", true);

mods.thaumcraft.Research.addResearch("ARS_GATEWAY", "ARS", "potentia 8, praecantatio 10, iter 20, desidia 4, lux 3", 15, 7, 4, <arsmagica2:keystoneReceptacle>);
game.setLocalization("en_US", "tc.research_name.ARS_GATEWAY", "Gateways");
game.setLocalization("en_US", "tc.research_text.ARS_GATEWAY", "[AoB][AM2] Another way of traveling");
mods.thaumcraft.Research.addPage("ARS_GATEWAY", "AgeOfBewitchment.research_page.ARS_GATEWAY-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_GATEWAY-1", "With the use of keystone receptacles, you are able to create gateways, small portals which allow entities to travel from one to another with the cost of etherium. More blocks between the two gateways = greater etherium cost.");
mods.thaumcraft.Research.addInfusionPage("ARS_GATEWAY", <arsmagica2:keystoneReceptacle>);
mods.thaumcraft.Research.addCraftingPage("ARS_GATEWAY", <arsmagica2:keystone>);
mods.thaumcraft.Research.addPrereq("ARS_GATEWAY", "ARS_KEYSTONE", false);
mods.thaumcraft.Research.addPrereq("ARS_GATEWAY", "PAVETRAVEL", true);
mods.thaumcraft.Research.setConcealed("ARS_GATEWAY", true);

mods.thaumcraft.Research.addResearch("ARS_KEYSTONECHEST", "ARS", "vacuos 10, praecantatio 5, terra 10", 16, 5, 1, <arsmagica2:keystoneChest>);
game.setLocalization("en_US", "tc.research_name.ARS_KEYSTONECHEST", "Keystone Chests");
game.setLocalization("en_US", "tc.research_text.ARS_KEYSTONECHEST", "[AoB][AM2] Keystone storage");
mods.thaumcraft.Research.addPage("ARS_KEYSTONECHEST", "AgeOfBewitchment.research_page.ARS_KEYSTONECHEST-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_KEYSTONECHEST-1", "Keystones chests can be locked simply by placing a combination of coloured runes in the top three slots of it. It can be opened only by mages who are holding a keystone with the same rune combination. It makes for a good safe.");
mods.thaumcraft.Research.addArcanePage("ARS_KEYSTONECHEST", <arsmagica2:keystoneChest>);
mods.thaumcraft.Research.addCraftingPage("ARS_KEYSTONECHEST", <arsmagica2:keystone>);
mods.thaumcraft.Research.addPrereq("ARS_KEYSTONECHEST", "ARS_GATEWAY", false);
mods.thaumcraft.Research.setConcealed("ARS_KEYSTONECHEST", true);

mods.thaumcraft.Research.addResearch("ARS_WRENCH", "ARS", "instrumentum 5, praecantatio 2, ordo 3", 12, 13, 1, <arsmagica2:crystal_wrench>);
game.setLocalization("en_US", "tc.research_name.ARS_WRENCH", "Magic tools");
game.setLocalization("en_US", "tc.research_text.ARS_WRENCH", "[AoB][AM2] Essential!!!");
mods.thaumcraft.Research.addPage("ARS_WRENCH", "AgeOfBewitchment.research_page.ARS_WRENCH-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_WRENCH-1", "Crystal wrenches can be used to link an etherium source to wherever it is needed. Simply right-click the source and then the recieving block. For more information refer to the Arcane compendium.");
mods.thaumcraft.Research.addArcanePage("ARS_WRENCH", <arsmagica2:crystal_wrench>);
mods.thaumcraft.Research.addPage("ARS_WRENCH", "AgeOfBewitchment.research_page.ARS_WRENCH-2");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_WRENCH-2", "Another very useful tool, is the magitech's staff. It is used to measure how much etherium is sotred within a block. Although not necessary, it is good to have one.");
mods.thaumcraft.Research.addArcanePage("ARS_WRENCH", <arsmagica2:magitechStaff>);
mods.thaumcraft.Research.addPage("ARS_WRENCH", "AgeOfBewitchment.research_page.ARS_WRENCH-3");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_WRENCH-3", "In case you don't want to carry the magitech's staff, you can always wear a pair of magitech goggles which have the same effect as the magitech's staff when you are wearing them.");
mods.thaumcraft.Research.addArcanePage("ARS_WRENCH", <arsmagica2:magitechGoggles>);
mods.thaumcraft.Research.addPrereq("ARS_WRENCH", "ARS_OBELISK", false);
mods.thaumcraft.Research.setSecondary("ARS_WRENCH", true);
mods.thaumcraft.Research.setConcealed("ARS_WRENCH", true);

mods.thaumcraft.Research.addResearch("ARS_MANABATTERY", "ARS", "potentia 10, praecantatio 13, vacuos 20", 16, 13, 1, <arsmagica2:manaBattery>);
game.setLocalization("en_US", "tc.research_name.ARS_MANABATTERY", "Mana battery");
game.setLocalization("en_US", "tc.research_text.ARS_MANABATTERY", "[AoB][AM2] Etherium storage");
mods.thaumcraft.Research.addPage("ARS_MANABATTERY", "AgeOfBewitchment.research_page.ARS_MANABATTERY-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_MANABATTERY-1", "You have started to notice that etherium generators can't hold much etherium so you solved this problem simply by creating a block that is capable of storing etherium and then redirecting it. <BR>Mana batteries can store every kind of etherium. Link one ore more generators to them and they will begin storing etherium. Then, link the batteries to your arcane machines in order to power them.");
mods.thaumcraft.Research.addArcanePage("ARS_MANABATTERY", <arsmagica2:manaBattery>);
mods.thaumcraft.Research.addPrereq("ARS_MANABATTERY", "ARS_WRENCH", false);
mods.thaumcraft.Research.setConcealed("ARS_MANABATTERY", true);

mods.thaumcraft.Research.addResearch("ARS_ETHERIUMTRANSPORTATION", "ARS", "auram 10, potentia 10, praecantatio 10", 12, 16, 1, <arsmagica2:essenceConduit>);
game.setLocalization("en_US", "tc.research_name.ARS_ETHERIUMTRANSPORTATION", "Etherium Conduits");
game.setLocalization("en_US", "tc.research_text.ARS_ETHERIUMTRANSPORTATION", "[AoB][AM2] Transporting etherium");
mods.thaumcraft.Research.addPage("ARS_ETHERIUMTRANSPORTATION", "AgeOfBewitchment.research_page.ARS_ETHERIUMTRANSPORTATION-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_ETHERIUMTRANSPORTATION-1", "After a bit of research, you have finally discovered a way to move etherium by combining your thaumic knowledge on arcane stone, silver, vinteum dust and some blue topaz. <BR>Etherium conduits are capable of extending the radius of eny etherium source. Each conduit will exted the range by 10 blocks. Make a chain of etherium conduits and then link the etherium source with the reciever, there is no need to link each etherium conduit.");
mods.thaumcraft.Research.addArcanePage("ARS_ETHERIUMTRANSPORTATION", <arsmagica2:essenceConduit>);
mods.thaumcraft.Research.addPrereq("ARS_ETHERIUMTRANSPORTATION", "ARS_WRENCH", false);
mods.thaumcraft.Research.addPrereq("ARS_ETHERIUMTRANSPORTATION", "ARCANESTONE", true);
mods.thaumcraft.Research.setSpikey("ARS_ETHERIUMTRANSPORTATION", true);
mods.thaumcraft.Research.setConcealed("ARS_ETHERIUMTRANSPORTATION", true);

mods.thaumcraft.Research.addResearch("ARS_CALEFACTOR", "ARS", "ignis 20, praecantatio 10, permutatio 8, machina 8", 10, 18, 1, <arsmagica2:calefactor>);
game.setLocalization("en_US", "tc.research_name.ARS_CALEFACTOR", "Crystal ");
game.setLocalization("en_US", "tc.research_text.ARS_CALEFACTOR", "[AoB][AM2] Arcane smelter");
mods.thaumcraft.Research.addPage("ARS_CALEFACTOR", "AgeOfBewitchment.research_page.ARS_CALEFACTOR-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_CALEFACTOR-1", "Calefactors are the arcane counterpart of furnaces. They run on etherium instead of coal and they can be upgraded with foci. It can be powered with any type of etherium but when it is being powered by all three types, it will consume more etherium and double the output.");
mods.thaumcraft.Research.addArcanePage("ARS_CALEFACTOR", <arsmagica2:calefactor>);
mods.thaumcraft.Research.addPrereq("ARS_CALEFACTOR", "ARS_ETHERIUMTRANSPORTATION", false);
mods.thaumcraft.Research.setConcealed("ARS_CALEFACTOR", true);

mods.thaumcraft.Research.addResearch("ARS_PHIAL", "ARS", "praecantatio 8, spiritus 20, tutamen 18, vinculum 10", 9, 16, 2, <arsmagica2:Crystal Phylactery:3>.withTag({SpawnClassName: "Thaumcraft.EldritchGuardian", PercentFilled: 100.0 as float}));
game.setLocalization("en_US", "tc.research_name.ARS_PHIAL", "Crystal phylacteries");
game.setLocalization("en_US", "tc.research_text.ARS_PHIAL", "[AoB][AM2] Collecting souls");
mods.thaumcraft.Research.addPage("ARS_PHIAL", "AgeOfBewitchment.research_page.ARS_PHIAL-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_PHIAL-1", "After every murder, you always notice a lost soul wandering around and finally floating into the sky for what seems eternity. This gave you an idea which can give them a new purpose. With sulfur, moonstone and the nullifying powers of silver, you can create phylacteries that attract and trap souls which can be used for your spells that summon entities. <BR>Every time you kill something while a crystal phylactery is on your inventory, that crystal phylactery will come a step closer to being filled (No bosses). While making a summon spell, throw a filled crystal phylactery when the book shows one. You can use any type as long as it is full.");
mods.thaumcraft.Research.addPage("ARS_PHIAL", "AgeOfBewitchment.research_page.ARS_PHIAL-2");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_PHIAL-2", "<IMG>thaumcraft:textures/modpack/Ars/phylactery.png:0:0:255:255:0.74</IMG>");
mods.thaumcraft.Research.addInfusionPage("ARS_PHIAL", <arsmagica2:Crystal Phylactery>);
mods.thaumcraft.Research.addPrereq("ARS_PHIAL", "ARS_ETHERIUMTRANSPORTATION", false);
mods.thaumcraft.Research.addPrereq("ARS_PHIAL", "ARS_CANDLES", false);
mods.thaumcraft.Warp.addToResearch("ARS_PHIAL", 4);
mods.thaumcraft.Research.setConcealed("ARS_PHIAL", true);

mods.thaumcraft.Research.addResearch("SOULBOUND", "ARS", "praecantatio 8, spiritus 20, victus 10, tempus 10", 7, 17, 1, <minecraft:enchanted_book>);
game.setLocalization("en_US", "tc.research_name.SOULBOUND", "Soulbinding");
game.setLocalization("en_US", "tc.research_text.SOULBOUND", "[AoB][AM2] Bound to you");
mods.thaumcraft.Research.addPage("SOULBOUND", "AgeOfBewitchment.research_page.SOULBOUND-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.SOULBOUND-1", "You have noticed that guardians usually drop items which can not leave the holder's inventory without his consent which is really useful at times.<BR>Maybe it is possible to replicate this effect...");
mods.thaumcraft.Research.addInfusionPage("SOULBOUND", <minecraft:enchanted_book>.withTag({StoredEnchantments: [{lvl: 1 as short, id: 53 as short}]}));
mods.thaumcraft.Research.addPrereq("SOULBOUND", "ARS_PHIAL", false);
mods.thaumcraft.Research.setConcealed("SOULBOUND", true);

mods.thaumcraft.Research.addResearch("ARS_RECONSTRUCTOR", "ARS", "instrumentum 10, telum 10, tutamen 10, ordo 20, praecantatio 5, machina 8", 12, 19, 3, <arsmagica2:blockArcaneReconstructor>);
game.setLocalization("en_US", "tc.research_name.ARS_RECONSTRUCTOR", "Arcane reconstructor");
game.setLocalization("en_US", "tc.research_text.ARS_RECONSTRUCTOR", "[AoB][AM2] Repairing with the power of magic");
mods.thaumcraft.Research.addPage("ARS_RECONSTRUCTOR", "AgeOfBewitchment.research_page.ARS_RECONSTRUCTOR-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_RECONSTRUCTOR-1", "You have found ways to repair your tools in the past. Anvils were just too expensive on metal, blood chests required a lot of blood, crafting new tools seemed like a waste of materials. By combining a blood chest, an anvil, some arcane stone and a little bit of magic essence, you have found a way to repair everything using only etherium. <BR>The arcane reconstructor will repair any item that is placed in the left or middle slot and it can be augmented with foci.");
mods.thaumcraft.Research.addArcanePage("ARS_RECONSTRUCTOR", <arsmagica2:blockArcaneReconstructor>);
mods.thaumcraft.Research.addPrereq("ARS_RECONSTRUCTOR", "ARS_ETHERIUMTRANSPORTATION", false);
mods.thaumcraft.Research.addPrereq("ARS_RECONSTRUCTOR", "ARCANESTONE", true);
mods.thaumcraft.Research.setConcealed("ARS_RECONSTRUCTOR", true);

mods.thaumcraft.Research.addResearch("ARS_DECONSTRUCTOR", "ARS", "permutatio 20, perditio 20, instrumentum 10, fabrico 5, vacuos 10, machina 8", 12, 21, 3, <arsmagica2:arcaneDeconstructor>);
game.setLocalization("en_US", "tc.research_name.ARS_DECONSTRUCTOR", "Arcane deconstructor");
game.setLocalization("en_US", "tc.research_text.ARS_DECONSTRUCTOR", "[AoB][AM2] Breaking things down");
mods.thaumcraft.Research.addPage("ARS_DECONSTRUCTOR", "AgeOfBewitchment.research_page.ARS_DECONSTRUCTOR-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_DECONSTRUCTOR-1", "You have made mistakes in the past, mistakes which costed you valuable resources. But finally, you thought of an idea that might let you turn back time. Combining an arcane reconstructor with lots of perditio seemed unstable at first but with the help of foci and silver, you managed to make it more controllable. <BR>The arcane deconstructor will break down any item that it is placed on its single slot into its crafting components but it can only operate using dark etherium.");
mods.thaumcraft.Research.addArcanePage("ARS_DECONSTRUCTOR", <arsmagica2:arcaneDeconstructor>);
mods.thaumcraft.Research.addPrereq("ARS_DECONSTRUCTOR", "ARS_RECONSTRUCTOR", false);
mods.thaumcraft.Research.setConcealed("ARS_DECONSTRUCTOR", true);

mods.thaumcraft.Research.addResearch("ARS_ESSENCEREFINER", "ARS", "permutatio 20, ordo 10, praecantatio 8, auram 20, potentia 10, machina 8", 14, 18, 3, <arsmagica2:essenceRefiner>);
game.setLocalization("en_US", "tc.research_name.ARS_ESSENCEREFINER", "Essence refiner");
game.setLocalization("en_US", "tc.research_text.ARS_ESSENCEREFINER", "[AoB][AM2] Constructing essence");
mods.thaumcraft.Research.addPage("ARS_ESSENCEREFINER", "AgeOfBewitchment.research_page.ARS_ESSENCEREFINER-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_ESSENCEREFINER-1", "Some times, killing bosses for different types of essence might be overly dangerous and resource heavy. Not anymore! <BR>Essence refiners can make essence by combining five items and some etherium.");
mods.thaumcraft.Research.addArcanePage("ARS_ESSENCEREFINER", <arsmagica2:essenceRefiner>);
mods.thaumcraft.Research.addPrereq("ARS_ESSENCEREFINER", "ARS_ETHERIUMTRANSPORTATION", false);
mods.thaumcraft.Research.setConcealed("ARS_ESSENCEREFINER", true);

mods.thaumcraft.Research.addResearch("ARS_SUMMONER", "ARS", "exanimis 10, praecantatio 8, spiritus 20, potentia 10, machina 8", 7, 13, 2, <arsmagica2:Summoner>);
game.setLocalization("en_US", "tc.research_name.ARS_SUMMONER", "Summoner");
game.setLocalization("en_US", "tc.research_text.ARS_SUMMONER", "[AoB][AM2] Automated summoning");
mods.thaumcraft.Research.addPage("ARS_SUMMONER", "AgeOfBewitchment.research_page.ARS_SUMMONER-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_SUMMONER-1", "Summoners can automatically cast any summoning spell that has been placed in their inventory but they will drain etherium.");
mods.thaumcraft.Research.addArcanePage("ARS_SUMMONER", <arsmagica2:Summoner>);
mods.thaumcraft.Research.addPrereq("ARS_SUMMONER", "ARS_PHIAL", false);
mods.thaumcraft.Research.setConcealed("ARS_SUMMONER", true);

mods.thaumcraft.Research.addResearch("ARS_ARMORIMBU", "ARS", "machina 20, praecantatio 30, potentia 5, cognitio 10, tutamen 20, superbia 2", 15, 16, 2, <arsmagica2:armorInfuser>);
game.setLocalization("en_US", "tc.research_name.ARS_ARMORIMBU", "Armor Imbuement Table");
game.setLocalization("en_US", "tc.research_text.ARS_ARMORIMBU", "[AoB][AM2] Utilizing the inner power");
mods.thaumcraft.Research.addPage("ARS_ARMORIMBU", "AgeOfBewitchment.research_page.ARS_ARMORIMBU-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_ARMORIMBU-1", "After many battles, you have noticed that you armor has begun to glow a bit but you haven't noticed any other change. Maybe you could use this hidden potential to make your armor stronger. <BR>The imbuement table allows you to add imbuements to your armor if it has enough XP. Imbuements make your armor more powerful like enchantments even though they are not.");
mods.thaumcraft.Research.addArcanePage("ARS_ARMORIMBU", <arsmagica2:armorInfuser>);
mods.thaumcraft.Research.addPrereq("ARS_ARMORIMBU", "ARS_ETHERIUMTRANSPORTATION", false);
mods.thaumcraft.Research.setConcealed("ARS_ARMORIMBU", true);

mods.thaumcraft.Research.addResearch("ARS_SEERSTONE", "ARS", "machina 10, praecantatio 10, sensus 30", 14, 14, 2, <arsmagica2:seerStone>);
game.setLocalization("en_US", "tc.research_name.ARS_SEERSTONE", "Seer stone");
game.setLocalization("en_US", "tc.research_text.ARS_SEERSTONE", "[AoB][AM2] Nothing can stay hidden");
mods.thaumcraft.Research.addPage("ARS_SEERSTONE", "AgeOfBewitchment.research_page.ARS_SEERSTONE-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_SEERSTONE-1", "Trespasser are starting to annoy you more and more as days pass by. They are always covered in some kind of magic which makes them invisible. Your sight is not powerful enough to see them but maybe one more eye would help. <BR>The seer stone is capable of detecting everything that exists in their area of effect. Place a filter focus on the left (Player, Monster, Item, Creature) to specify what the seer stone is going to detect and a spell focus on the right (Lesser, Standart, Greater) which is going to modify the radius. The seer stone will output a redstone signal if it detects the specified entity on its range but it requires etherium.");
mods.thaumcraft.Research.addArcanePage("ARS_SEERSTONE", <arsmagica2:seerStone>);
mods.thaumcraft.Research.addPrereq("ARS_SEERSTONE", "ARS_ETHERIUMTRANSPORTATION", false);
mods.thaumcraft.Research.addPrereq("ARS_SEERSTONE", "ARS_FOCUS", false);
mods.thaumcraft.Warp.addToResearch("ARS_SEERSTONE", 1);
mods.thaumcraft.Research.setConcealed("ARS_SEERSTONE", true);

mods.thaumcraft.Research.addResearch("ARS_ASTRALBARRIER", "ARS", "perditio 10, vacuos 10, tenebrae 10, tutamen 20", 18, 14, 2, <arsmagica2:astralBarrier>);
game.setLocalization("en_US", "tc.research_name.ARS_ASTRALBARRIER", "Astral barrier");
game.setLocalization("en_US", "tc.research_text.ARS_ASTRALBARRIER", "[AoB][AM2] ...for further protection");
mods.thaumcraft.Research.addPage("ARS_ASTRALBARRIER", "AgeOfBewitchment.research_page.ARS_ASTRALBARRIER-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_ASTRALBARRIER-1", "Why can't people just stay away from your house? Their spells somehow feel annoying... <BR>The astral barrier uses etherium to nullify any arcane spell casted within its radius. Even yours.");
mods.thaumcraft.Research.addArcanePage("ARS_ASTRALBARRIER", <arsmagica2:astralBarrier>);
mods.thaumcraft.Research.addPrereq("ARS_ASTRALBARRIER", "ARS_SEERSTONE", false);
mods.thaumcraft.Research.addPrereq("ARS_ASTRALBARRIER", "ARS_MANABATTERY", false);
mods.thaumcraft.Warp.addToResearch("ARS_ASTRALBARRIER", 3);
mods.thaumcraft.Research.setConcealed("ARS_ASTRALBARRIER", true);

mods.thaumcraft.Research.addResearch("ARS_LURE", "ARS", "potentia 10, praecantatio 13, bestia 20, vinculum 10", 21, 11, 1, <arsmagica2:flickerLure>);
game.setLocalization("en_US", "tc.research_name.ARS_LURE", "Flicker lure");
game.setLocalization("en_US", "tc.research_text.ARS_LURE", "[AoB][AM2] Luring them into your hands...");
mods.thaumcraft.Research.addPage("ARS_LURE", "AgeOfBewitchment.research_page.ARS_LURE-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_LURE-1", "Flickers are too hard to come across and you are tiered of chasing shadows. Perhaps you could make them be attracted to your location. <BR>The flicker lure simply makes flickers spawn near it. This process is not for free though, it costs etherium.");
mods.thaumcraft.Research.addPrereq("ARS_LURE", "ARS_FLICKERS", false);
mods.thaumcraft.Research.addArcanePage("ARS_LURE", <arsmagica2:flickerLure>);
mods.thaumcraft.Warp.addToResearch("ARS_LURE", 2);
mods.thaumcraft.Research.setConcealed("ARS_LURE", true);

mods.thaumcraft.Research.addResearch("ARS_FLICKERS", "ARS", "praecantatio 10, bestia 14, auram 10, volatus 5", 19, 11, 1, <arsmagica2:flickerJar:1>);
game.setLocalization("en_US", "tc.research_name.ARS_FLICKERS", "Flickers");
game.setLocalization("en_US", "tc.research_text.ARS_FLICKERS", "[AoB][AM2] Mystical creatures");
mods.thaumcraft.Research.addPage("ARS_FLICKERS", "AgeOfBewitchment.research_page.ARS_FLICKERS-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_FLICKERS-1", "Flickers are mysterious, little creatures. A common human would refer to them as fairies but they are different. Maybe you could learn more about them if you captured one or two.<BR> <IMG>thaumcraft:textures/modpack/Ars/Flicker.png:0:0:255:255:0.3</IMG>");
mods.thaumcraft.Research.addArcanePage("ARS_FLICKERS", <arsmagica2:flickerJar>);
mods.thaumcraft.Research.addPrereq("ARS_FLICKERS", "ARS_MANABATTERY", false);
mods.thaumcraft.Research.setSecondary("ARS_FLICKERS", true);
mods.thaumcraft.Research.setConcealed("ARS_FLICKERS", true);

mods.thaumcraft.Research.addResearch("ARS_FLICKERFOCI", "ARS", "praecantatio 10, bestia 14, auram 10, volatus 5", 19, 9, 1, <arsmagica2:flickerFocus:512>);
game.setLocalization("en_US", "tc.research_name.ARS_FLICKERFOCI", "Flicker foci");
game.setLocalization("en_US", "tc.research_text.ARS_FLICKERFOCI", "[AoB][AM2] They seem useful...");
mods.thaumcraft.Research.addPage("ARS_FLICKERFOCI", "AgeOfBewitchment.research_page.ARS_FLICKERFOCI-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_FLICKERFOCI-1", "By combining one or more flickers and some other materials, you have discovered that you can manipulate their will but how could this become useful?");
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:1>);
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:3>);
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:4>);
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:9>);
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:36>);
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:64>);
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:80>);
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:134>);
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:144>);
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:384>);
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:512>);
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:768>);
mods.thaumcraft.Research.addCraftingPage("ARS_FLICKERFOCI", <arsmagica2:flickerFocus:832>);
mods.thaumcraft.Research.addPrereq("ARS_FLICKERFOCI", "ARS_FLICKERS", false);
mods.thaumcraft.Research.setConcealed("ARS_FLICKERFOCI", true);

mods.thaumcraft.Research.addResearch("ARS_HABITAT", "ARS", "praecantatio 10, bestia 14, auram 10, terra 40, tempestas 10, machina 10, potentia 4", 21, 9, 3, <arsmagica2:elementalAttuner>);
game.setLocalization("en_US", "tc.research_name.ARS_HABITAT", "Flicker habitat");
game.setLocalization("en_US", "tc.research_text.ARS_HABITAT", "[AoB][AM2] Making them work");
mods.thaumcraft.Research.addPage("ARS_HABITAT", "AgeOfBewitchment.research_page.ARS_HABITAT-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_HABITAT-1", "The flicker habitat allows the flickers inside a flicker focus to operate. They will act accordingly to the type of the focus. This machine requires etherium.");
mods.thaumcraft.Research.addInfusionPage("ARS_HABITAT", <arsmagica2:elementalAttuner>);
mods.thaumcraft.Research.addPrereq("ARS_HABITAT", "ARS_FLICKERFOCI", false);
mods.thaumcraft.Research.addPrereq("ARS_HABITAT", "ARS_LURE", false);
mods.thaumcraft.Research.setConcealed("ARS_HABITAT", true);

mods.thaumcraft.Research.addResearch("ARS_ARMOR", "ARS", "tutamen 4, praecantatio 10", 14, 2, 0, <arsmagica2:mageHood>);
game.setLocalization("en_US", "tc.research_name.ARS_ARMOR", "Mage armor");
game.setLocalization("en_US", "tc.research_text.ARS_ARMOR", "[AoB][AM2] Protection!");
mods.thaumcraft.Research.addPage("ARS_ARMOR", "AgeOfBewitchment.research_page.ARS_ARMOR-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_ARMOR-1", "Mundane armor is not suitable for fighting magic creatures but it can be improved. <BR>Every piece of the mage armor can also give a small buff in time of need... <BR>Wearing the full set will increase the wearer's mana regeneration by 30%.");
mods.thaumcraft.Research.addPage("ARS_ARMOR", "AgeOfBewitchment.research_page.ARS_ARMOR-2");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_ARMOR-2", "Mage hood: Gives 10 seconds of water breathing after running out of oxygen<BR>Mage robes: Grants regeneration after the wearer's hp has fallen at 2 hearts<BR>Mage leggings: Attempts to extinguish the wearer<BR>Mage boots: Grants feather falling just a moment before the wearer hits the ground");
mods.thaumcraft.Research.addArcanePage("ARS_ARMOR", <arsmagica2:mageHood>);
mods.thaumcraft.Research.addArcanePage("ARS_ARMOR", <arsmagica2:mageArmor>);
mods.thaumcraft.Research.addArcanePage("ARS_ARMOR", <arsmagica2:mageLeggings>);
mods.thaumcraft.Research.addArcanePage("ARS_ARMOR", <arsmagica2:mageBoots>);
mods.thaumcraft.Research.addPrereq("ARS_ARMOR", "ARS_INTRODUCTION", false);
mods.thaumcraft.Research.setConcealed("ARS_ARMOR", true);

mods.thaumcraft.Research.addResearch("ARS_BATTLEMAGE", "ARS", "tutamen 4, praecantatio 10, potentia 10, superbia 10, vitreus 2", 16, 2, 2, <arsmagica2:battlemageArmor>);
game.setLocalization("en_US", "tc.research_name.ARS_BATTLEMAGE", "Battlemage armor");
game.setLocalization("en_US", "tc.research_text.ARS_BATTLEMAGE", "[AoB][AM2] For intense fights");
mods.thaumcraft.Research.addPage("ARS_BATTLEMAGE", "AgeOfBewitchment.research_page.ARS_BATTLEMAGE-1");
game.setLocalization("en_US", "AgeOfBewitchment.research_page.ARS_BATTLEMAGE-1", "The battlemage armor is an upgraded version of the mage armor. It provides more powerful versions of the mage armor's buffs, it offers greater protection and it is more durable but more expensive.");
mods.thaumcraft.Research.addArcanePage("ARS_BATTLEMAGE", <arsmagica2:battlemageHood>);
mods.thaumcraft.Research.addArcanePage("ARS_BATTLEMAGE", <arsmagica2:battlemageArmor>);
mods.thaumcraft.Research.addArcanePage("ARS_BATTLEMAGE", <arsmagica2:battlemageLeggings>);
mods.thaumcraft.Research.addArcanePage("ARS_BATTLEMAGE", <arsmagica2:battlemageBoots>);
mods.thaumcraft.Research.addPrereq("ARS_BATTLEMAGE", "ARS_ARMOR", false);
mods.thaumcraft.Research.setConcealed("ARS_BATTLEMAGE", true);