diff --git a/src/main/java/taintedmagic/api/IBloodlust.java b/src/main/java/taintedmagic/api/IBloodlust.java deleted file mode 100644 index a88a5cf..0000000 --- a/src/main/java/taintedmagic/api/IBloodlust.java +++ /dev/null @@ -1,11 +0,0 @@ -package taintedmagic.api; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemStack; - -/** - * Interface implemented by Bloodlust weapons - */ -public interface IBloodlust -{ -} diff --git a/src/main/java/taintedmagic/api/RecipeVoidsentBlood.java b/src/main/java/taintedmagic/api/RecipeVoidsentBlood.java index a98697c..9ca3b1e 100644 --- a/src/main/java/taintedmagic/api/RecipeVoidsentBlood.java +++ b/src/main/java/taintedmagic/api/RecipeVoidsentBlood.java @@ -1,15 +1,12 @@ package taintedmagic.api; import net.minecraft.inventory.InventoryCrafting; +import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; -import net.minecraft.item.ItemSword; import net.minecraft.item.crafting.IRecipe; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; import taintedmagic.common.items.ItemVoidsentBlood; -import thaumcraft.common.items.armor.ItemCultistLeaderArmor; -import thaumcraft.common.items.armor.ItemCultistPlateArmor; -import thaumcraft.common.items.armor.ItemCultistRobeArmor; /** * Custom recipe for aplpying Voidsent Blood to Cult Attire @@ -29,7 +26,7 @@ public class RecipeVoidsentBlood implements IRecipe if (s != null) { if (s.getItem() instanceof ItemVoidsentBlood && !foundBlood) foundBlood = true; - else if ( (s.getItem() instanceof ItemCultistRobeArmor || s.getItem() instanceof ItemCultistPlateArmor || s.getItem() instanceof ItemCultistLeaderArmor) && !foundArmor) foundArmor = true; + else if (s.getItem() instanceof ItemArmor && !foundArmor) foundArmor = true; else return false; } @@ -46,7 +43,7 @@ public class RecipeVoidsentBlood implements IRecipe for (int i = 0; i < inv.getSizeInventory(); i++) { - if (inv.getStackInSlot(i) != null && (inv.getStackInSlot(i).getItem() instanceof ItemCultistRobeArmor || inv.getStackInSlot(i).getItem() instanceof ItemCultistPlateArmor || inv.getStackInSlot(i).getItem() instanceof ItemCultistLeaderArmor)) armor = inv.getStackInSlot(i); + if (inv.getStackInSlot(i) != null && inv.getStackInSlot(i).getItem() instanceof ItemArmor) armor = inv.getStackInSlot(i); else if (inv.getStackInSlot(i) != null && inv.getStackInSlot(i).getItem() instanceof ItemVoidsentBlood) blood = inv.getStackInSlot(i); } if (armor != null && blood != null && (armor.getTagCompound() == null || (armor.getTagCompound() != null && !armor.getTagCompound().getBoolean("voidtouched")))) diff --git a/src/main/java/taintedmagic/client/ClientProxy.java b/src/main/java/taintedmagic/client/ClientProxy.java index 7e4d5dc..207cbbb 100644 --- a/src/main/java/taintedmagic/client/ClientProxy.java +++ b/src/main/java/taintedmagic/client/ClientProxy.java @@ -10,16 +10,12 @@ import net.minecraftforge.common.MinecraftForge; import taintedmagic.client.handler.ClientHandler; import taintedmagic.client.handler.HUDHandler; import taintedmagic.client.renderer.RenderEntityDiffusion; -import taintedmagic.client.renderer.RenderEntityGlowpet; import taintedmagic.client.renderer.RenderEntityHomingShard; -import taintedmagic.client.renderer.RenderEntityTaintBubble; import taintedmagic.client.renderer.RenderItemKatana; import taintedmagic.common.CommonProxy; import taintedmagic.common.entities.EntityDarkMatter; import taintedmagic.common.entities.EntityDiffusion; -import taintedmagic.common.entities.EntityGlowpet; import taintedmagic.common.entities.EntityHomingShard; -import taintedmagic.common.entities.EntityTaintBubble; import taintedmagic.common.registry.ItemRegistry; import thaumcraft.client.renderers.entity.RenderEldritchOrb; @@ -37,10 +33,8 @@ public class ClientProxy extends CommonProxy public void registerRenderers () { // Entities - RenderingRegistry.registerEntityRenderingHandler(EntityTaintBubble.class, new RenderEntityTaintBubble()); RenderingRegistry.registerEntityRenderingHandler(EntityDarkMatter.class, new RenderEldritchOrb()); RenderingRegistry.registerEntityRenderingHandler(EntityHomingShard.class, new RenderEntityHomingShard()); - RenderingRegistry.registerEntityRenderingHandler(EntityGlowpet.class, new RenderEntityGlowpet()); RenderingRegistry.registerEntityRenderingHandler(EntityDiffusion.class, new RenderEntityDiffusion()); // Items diff --git a/src/main/java/taintedmagic/client/handler/ClientHandler.java b/src/main/java/taintedmagic/client/handler/ClientHandler.java index a084b11..2c6d56f 100644 --- a/src/main/java/taintedmagic/client/handler/ClientHandler.java +++ b/src/main/java/taintedmagic/client/handler/ClientHandler.java @@ -4,18 +4,12 @@ import java.util.ArrayList; import java.util.List; import cpw.mods.fml.common.eventhandler.SubscribeEvent; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraftforge.client.event.RenderPlayerEvent; -import net.minecraftforge.event.entity.living.LivingEvent; import taintedmagic.api.IRenderInventoryItem; -import taintedmagic.common.helper.TaintedMagicHelper; -import taintedmagic.common.items.tools.ItemKatana; public class ClientHandler { @@ -27,7 +21,7 @@ public class ClientHandler { EntityPlayer p = event.entityPlayer; if (p.getActivePotionEffect(Potion.invisibility) != null) return; - + ItemStack[] inv = p.inventory.mainInventory; List rendering = new ArrayList(); for (int i = 0; i < 36; i++) diff --git a/src/main/java/taintedmagic/client/model/ModelKatana.java b/src/main/java/taintedmagic/client/model/ModelKatana.java index 3de35ea..e80040f 100644 --- a/src/main/java/taintedmagic/client/model/ModelKatana.java +++ b/src/main/java/taintedmagic/client/model/ModelKatana.java @@ -1,7 +1,5 @@ package taintedmagic.client.model; -import org.lwjgl.opengl.GL11; - import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; diff --git a/src/main/java/taintedmagic/client/renderer/RenderEntityDiffusion.java b/src/main/java/taintedmagic/client/renderer/RenderEntityDiffusion.java index cc8a7e7..9ed00a8 100644 --- a/src/main/java/taintedmagic/client/renderer/RenderEntityDiffusion.java +++ b/src/main/java/taintedmagic/client/renderer/RenderEntityDiffusion.java @@ -1,12 +1,11 @@ package taintedmagic.client.renderer; +import org.lwjgl.opengl.GL11; + import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.Render; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; - -import org.lwjgl.opengl.GL11; - import taintedmagic.common.entities.EntityDiffusion; import thaumcraft.client.fx.ParticleEngine; import thaumcraft.client.lib.UtilsFX; diff --git a/src/main/java/taintedmagic/client/renderer/RenderEntityGlowpet.java b/src/main/java/taintedmagic/client/renderer/RenderEntityGlowpet.java deleted file mode 100644 index 2546346..0000000 --- a/src/main/java/taintedmagic/client/renderer/RenderEntityGlowpet.java +++ /dev/null @@ -1,93 +0,0 @@ -package taintedmagic.client.renderer; - -import org.lwjgl.opengl.GL11; -import org.lwjgl.opengl.GL12; - -import net.minecraft.client.renderer.Tessellator; -import net.minecraft.client.renderer.entity.Render; -import net.minecraft.client.renderer.texture.TextureMap; -import net.minecraft.entity.Entity; -import net.minecraft.util.ResourceLocation; -import taintedmagic.common.entities.EntityGlowpet; -import thaumcraft.client.fx.ParticleEngine; -import thaumcraft.client.lib.UtilsFX; - -public class RenderEntityGlowpet extends Render -{ - public RenderEntityGlowpet () - { - super(); - this.shadowSize = 0.0F; - } - - public void renderEntityAt (EntityGlowpet e, double x, double y, double z, float f, float pT) - { - Tessellator t = Tessellator.instance; - - GL11.glPushMatrix(); - - GL11.glDepthMask(false); - - GL11.glEnable(GL11.GL_BLEND); - GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); - - UtilsFX.bindTexture(ParticleEngine.particleTexture); - - float f2 = (8 + e.ticksExisted % 8) / 16.0F; - float f3 = f2 + 0.0625F; - float f4 = 0.25F; - float f5 = f4 + 0.0625F; - - float f6 = 1.0F; - float f7 = 0.5F; - float f8 = 0.5F; - - float red = 1.0F; - float green = 0.75F; - float blue = 0.5F; - float alpha = 1.0F; - - GL11.glColor4f(red, green, blue, alpha); - - GL11.glPushMatrix(); - - GL11.glTranslated(x, y, z); - - GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F); - GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F); - - float s = 0.4F; - GL11.glScalef(s, s, s); - - t.startDrawingQuads(); - - t.setColorRGBA_F(red, green, blue, alpha); - t.setNormal(0.0F, 1.0F, 0.0F); - t.setBrightness(240); - - t.addVertexWithUV(-f7, -f8, 0.0D, f2, f5); - t.addVertexWithUV(f6 - f7, -f8, 0.0D, f3, f5); - t.addVertexWithUV(f6 - f7, 1.0F - f8, 0.0D, f3, f4); - t.addVertexWithUV(-f7, 1.0F - f8, 0.0D, f2, f4); - - t.draw(); - - GL11.glPopMatrix(); - - GL11.glDisable(GL11.GL_BLEND); - GL11.glDisable(GL12.GL_RESCALE_NORMAL); - GL11.glDepthMask(true); - - GL11.glPopMatrix(); - } - - public void doRender (Entity e, double x, double y, double z, float f, float pT) - { - renderEntityAt((EntityGlowpet) e, x, y, z, f, pT); - } - - protected ResourceLocation getEntityTexture (Entity e) - { - return TextureMap.locationBlocksTexture; - } -} diff --git a/src/main/java/taintedmagic/client/renderer/RenderEntityTaintBubble.java b/src/main/java/taintedmagic/client/renderer/RenderEntityTaintBubble.java deleted file mode 100644 index 3517293..0000000 --- a/src/main/java/taintedmagic/client/renderer/RenderEntityTaintBubble.java +++ /dev/null @@ -1,85 +0,0 @@ -package taintedmagic.client.renderer; - -import org.lwjgl.opengl.GL11; - -import net.minecraft.client.renderer.Tessellator; -import net.minecraft.client.renderer.entity.Render; -import net.minecraft.entity.Entity; -import net.minecraft.util.ResourceLocation; -import taintedmagic.common.entities.EntityTaintBubble; -import thaumcraft.client.lib.UtilsFX; - -public class RenderEntityTaintBubble extends Render -{ - private static final ResourceLocation texture = new ResourceLocation("thaumcraft:textures/misc/particles.png"); - - public RenderEntityTaintBubble () - { - this.shadowSize = 0.0F; - } - - public void renderEntityAt (EntityTaintBubble e, double x, double y, double z, float f, float pt) - { - Tessellator t = Tessellator.instance; - - float alpha = (50.0F - (float) e.ticksExisted) / 50.0F; - - GL11.glPushMatrix(); - - GL11.glTranslated(x, y, z); - - GL11.glEnable(GL11.GL_BLEND); - GL11.glDepthMask(false); - - GL11.glColor4f(e.red, e.green, e.blue, alpha); - - UtilsFX.bindTexture(texture); - - int p = 7 + e.ticksExisted % 8; - float f2 = p / 16.0F; - float f3 = f2 + 0.0624375F; - float f4 = 0.25F; - float f5 = f4 + 0.0624375F; - - float f6 = 1.0F; - float f7 = 0.5F; - float f8 = 0.5F; - - float s = 0.35F; - - GL11.glScalef(s, s, s); - - GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F); - GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F); - - t.startDrawingQuads(); - - t.setBrightness(240); - t.setNormal(0.0F, 1.0F, 0.0F); - t.setColorRGBA_F(e.red, e.green, e.blue, alpha); - - t.addVertexWithUV(-f7, -f8, 0.0D, f2, f5); - t.addVertexWithUV(f6 - f7, -f8, 0.0D, f3, f5); - t.addVertexWithUV(f6 - f7, 1.0F - f8, 0.0D, f3, f4); - t.addVertexWithUV(-f7, 1.0F - f8, 0.0D, f2, f4); - - t.draw(); - - GL11.glDepthMask(true); - GL11.glDisable(GL11.GL_BLEND); - - GL11.glPopMatrix(); - } - - @Override - protected ResourceLocation getEntityTexture (Entity e) - { - return null; - } - - @Override - public void doRender (Entity e, double x, double y, double z, float f, float pT) - { - renderEntityAt((EntityTaintBubble) e, x, y, z, f, pT); - } -} \ No newline at end of file diff --git a/src/main/java/taintedmagic/client/renderer/RenderItemKatana.java b/src/main/java/taintedmagic/client/renderer/RenderItemKatana.java index 39ed47e..8b52300 100644 --- a/src/main/java/taintedmagic/client/renderer/RenderItemKatana.java +++ b/src/main/java/taintedmagic/client/renderer/RenderItemKatana.java @@ -4,7 +4,6 @@ import org.lwjgl.opengl.GL11; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.Tessellator; import net.minecraft.entity.player.EntityPlayer; diff --git a/src/main/java/taintedmagic/common/CommonProxy.java b/src/main/java/taintedmagic/common/CommonProxy.java index 01d7a06..582407c 100644 --- a/src/main/java/taintedmagic/common/CommonProxy.java +++ b/src/main/java/taintedmagic/common/CommonProxy.java @@ -1,11 +1,7 @@ package taintedmagic.common; -import cpw.mods.fml.common.FMLCommonHandler; -import net.minecraft.client.multiplayer.WorldClient; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; -import net.minecraftforge.common.MinecraftForge; -import taintedmagic.client.handler.ClientHandler; public class CommonProxy { diff --git a/src/main/java/taintedmagic/common/TaintedMagic.java b/src/main/java/taintedmagic/common/TaintedMagic.java index 72142f7..589c789 100644 --- a/src/main/java/taintedmagic/common/TaintedMagic.java +++ b/src/main/java/taintedmagic/common/TaintedMagic.java @@ -1,16 +1,21 @@ package taintedmagic.common; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +import cpw.mods.fml.common.FMLCommonHandler; +import cpw.mods.fml.common.Mod; +import cpw.mods.fml.common.Mod.EventHandler; +import cpw.mods.fml.common.SidedProxy; +import cpw.mods.fml.common.event.FMLInitializationEvent; +import cpw.mods.fml.common.event.FMLPostInitializationEvent; +import cpw.mods.fml.common.event.FMLPreInitializationEvent; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.EnumRarity; import net.minecraft.util.EnumChatFormatting; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.config.Configuration; import net.minecraftforge.common.util.EnumHelper; - -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; - -import taintedmagic.client.handler.ClientHandler; import taintedmagic.common.handler.ConfigHandler; import taintedmagic.common.handler.TMEventHandler; import taintedmagic.common.handler.UpdateHandler; @@ -23,13 +28,6 @@ import taintedmagic.common.registry.ModEntityRegistry; import taintedmagic.common.registry.OreDictionaryRegistry; import taintedmagic.common.registry.RecipeRegistry; import taintedmagic.common.registry.ResearchRegistry; -import cpw.mods.fml.common.FMLCommonHandler; -import cpw.mods.fml.common.Mod; -import cpw.mods.fml.common.Mod.EventHandler; -import cpw.mods.fml.common.SidedProxy; -import cpw.mods.fml.common.event.FMLInitializationEvent; -import cpw.mods.fml.common.event.FMLPostInitializationEvent; -import cpw.mods.fml.common.event.FMLPreInitializationEvent; @Mod (modid = LibInfo.MODID, name = LibInfo.NAME, version = LibInfo.VERSION, dependencies = LibInfo.DEPENDENCIES) public class TaintedMagic diff --git a/src/main/java/taintedmagic/common/blocks/BlockLumos.java b/src/main/java/taintedmagic/common/blocks/BlockLumos.java index daa6b3d..7578a6e 100644 --- a/src/main/java/taintedmagic/common/blocks/BlockLumos.java +++ b/src/main/java/taintedmagic/common/blocks/BlockLumos.java @@ -2,6 +2,8 @@ package taintedmagic.common.blocks; import java.util.Random; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.ITileEntityProvider; import net.minecraft.item.Item; @@ -11,50 +13,52 @@ import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; import taintedmagic.common.blocks.tile.TileLumos; +import thaumcraft.client.fx.ParticleEngine; +import thaumcraft.client.fx.particles.FXSparkle; import thaumcraft.common.config.Config; -import thaumcraft.common.config.ConfigItems; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class BlockLumos extends Block implements ITileEntityProvider { - int duration = 0; - public BlockLumos () { super(Config.airyMaterial); + this.setStepSound(new Block.SoundType("stone", -1, -1)); this.setBlockName("BlockLumos"); this.setTickRandomly(false); this.setLightLevel(1.0F); - this.setStepSound(new CustomStepSound("thaumcraft:crystal", 0.3F, 1.0F)); this.setBlockTextureName("thaumcraft:blank"); } - public void setGlowDuration (int i) + @Override + public void onBlockDestroyedByPlayer (World w, int x, int y, int z, int meta) { - this.duration = i; + super.onBlockDestroyedByPlayer(w, x, y, z, meta); + + w.playSound(x, y, z, "thaumcraft:ice", 0.3F, 1.1F + w.rand.nextFloat() * 0.1F, true); + + for (int a = 0; a < 9; a++) + if (w.isRemote) spawnBreakParticles(w, x, y, z); } - public int getGlowDuration () + @SideOnly (Side.CLIENT) + void spawnBreakParticles (World w, double x, double y, double z) { - return this.duration; + FXSparkle fx = new FXSparkle(w, x + w.rand.nextFloat(), y + w.rand.nextFloat(), z + w.rand.nextFloat(), 1.75F, 6, 3 + w.rand.nextInt(3)); + fx.motionX += w.rand.nextGaussian() * 0.1D; + fx.motionY += w.rand.nextGaussian() * 0.1D; + fx.motionZ += w.rand.nextGaussian() * 0.1D; + fx.setGravity(0.5F); + ParticleEngine.instance.addEffect(w, fx); } @Override public void setBlockBoundsBasedOnState (IBlockAccess w, int x, int y, int z) { int meta = w.getBlockMetadata(x, y, z); - if (meta == 2) setBlockBounds(0.3F, 0.3F, 0.3F, 0.7F, 0.7F, 0.7F); + if (meta == 0) setBlockBounds(0.3F, 0.3F, 0.3F, 0.7F, 0.7F, 0.7F); else setBlockBounds(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F); } - @SideOnly (Side.CLIENT) - @Override - public AxisAlignedBB getSelectedBoundingBoxFromPool (World w, int x, int y, int z) - { - return AxisAlignedBB.getBoundingBox(0.0D, 0.0D, 0.0D, 0.0D, 0.0D, 0.0D); - } - @Override public AxisAlignedBB getCollisionBoundingBoxFromPool (World w, int x, int y, int z) { @@ -102,12 +106,6 @@ public class BlockLumos extends Block implements ITileEntityProvider return false; } - @Override - public boolean isLeaves (IBlockAccess w, int x, int y, int z) - { - return true; - } - @Override public Item getItemDropped (int a, Random r, int b) { diff --git a/src/main/java/taintedmagic/common/blocks/BlockShadowmetal.java b/src/main/java/taintedmagic/common/blocks/BlockShadowmetal.java index 31ad851..a7d6db5 100644 --- a/src/main/java/taintedmagic/common/blocks/BlockShadowmetal.java +++ b/src/main/java/taintedmagic/common/blocks/BlockShadowmetal.java @@ -1,18 +1,9 @@ package taintedmagic.common.blocks; -import java.util.List; - -import taintedmagic.common.TaintedMagic; import net.minecraft.block.Block; import net.minecraft.block.material.Material; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.EnumRarity; -import net.minecraft.item.ItemStack; -import net.minecraft.util.EnumChatFormatting; -import net.minecraft.util.StatCollector; import net.minecraft.world.IBlockAccess; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; +import taintedmagic.common.TaintedMagic; public class BlockShadowmetal extends Block { diff --git a/src/main/java/taintedmagic/common/blocks/BlockWarpwoodLeaves.java b/src/main/java/taintedmagic/common/blocks/BlockWarpwoodLeaves.java index 6582028..00fd4f5 100644 --- a/src/main/java/taintedmagic/common/blocks/BlockWarpwoodLeaves.java +++ b/src/main/java/taintedmagic/common/blocks/BlockWarpwoodLeaves.java @@ -3,6 +3,8 @@ package taintedmagic.common.blocks; import java.util.ArrayList; import java.util.Random; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; @@ -18,10 +20,7 @@ import net.minecraftforge.common.IShearable; import net.minecraftforge.common.util.ForgeDirection; import taintedmagic.common.TaintedMagic; import taintedmagic.common.registry.BlockRegistry; -import thaumcraft.common.Thaumcraft; import thaumcraft.common.config.ConfigBlocks; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class BlockWarpwoodLeaves extends Block implements IShearable { diff --git a/src/main/java/taintedmagic/common/blocks/BlockWarpwoodLog.java b/src/main/java/taintedmagic/common/blocks/BlockWarpwoodLog.java index 914d701..b687d67 100644 --- a/src/main/java/taintedmagic/common/blocks/BlockWarpwoodLog.java +++ b/src/main/java/taintedmagic/common/blocks/BlockWarpwoodLog.java @@ -1,20 +1,14 @@ package taintedmagic.common.blocks; -import java.util.Random; - -import taintedmagic.common.TaintedMagic; -import taintedmagic.common.registry.BlockRegistry; -import thaumcraft.common.config.ConfigItems; -import net.minecraft.block.Block; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.BlockRotatedPillar; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.item.Item; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraftforge.common.util.ForgeDirection; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; +import taintedmagic.common.TaintedMagic; public class BlockWarpwoodLog extends BlockRotatedPillar { diff --git a/src/main/java/taintedmagic/common/blocks/BlockWarpwoodSapling.java b/src/main/java/taintedmagic/common/blocks/BlockWarpwoodSapling.java index ac2704d..7050929 100644 --- a/src/main/java/taintedmagic/common/blocks/BlockWarpwoodSapling.java +++ b/src/main/java/taintedmagic/common/blocks/BlockWarpwoodSapling.java @@ -3,20 +3,18 @@ package taintedmagic.common.blocks; import java.util.List; import java.util.Random; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.BlockSapling; -import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; -import net.minecraft.util.MathHelper; import net.minecraft.world.World; import taintedmagic.common.TaintedMagic; import taintedmagic.common.registry.BlockRegistry; import taintedmagic.common.world.WorldGenWarpwoodTree; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class BlockWarpwoodSapling extends BlockSapling { diff --git a/src/main/java/taintedmagic/common/blocks/CustomStepSound.java b/src/main/java/taintedmagic/common/blocks/CustomStepSound.java deleted file mode 100644 index 548539f..0000000 --- a/src/main/java/taintedmagic/common/blocks/CustomStepSound.java +++ /dev/null @@ -1,21 +0,0 @@ -package taintedmagic.common.blocks; - -import net.minecraft.block.Block; - -public class CustomStepSound extends Block.SoundType -{ - public CustomStepSound (String soundPath, float volume, float pitch) - { - super(soundPath, volume, pitch); - } - - public String getBreakSound () - { - return this.soundName; - } - - public String getStepResourcePath () - { - return this.soundName; - } -} diff --git a/src/main/java/taintedmagic/common/blocks/tile/TileLumos.java b/src/main/java/taintedmagic/common/blocks/tile/TileLumos.java index 87c2c6b..26e9ac4 100644 --- a/src/main/java/taintedmagic/common/blocks/tile/TileLumos.java +++ b/src/main/java/taintedmagic/common/blocks/tile/TileLumos.java @@ -1,20 +1,19 @@ package taintedmagic.common.blocks.tile; -import java.util.List; -import java.util.Random; - -import net.minecraft.block.Block; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.util.AxisAlignedBB; -import taintedmagic.common.TaintedMagic; -import taintedmagic.common.blocks.BlockLumos; -import taintedmagic.common.entities.EntityGlowpet; -import taintedmagic.common.items.wand.foci.ItemFocusLumos; -import thaumcraft.client.fx.ParticleEngine; -import thaumcraft.client.fx.particles.FXSparkle; -import thaumcraft.common.Thaumcraft; +import baubles.api.BaublesApi; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.block.Block; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.inventory.IInventory; +import net.minecraft.item.ItemStack; +import net.minecraft.tileentity.TileEntity; +import taintedmagic.common.blocks.BlockLumos; +import taintedmagic.common.items.equipment.ItemLumosRing; +import taintedmagic.common.registry.ItemRegistry; +import thaumcraft.client.fx.ParticleEngine; +import thaumcraft.client.fx.particles.FXSparkle; +import thaumcraft.common.items.wands.ItemWandCasting; public class TileLumos extends TileEntity { @@ -37,40 +36,51 @@ public class TileLumos extends TileEntity Block b = worldObj.getBlock(xCoord, yCoord, zCoord); int meta = worldObj.getBlockMetadata(xCoord, yCoord, zCoord); - List ents = worldObj.getEntitiesWithinAABB(EntityGlowpet.class, AxisAlignedBB.getBoundingBox(xCoord, yCoord, zCoord, xCoord + 1, yCoord + 1, zCoord + 1).expand(2.0D, 2.0D, 2.0D)); if (b instanceof BlockLumos) { - BlockLumos src = (BlockLumos) b; - if (meta == 0 && ents.isEmpty()) + EntityPlayer p = worldObj.getClosestPlayer(xCoord, yCoord, zCoord, 4); + + if (meta == 0 && worldObj.rand.nextInt(15) == 0) + { + if (worldObj.isRemote) spawnParticles(); + } + if ( (meta == 1 || meta == 2) && p == null) { worldObj.setBlockToAir(xCoord, yCoord, zCoord); } - - else if (meta == 1 && ticksExisted > src.getGlowDuration()) + else if (meta == 1 && p != null) { - worldObj.setBlockToAir(xCoord, yCoord, zCoord); - } - - if ( (meta == 1 && worldObj.rand.nextInt(50) == 0) || (meta == 2 && worldObj.rand.nextInt(9) == 0)) - { - Thaumcraft.proxy.sparkle((float) xCoord + 0.5F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.25F, (float) yCoord + 0.5F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.25F, (float) zCoord + 0.5F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.25F, 0.5F, 6, -0.05F); - } - - if ( (meta == 1 || meta == 2) && worldObj.rand.nextInt(512) == 0) - { - for (int a = 0; a < 9; a++) + if (p.getHeldItem() == null || (p.getHeldItem() != null && ! (p.getHeldItem().getItem() instanceof ItemWandCasting))) worldObj.setBlockToAir(xCoord, yCoord, zCoord); + else if (p.getHeldItem() != null && p.getHeldItem().getItem() instanceof ItemWandCasting) { - if (worldObj.isRemote) spawnParticles(); + ItemStack s = p.getHeldItem(); + ItemWandCasting wand = (ItemWandCasting) s.getItem(); + + if (wand.getFocus(s) == null || (wand.getFocus(s) != null && wand.getFocus(s) != ItemRegistry.ItemFocusLumos)) worldObj.setBlockToAir(xCoord, yCoord, zCoord); } } + if (meta == 2 && p != null) + { + IInventory baub = BaublesApi.getBaubles(p); + if (baub.getStackInSlot(1) == null && baub.getStackInSlot(2) == null) worldObj.setBlockToAir(xCoord, yCoord, zCoord); + else if ( (baub.getStackInSlot(1) != null && baub.getStackInSlot(2) == null) && ! (baub.getStackInSlot(1).getItem() instanceof ItemLumosRing)) + worldObj.setBlockToAir(xCoord, yCoord, zCoord); + else if ( (baub.getStackInSlot(1) == null && baub.getStackInSlot(2) != null) && ! (baub.getStackInSlot(2).getItem() instanceof ItemLumosRing)) + worldObj.setBlockToAir(xCoord, yCoord, zCoord); + else if ( (baub.getStackInSlot(1) != null && baub.getStackInSlot(2) != null) + && (! (baub.getStackInSlot(1).getItem() instanceof ItemLumosRing) && ! (baub.getStackInSlot(2).getItem() instanceof ItemLumosRing))) + worldObj.setBlockToAir(xCoord, yCoord, zCoord); + } } } @SideOnly (Side.CLIENT) void spawnParticles () { - FXSparkle fx = new FXSparkle(worldObj, xCoord + worldObj.rand.nextFloat(), yCoord + worldObj.rand.nextFloat(), zCoord + worldObj.rand.nextFloat(), 1.75F, worldObj.rand.nextInt(5), 3 + worldObj.rand.nextInt(3)); - fx.setGravity(0.1F); + FXSparkle fx = new FXSparkle(worldObj, (double) xCoord + 0.5D + (worldObj.rand.nextGaussian() * 0.1D), (double) yCoord + 0.5D + (worldObj.rand.nextGaussian() * 0.1D), + (double) zCoord + 0.5D + (worldObj.rand.nextGaussian() * 0.1D), 1.75F, 6, 3 + worldObj.rand.nextInt(2)); + fx.slowdown = true; + fx.setGravity(-0.5F); ParticleEngine.instance.addEffect(worldObj, fx); } -} +} \ No newline at end of file diff --git a/src/main/java/taintedmagic/common/entities/EntityDiffusion.java b/src/main/java/taintedmagic/common/entities/EntityDiffusion.java index 150f19d..d61cdd5 100644 --- a/src/main/java/taintedmagic/common/entities/EntityDiffusion.java +++ b/src/main/java/taintedmagic/common/entities/EntityDiffusion.java @@ -1,22 +1,20 @@ package taintedmagic.common.entities; -import io.netty.buffer.ByteBuf; - import java.util.List; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import io.netty.buffer.ByteBuf; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.projectile.EntityThrowable; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; -import net.minecraft.util.ChunkCoordinates; import net.minecraft.util.DamageSource; -import net.minecraft.util.MathHelper; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; +import thaumcraft.common.Thaumcraft; public class EntityDiffusion extends EntityThrowable { @@ -54,6 +52,25 @@ public class EntityDiffusion extends EntityThrowable return 1.0F; } + public void handleHealthUpdate (byte b) + { + if (b == 16) + { + if (this.worldObj.isRemote) + { + float fx = (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.3F; + float fy = (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.3F; + float fz = (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.3F; + Thaumcraft.proxy.wispFX3(this.worldObj, this.posX + fx, this.posY + fy, this.posZ + fz, this.posX + fx * 8.0F, this.posY + fy * 8.0F, this.posZ + fz * 8.0F, 0.3F, 5, true, 0.02F); + } + + } + else + { + super.handleHealthUpdate(b); + } + } + public void onUpdate () { if (this.ticksExisted > 20) setDead(); @@ -68,6 +85,7 @@ public class EntityDiffusion extends EntityThrowable this.motionY *= 0.66D; this.motionZ *= 0.66D; } + super.onUpdate(); } @@ -121,7 +139,7 @@ public class EntityDiffusion extends EntityThrowable } } } - setDead(); + this.worldObj.setEntityState(this, (byte) 16); } protected boolean canTriggerWalking () diff --git a/src/main/java/taintedmagic/common/entities/EntityGlowpet.java b/src/main/java/taintedmagic/common/entities/EntityGlowpet.java deleted file mode 100644 index edbe1de..0000000 --- a/src/main/java/taintedmagic/common/entities/EntityGlowpet.java +++ /dev/null @@ -1,141 +0,0 @@ -package taintedmagic.common.entities; - -import java.util.ArrayList; -import java.util.List; - -import net.minecraft.block.Block; -import net.minecraft.block.material.Material; -import net.minecraft.entity.EntityLivingBase; -import net.minecraft.entity.projectile.EntityThrowable; -import net.minecraft.init.Blocks; -import net.minecraft.util.MathHelper; -import net.minecraft.util.MovingObjectPosition; -import net.minecraft.util.Vec3; -import net.minecraft.world.World; -import taintedmagic.common.registry.BlockRegistry; -import thaumcraft.common.Thaumcraft; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -public class EntityGlowpet extends EntityThrowable -{ - public int maxAge = 0; - Material[] mats = { Material.plants, Material.air, Material.leaves, Material.portal, Material.vine, Material.web, Material.portal }; - - public EntityGlowpet (World w) - { - super(w); - } - - public EntityGlowpet (World w, EntityLivingBase p, int maxAgeMul) - { - super(w, p); - this.maxAge = 200 * maxAgeMul; - Vec3 v = p.getLookVec(); - setLocationAndAngles(p.posX + v.xCoord / 2.0D, p.posY + p.getEyeHeight() + v.yCoord / 2.0D, p.posZ + v.zCoord / 2.0D, p.rotationYaw, p.rotationPitch); - float f = 0.5F; - float ry = p.rotationYaw + (this.rand.nextFloat() - this.rand.nextFloat()) * 60.0F; - float rp = p.rotationPitch + (this.rand.nextFloat() - this.rand.nextFloat()) * 60.0F; - this.motionX = (-MathHelper.sin(ry / 180.0F * (float) Math.PI) * MathHelper.cos(rp / 180.0F * (float) Math.PI) * f); - this.motionZ = (MathHelper.cos(ry / 180.0F * (float) Math.PI) * MathHelper.cos(rp / 180.0F * (float) Math.PI) * f); - this.motionY = (-MathHelper.sin(rp / 180.0F * (float) Math.PI) * f); - } - - @Override - public boolean shouldRenderInPass (int pass) - { - return pass == 1; - } - - @Override - protected float getGravityVelocity () - { - return 0.0F; - } - - @Override - protected void onImpact (MovingObjectPosition mop) - { - if (mop.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) - { - Block b = this.worldObj.getBlock(mop.blockX, mop.blockY, mop.blockZ); - - int l = mats.length; - List whitelisted = new ArrayList(l); - for (int i = 0; i < l; i++) - whitelisted.add(mats[i]); - - if (!whitelisted.contains(b.getMaterial())) - { - this.motionZ *= -0.8D; - this.motionX *= -0.8D; - this.motionY *= -0.8D; - } - } - } - - @Override - @SideOnly (Side.CLIENT) - public void handleHealthUpdate (byte b) - { - if (b == 16) Thaumcraft.proxy.burst(worldObj, this.posX, this.posY, this.posZ, 0.3F); - else super.handleHealthUpdate(b); - } - - @Override - public void onUpdate () - { - double motion = Math.abs(this.motionX) + Math.abs(this.motionY) + Math.abs(this.motionZ); - if (motion > 0.0D && this.worldObj.isRemote) Thaumcraft.proxy.sparkle((float) this.posX + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.25F, (float) this.posY + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.25F, (float) this.posZ + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.25F, 0.5F, 6, 0.0F); - - super.onUpdate(); - - if (!this.worldObj.isRemote) - { - int x = MathHelper.floor_double(this.posX); - int y = MathHelper.floor_double(this.posY - this.getYOffset()); - int z = MathHelper.floor_double(this.posZ); - - for (int i = -1; i < 2; i++) - { - for (int j = -1; j < 2; j++) - { - for (int k = -1; k < 2; k++) - { - if (this.worldObj.getBlock(x + i, y + k, z + j) == Blocks.air) - { - this.worldObj.setBlock(x + i, y + k, z + j, BlockRegistry.BlockLumos, 0, 3); - break; - } - } - } - } - - if (this.getThrower() == null || this.getThrower().isDead || this.getThrower().getDistanceSqToEntity(this) > 1250.0D || this.ticksExisted > this.maxAge || this.isWet()) - { - this.worldObj.setEntityState(this, (byte) 16); - setDead(); - } - } - - if (this.ticksExisted % 10 == 0 && this.getThrower() != null && !this.getThrower().isDead && this.getThrower().getDistanceSqToEntity(this) > 10.0D) - { - double d = getDistanceToEntity(this.getThrower()); - double dx = this.getThrower().posX - this.posX; - double dy = this.getThrower().boundingBox.minY + this.getThrower().height * 0.6D - this.posY; - double dz = this.getThrower().posZ - this.posZ; - dx /= d; - dy /= d; - dz /= d; - - this.motionX = dx; - this.motionY = dy; - this.motionZ = dz; - - this.worldObj.playSoundAtEntity(this, "taintedmagic:shard", 0.1F, 2.0F * this.worldObj.rand.nextFloat()); - } - this.motionX *= 0.85D; - this.motionY *= 0.85D; - this.motionZ *= 0.85D; - } -} diff --git a/src/main/java/taintedmagic/common/entities/EntityHomingShard.java b/src/main/java/taintedmagic/common/entities/EntityHomingShard.java index 04a608c..f25bf35 100644 --- a/src/main/java/taintedmagic/common/entities/EntityHomingShard.java +++ b/src/main/java/taintedmagic/common/entities/EntityHomingShard.java @@ -1,10 +1,12 @@ package taintedmagic.common.entities; -import io.netty.buffer.ByteBuf; - import java.util.ArrayList; import java.util.List; +import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import io.netty.buffer.ByteBuf; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.entity.Entity; @@ -17,9 +19,6 @@ import net.minecraft.util.Vec3; import net.minecraft.world.World; import thaumcraft.common.Thaumcraft; import thaumcraft.common.lib.utils.EntityUtils; -import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; /** * this class is based off of EntityHomingShard.class created by as diff --git a/src/main/java/taintedmagic/common/entities/EntityTaintBubble.java b/src/main/java/taintedmagic/common/entities/EntityTaintBubble.java deleted file mode 100644 index 74e6e5c..0000000 --- a/src/main/java/taintedmagic/common/entities/EntityTaintBubble.java +++ /dev/null @@ -1,188 +0,0 @@ -package taintedmagic.common.entities; - -import io.netty.buffer.ByteBuf; - -import java.util.List; - -import net.minecraft.entity.Entity; -import net.minecraft.entity.EntityLivingBase; -import net.minecraft.entity.projectile.EntityThrowable; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.potion.Potion; -import net.minecraft.potion.PotionEffect; -import net.minecraft.util.ChunkCoordinates; -import net.minecraft.util.DamageSource; -import net.minecraft.util.EntityDamageSourceIndirect; -import net.minecraft.util.MathHelper; -import net.minecraft.util.MovingObjectPosition; -import net.minecraft.world.World; -import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -public class EntityTaintBubble extends EntityThrowable implements IEntityAdditionalSpawnData -{ - public static final String TAG_DAMAGE = "dmg"; - - public boolean corrosive = false; - public float dmg = 0.0F; - - public float red = 0.0F; - public float green = 0.0F; - public float blue = 0.0F; - - public EntityTaintBubble (World w) - { - super(w); - } - - public EntityTaintBubble (World w, EntityLivingBase e, float scatter, float dmg, boolean corrosive) - { - super(w, e); - this.corrosive = corrosive; - this.dmg = dmg; - setThrowableHeading(this.motionX, this.motionY, this.motionZ, func_70182_d(), scatter); - - this.red = 0.8F + worldObj.rand.nextFloat() * 0.2F; - this.green = worldObj.rand.nextFloat() * 0.2F; - this.blue = 1.0F - worldObj.rand.nextFloat() * 0.2F; - } - - @Override - public boolean shouldRenderInPass (int pass) - { - return pass == 1; - } - - protected float getGravityVelocity () - { - return 0.0F; - } - - protected float func_70182_d () - { - return 1.0F; - } - - public void onUpdate () - { - this.motionX *= 0.85D; - this.motionY *= 0.85D; - this.motionZ *= 0.85D; - - // simulated taint swarm motion - ChunkCoordinates c = new ChunkCoordinates((int) this.posX + this.rand.nextInt(7) - this.rand.nextInt(7), (int) this.posY + this.rand.nextInt(6) - 2, (int) this.posZ + this.rand.nextInt(7) - this.rand.nextInt(7)); - - double x = c.posX + 0.5D - this.posX; - double y = c.posY + 0.1D - this.posY; - double z = c.posZ + 0.5D - this.posZ; - this.motionX += (Math.signum(x) * 0.5D - this.motionX) * 0.015D; - this.motionY += (Math.signum(y) * 0.7D - this.motionY) * 0.1D; - this.motionZ += (Math.signum(z) * 0.5D - this.motionZ) * 0.015D; - float angle = (float) (Math.atan2(this.motionZ, this.motionX) * 180.0D / Math.PI) - 90.0F; - float angle2 = MathHelper.wrapAngleTo180_float(angle - this.rotationYaw); - this.rotationYaw += angle2; - - if (this.ticksExisted > 50) setDead(); - - if (this.onGround) - { - this.motionX *= 0.65D; - this.motionY *= 0.65D; - this.motionZ *= 0.65D; - } - super.onUpdate(); - } - - public void writeSpawnData (ByteBuf buf) - { - buf.writeFloat(this.dmg); - buf.writeFloat(this.red); - buf.writeFloat(this.green); - buf.writeFloat(this.blue); - } - - public void readSpawnData (ByteBuf buf) - { - this.dmg = buf.readFloat(); - this.red = buf.readFloat(); - this.green = buf.readFloat(); - this.blue = buf.readFloat(); - } - - protected void onImpact (MovingObjectPosition mop) - { - if (!this.worldObj.isRemote && getThrower() != null) - { - List l = this.worldObj.getEntitiesWithinAABBExcludingEntity(getThrower(), this.boundingBox.expand(1.0D, 1.0D, 1.0D)); - - for (int i = 0; i < l.size(); i++) - { - Entity e = (Entity) l.get(i); - if (e instanceof EntityLivingBase) - { - if (mop.entityHit != null) - { - ((EntityLivingBase) e).attackEntityFrom(new EntityDamageSourceIndirect("taint", this, getThrower()).setMagicDamage(), this.dmg); - if (this.corrosive) - { - try - { - ((EntityLivingBase) e).addPotionEffect(new PotionEffect(Potion.wither.id, 100, 1)); - } - catch (Exception ex) - { - ex.printStackTrace(); - } - } - else - { - try - { - ((EntityLivingBase) e).addPotionEffect(new PotionEffect(Potion.poison.id, 100, 1)); - } - catch (Exception ex) - { - ex.printStackTrace(); - } - } - } - } - } - } - setDead(); - } - - protected boolean canTriggerWalking () - { - return false; - } - - @SideOnly (Side.CLIENT) - public float getShadowSize () - { - return 0.1F; - } - - public void writeEntityToNBT (NBTTagCompound cmp) - { - super.writeEntityToNBT(cmp); - cmp.setFloat(TAG_DAMAGE, this.dmg); - } - - public void readEntityFromNBT (NBTTagCompound cmp) - { - super.readEntityFromNBT(cmp); - this.dmg = cmp.getInteger(TAG_DAMAGE); - } - - public boolean canBeCollidedWith () - { - return false; - } - - public boolean attackEntityFrom (DamageSource s, float f) - { - return false; - } -} diff --git a/src/main/java/taintedmagic/common/handler/ConfigHandler.java b/src/main/java/taintedmagic/common/handler/ConfigHandler.java index f944702..d93230a 100644 --- a/src/main/java/taintedmagic/common/handler/ConfigHandler.java +++ b/src/main/java/taintedmagic/common/handler/ConfigHandler.java @@ -1,7 +1,6 @@ package taintedmagic.common.handler; import net.minecraftforge.common.config.Configuration; -import net.minecraftforge.common.config.Property; import taintedmagic.common.TaintedMagic; public class ConfigHandler @@ -11,7 +10,8 @@ public class ConfigHandler public static boolean useUpdateHandler = true; public static boolean researchTags = true; public static boolean useCustomResearchTabBackground = false; - + public static double baseMaceDamageIncrease = 8.0D; + public static void init () { TaintedMagic.log.info("Loading config"); @@ -21,6 +21,8 @@ public class ConfigHandler useUpdateHandler = config.getBoolean("use_update_handler", "misc", true, "Should update notifications be enabled?"); researchTags = config.getBoolean("research_tags", "research", true, "Setting this to false will disable the '[TaintedMagic]' tag on the research"); useCustomResearchTabBackground = config.getBoolean("use_custom_research_tab_background", "research", false, "Setting this to true will enable the old custom tab background"); + baseMaceDamageIncrease = (double) config + .getFloat("mage_mace_damage_increase_base", "misc", 8.0F, 1.0F, 100.0F, "Defines the base amount of damage to increase wand / staff attack damage by when the Mage's Mace focus is equipped."); config.save(); } diff --git a/src/main/java/taintedmagic/common/handler/TMEventHandler.java b/src/main/java/taintedmagic/common/handler/TMEventHandler.java index 3153aa9..812cd34 100644 --- a/src/main/java/taintedmagic/common/handler/TMEventHandler.java +++ b/src/main/java/taintedmagic/common/handler/TMEventHandler.java @@ -3,15 +3,16 @@ package taintedmagic.common.handler; import java.util.Random; import java.util.UUID; +import baubles.api.BaublesApi; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.PlayerEvent; import cpw.mods.fml.common.gameevent.PlayerEvent.ItemCraftedEvent; -import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.attributes.AttributeModifier; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; +import net.minecraft.init.Blocks; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; @@ -24,19 +25,19 @@ import net.minecraftforge.event.entity.living.LivingAttackEvent; import net.minecraftforge.event.entity.living.LivingDropsEvent; import net.minecraftforge.event.entity.living.LivingEvent; import net.minecraftforge.event.entity.player.ItemTooltipEvent; -import taintedmagic.api.IBloodlust; -import taintedmagic.common.items.wand.foci.FocusUpgrades; +import taintedmagic.common.items.equipment.ItemLumosRing; +import taintedmagic.common.items.tools.ItemHollowDagger; import taintedmagic.common.items.wand.foci.ItemFocusMageMace; +import taintedmagic.common.registry.BlockRegistry; import taintedmagic.common.registry.ItemRegistry; import thaumcraft.api.ThaumcraftApiHelper; import thaumcraft.api.aspects.Aspect; import thaumcraft.api.aspects.AspectList; -import thaumcraft.api.wands.ItemFocusBasic; import thaumcraft.api.wands.StaffRod; import thaumcraft.api.wands.WandRod; import thaumcraft.common.Thaumcraft; import thaumcraft.common.config.Config; -import thaumcraft.common.items.equipment.ItemCrimsonSword; +import thaumcraft.common.items.ItemEssence; import thaumcraft.common.items.wands.ItemWandCasting; import thaumcraft.common.lib.network.playerdata.PacketResearchComplete; @@ -50,22 +51,58 @@ public class TMEventHandler if (event.entity instanceof EntityPlayer) { EntityPlayer p = (EntityPlayer) event.entity; - modifyAttackDamage(p); + /** + * Repair voidtouched items + */ for (int i = 0; i < p.inventory.getSizeInventory(); i++) { ItemStack s = p.inventory.getStackInSlot(i); - if (s != null && s.stackTagCompound != null && s.stackTagCompound.getBoolean("voidtouched")) + if (s != null) { - if (!p.worldObj.isRemote && s.isItemDamaged() && p.ticksExisted % 20 == 0) s.damageItem(-1, (EntityLivingBase) p); + if (s.stackTagCompound != null && s.stackTagCompound.getBoolean("voidtouched")) + { + if (!p.worldObj.isRemote && s.isItemDamaged() && p.ticksExisted % 20 == 0) + { + s.setItemDamage(s.getItemDamage() - 1); + } + } } } + + /** + * Create lumos blocks when the player is holding a wand or staff + * with the lumos focus equipped or when the Lumos ring is equipped. + */ + if (p.getHeldItem() != null && p.getHeldItem().getItem() instanceof ItemWandCasting) + { + ItemStack s = p.getHeldItem(); + ItemWandCasting wand = (ItemWandCasting) s.getItem(); + + if (wand.getFocus(s) != null && wand.getFocus(s) == ItemRegistry.ItemFocusLumos && !p.worldObj.isRemote) createLumos(p, 1); + } + IInventory baub = BaublesApi.getBaubles(p); + if ( (baub.getStackInSlot(1) != null && baub.getStackInSlot(1).getItem() instanceof ItemLumosRing) + || (baub.getStackInSlot(2) != null && baub.getStackInSlot(2).getItem() instanceof ItemLumosRing)) + createLumos(p, 2); } } + /** + * Creates lumos lightsource blocks. + */ + public void createLumos (EntityPlayer p, int meta) + { + int x = Math.round((float) p.posX); + int y = Math.round((float) p.posY) + 1; + int z = Math.round((float) p.posZ); + + if (p.worldObj.getBlock(x, y, z) == Blocks.air) p.worldObj.setBlock(x, y, z, BlockRegistry.BlockLumos, meta, 3); + } + /* - * some hacky code to make the mage's mace work + * Some hacky code to make the mage's mace work... */ public void modifyAttackDamage (EntityPlayer p) { @@ -87,7 +124,7 @@ public class TMEventHandler tag.setString("AttributeName", SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName()); UUID u = UUID.fromString("CB3F55D3-645C-4F38-A497-9C13A33DB5CF"); - AttributeModifier am = new AttributeModifier(u, "Weapon modifier", 15.0D + wand.getFocusPotency(s), 0); + AttributeModifier am = new AttributeModifier(u, "Weapon modifier", ConfigHandler.baseMaceDamageIncrease + wand.getFocusPotency(s), 0); tag.setString("Name", am.getName()); tag.setDouble("Amount", am.getAmount()); @@ -113,7 +150,7 @@ public class TMEventHandler tag.setString("AttributeName", SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName()); UUID u = UUID.fromString("CB3F55D3-645C-4F38-A497-9C13A33DB5CF"); - AttributeModifier am = new AttributeModifier(u, "Weapon modifier", 21.0D + wand.getFocusPotency(s), 0); + AttributeModifier am = new AttributeModifier(u, "Weapon modifier", 6.0D + ConfigHandler.baseMaceDamageIncrease + wand.getFocusPotency(s), 0); tag.setString("Name", am.getName()); tag.setDouble("Amount", am.getAmount()); @@ -153,6 +190,10 @@ public class TMEventHandler if (event.source.getEntity() instanceof EntityPlayer) { EntityPlayer p = (EntityPlayer) event.source.getEntity(); + + /** + * Consume vis for Mage's Mace hits + */ if (p.getHeldItem() != null && p.getHeldItem().getItem() instanceof ItemWandCasting) { ItemStack s = p.getHeldItem(); @@ -171,6 +212,24 @@ public class TMEventHandler } } } + + /** + * Fill phials with blood when an entity is hit with the Hollow + * Dagger + */ + if (p.getHeldItem() != null && p.getHeldItem().getItem() instanceof ItemHollowDagger) + { + for (int i = 0; i < p.inventory.getSizeInventory(); i++) + { + if (p.inventory.getStackInSlot(i) != null && p.inventory.getStackInSlot(i).getItem() instanceof ItemEssence && p.inventory.getStackInSlot(i).getItemDamage() == 0) + { + p.inventory.decrStackSize(i, 1); + + if (p.inventory.addItemStackToInventory(new ItemStack(ItemRegistry.ItemMaterial, 1, 7)) == false) + if (!p.worldObj.isRemote) p.entityDropItem(new ItemStack(ItemRegistry.ItemMaterial, 1, 7), 2.0F); + } + } + } } } @@ -222,18 +281,8 @@ public class TMEventHandler if (event.source.getEntity() instanceof EntityPlayer) { EntityPlayer p = (EntityPlayer) event.source.getEntity(); - if (p.getHeldItem() != null && (p.getHeldItem().getItem() instanceof IBloodlust || p.getHeldItem().getItem() instanceof ItemCrimsonSword)) - { - Random r = new Random(); - ItemStack drops = new ItemStack(ItemRegistry.ItemMaterial, r.nextInt(5), 7); - addDropItem(event, drops); - } - else if (p.getHeldItem() != null && p.getHeldItem().getItem() instanceof ItemWandCasting && ((ItemWandCasting) p.getHeldItem().getItem()).getFocus(p.getHeldItem()) != null && ((ItemWandCasting) p.getHeldItem().getItem()).getFocus(p.getHeldItem()).isUpgradedWith( ((ItemWandCasting) p.getHeldItem().getItem()).getFocusItem(p.getHeldItem()), FocusUpgrades.bloodlust)) - { - Random r = new Random(); - ItemStack drops = new ItemStack(ItemRegistry.ItemMaterial, r.nextInt(5), 7); - addDropItem(event, drops); - } + + // Currently unused } } @@ -255,9 +304,6 @@ public class TMEventHandler event.toolTip.add(1, StatCollector.translateToLocal("item.Focus.cost3")); } } - if (event.itemStack.getItem() instanceof IBloodlust) event.toolTip.add("\u00A74" + StatCollector.translateToLocal("text.bloodlust")); - if (event.itemStack.getItem() instanceof ItemCrimsonSword) event.toolTip.add("\u00A74" + StatCollector.translateToLocal("text.bloodlust")); - if ( (event.itemStack.getItem() instanceof ItemFocusMageMace && ((ItemFocusBasic) event.itemStack.getItem()).isUpgradedWith(event.itemStack, FocusUpgrades.bloodlust)) || (event.itemStack.getItem() instanceof ItemWandCasting && ((ItemWandCasting) event.itemStack.getItem()).getFocus(event.itemStack) != null && ((ItemWandCasting) event.itemStack.getItem()).getFocus(event.itemStack) instanceof ItemFocusMageMace && ((ItemWandCasting) event.itemStack.getItem()).getFocus(event.itemStack).isUpgradedWith( ((ItemWandCasting) event.itemStack.getItem()).getFocusItem(event.itemStack), FocusUpgrades.bloodlust))) event.toolTip.add("\u00A74" + StatCollector.translateToLocal("text.bloodlust")); if (event.itemStack.stackTagCompound != null && event.itemStack.stackTagCompound.getBoolean("voidtouched")) event.toolTip.add("\u00A75" + StatCollector.translateToLocal("text.voidtouched")); } diff --git a/src/main/java/taintedmagic/common/handler/UpdateHandler.java b/src/main/java/taintedmagic/common/handler/UpdateHandler.java index 0927502..bad5e8f 100644 --- a/src/main/java/taintedmagic/common/handler/UpdateHandler.java +++ b/src/main/java/taintedmagic/common/handler/UpdateHandler.java @@ -1,14 +1,11 @@ package taintedmagic.common.handler; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStreamReader; import java.net.URL; import java.util.Scanner; +import net.minecraft.util.EnumChatFormatting; import taintedmagic.common.TaintedMagic; import taintedmagic.common.lib.LibInfo; -import net.minecraft.util.EnumChatFormatting; public class UpdateHandler { diff --git a/src/main/java/taintedmagic/common/handler/WandHandler.java b/src/main/java/taintedmagic/common/handler/WandHandler.java index 4ffcae9..63b8f1c 100644 --- a/src/main/java/taintedmagic/common/handler/WandHandler.java +++ b/src/main/java/taintedmagic/common/handler/WandHandler.java @@ -1,51 +1,49 @@ package taintedmagic.common.handler; -import java.util.ArrayList; -import java.util.Random; - import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; -import net.minecraft.potion.Potion; -import net.minecraft.potion.PotionEffect; -import net.minecraft.world.World; -import taintedmagic.common.TaintedMagic; +import net.minecraft.nbt.NBTTagCompound; import thaumcraft.api.aspects.Aspect; import thaumcraft.api.wands.IWandRodOnUpdate; import thaumcraft.common.Thaumcraft; import thaumcraft.common.config.Config; import thaumcraft.common.items.wands.ItemWandCasting; -import thaumcraft.common.lib.potions.PotionWarpWard; -import net.minecraft.entity.player.EntityPlayer; public class WandHandler implements IWandRodOnUpdate { Aspect aspect; Aspect primals[] = Aspect.getPrimalAspects().toArray(new Aspect[0]); + private static final String TAG_PERIOD = "period"; - public void onUpdate (ItemStack itemstack, EntityPlayer player) + public void onUpdate (ItemStack s, EntityPlayer p) { - if (!player.isPotionActive(Config.potionWarpWardID)) + if (!p.isPotionActive(Config.potionWarpWardID)) { - int permwarp = Thaumcraft.proxy.getPlayerKnowledge().getWarpPerm(player.getCommandSenderName()); + int permwarp = Thaumcraft.proxy.getPlayerKnowledge().getWarpPerm(p.getCommandSenderName()); - int x = permwarp; - if (x == 0) return; + if (permwarp == 0) + { + if (s.stackTagCompound == null) s.stackTagCompound = new NBTTagCompound(); + s.getTagCompound().setInteger(TAG_PERIOD, 0); + return; + } - double fx = 20 * coth(x / 250.0D); - int rfx = Math.min((int) Math.round(fx), 200); - - if (player.ticksExisted % rfx == 0) + // exponential decay at rate of mul / warp (1 / x) + float mul = 10000.0F; + float T = mul / (float) permwarp; + + int rT = Math.round(T); + + if (s.stackTagCompound == null) s.stackTagCompound = new NBTTagCompound(); + s.getTagCompound().setInteger(TAG_PERIOD, rT); + + if (p.ticksExisted % rT == 0) { for (int i = 0; i < primals.length; i++) { - ((ItemWandCasting) itemstack.getItem()).addVis(itemstack, this.primals[i], 1, true); + ((ItemWandCasting) s.getItem()).addVis(s, this.primals[i], 1, true); } } } } - - public double coth (double x) - { - return Math.cosh(x) / Math.sinh(x); - } } diff --git a/src/main/java/taintedmagic/common/items/ItemFlyteCharm.java b/src/main/java/taintedmagic/common/items/ItemFlyteCharm.java index bbd5230..3b99e0c 100644 --- a/src/main/java/taintedmagic/common/items/ItemFlyteCharm.java +++ b/src/main/java/taintedmagic/common/items/ItemFlyteCharm.java @@ -3,16 +3,11 @@ package taintedmagic.common.items; import java.util.ArrayList; import java.util.List; -import org.lwjgl.opengl.GL11; - import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.PlayerEvent; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import net.minecraft.client.Minecraft; -import net.minecraft.client.renderer.OpenGlHelper; -import net.minecraft.client.renderer.Tessellator; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.item.EnumRarity; @@ -22,20 +17,18 @@ import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.ResourceLocation; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.living.LivingEvent; -import taintedmagic.api.IRenderInventoryItem; import taintedmagic.common.TaintedMagic; import taintedmagic.common.helper.TaintedMagicHelper; import thaumcraft.api.IWarpingGear; import thaumcraft.api.aspects.Aspect; import thaumcraft.api.aspects.AspectList; -import thaumcraft.client.lib.UtilsFX; import thaumcraft.codechicken.lib.vec.Vector3; -public class ItemFlyteCharm extends Item implements IWarpingGear, IRenderInventoryItem +public class ItemFlyteCharm extends Item implements IWarpingGear { boolean isFlying = false; - static final int maxBurstCooldown = 40; + static final int maxBurstCooldown = 80; static final AspectList cost = new AspectList().add(Aspect.AIR, 15); static final String TAG_SPRINTING = "isSprinting"; @@ -63,7 +56,9 @@ public class ItemFlyteCharm extends Item implements IWarpingGear, IRenderInvento return TaintedMagic.rarityCreation; } - // Flight manager + /** + * Flight manager + */ @SubscribeEvent public void updateFlight (LivingEvent.LivingUpdateEvent event) { @@ -150,8 +145,8 @@ public class ItemFlyteCharm extends Item implements IWarpingGear, IRenderInvento } else if (getBurstCooldown(s) > 0) { - if (this.maxBurstCooldown - getBurstCooldown(s) < 2) p.moveFlying(0F, 1.0F, 5.0F); - else if (this.maxBurstCooldown - getBurstCooldown(s) < 10) p.setSprinting(false); + if (this.maxBurstCooldown - getBurstCooldown(s) < 4) p.moveFlying(0F, 1.0F * getBurstCooldown(s) / this.maxBurstCooldown, 5.0F * getBurstCooldown(s) / this.maxBurstCooldown); + else if (this.maxBurstCooldown - getBurstCooldown(s) > 5) p.setSprinting(false); } } else @@ -208,47 +203,4 @@ public class ItemFlyteCharm extends Item implements IWarpingGear, IRenderInvento { return 5; } - - @Override - public void render (EntityPlayer p, ItemStack s, float pT) - { - GL11.glPushMatrix(); - - GL11.glEnable(GL11.GL_BLEND); - GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); - - GL11.glTranslated(0, (p != Minecraft.getMinecraft().thePlayer ? 1.62F : 0F) - p.getDefaultEyeHeight() + (p.isSneaking() ? 0.0625 : 0), 0); - - GL11.glRotatef(45, -1, 0, -1); - GL11.glTranslatef(0.0F, -0.5F, -0.2F); - - OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240, 240); - - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glDisable(GL11.GL_CULL_FACE); - - GL11.glShadeModel(GL11.GL_SMOOTH); - GL11.glColor4f(1F, 1F, 1F, 0.8F); - - Tessellator t = Tessellator.instance; - - GL11.glScalef(0.4F, 0.4F, 0.4F); - GL11.glRotatef(p.ticksExisted + pT, 0F, 1F, 0F); - - UtilsFX.bindTexture(circle); - - t.startDrawingQuads(); - t.addVertexWithUV(-1, 0, -1, 0, 0); - t.addVertexWithUV(-1, 0, 1, 0, 1); - t.addVertexWithUV(1, 0, 1, 1, 1); - t.addVertexWithUV(1, 0, -1, 1, 0); - t.draw(); - - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glShadeModel(GL11.GL_FLAT); - GL11.glEnable(GL11.GL_CULL_FACE); - GL11.glDisable(GL11.GL_BLEND); - - GL11.glPopMatrix(); - } } diff --git a/src/main/java/taintedmagic/common/items/ItemMagicFunguar.java b/src/main/java/taintedmagic/common/items/ItemMagicFunguar.java index 5b872d2..21bfecc 100644 --- a/src/main/java/taintedmagic/common/items/ItemMagicFunguar.java +++ b/src/main/java/taintedmagic/common/items/ItemMagicFunguar.java @@ -2,6 +2,8 @@ package taintedmagic.common.items; import java.util.Random; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.item.EnumRarity; @@ -16,8 +18,6 @@ import thaumcraft.common.Thaumcraft; import thaumcraft.common.lib.network.PacketHandler; import thaumcraft.common.lib.network.playerdata.PacketAspectPool; import thaumcraft.common.lib.research.ResearchManager; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class ItemMagicFunguar extends ItemFood { diff --git a/src/main/java/taintedmagic/common/items/ItemMaterial.java b/src/main/java/taintedmagic/common/items/ItemMaterial.java index 3c031c4..364b0da 100644 --- a/src/main/java/taintedmagic/common/items/ItemMaterial.java +++ b/src/main/java/taintedmagic/common/items/ItemMaterial.java @@ -2,7 +2,8 @@ package taintedmagic.common.items; import java.util.List; -import taintedmagic.common.TaintedMagic; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; @@ -12,12 +13,11 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.IIcon; import net.minecraft.util.StatCollector; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; +import taintedmagic.common.TaintedMagic; public class ItemMaterial extends Item { - public int SUBTYPES = 12; + public int SUBTYPES = 13; public IIcon[] icons = new IIcon[SUBTYPES]; public ItemMaterial () @@ -53,9 +53,11 @@ public class ItemMaterial extends Item case 9 : return EnumRarity.uncommon; case 10 : - return EnumRarity.rare; + return EnumRarity.epic; case 11 : - return EnumRarity.uncommon; + return EnumRarity.epic; + case 12 : + return TaintedMagic.rarityCreation; } return EnumRarity.common; } @@ -73,6 +75,18 @@ public class ItemMaterial extends Item return this.icons[i]; } + @Override + public void addInformation (ItemStack s, EntityPlayer p, List l, boolean b) + { + super.addInformation(s, p, l, b); + + if (s.getItemDamage() == 5) + { + l.add(EnumChatFormatting.DARK_PURPLE + StatCollector.translateToLocal("text.shard.1")); + l.add(EnumChatFormatting.DARK_PURPLE + StatCollector.translateToLocal("text.shard.2")); + } + } + @SideOnly (Side.CLIENT) public void getSubItems (Item item, CreativeTabs c, List l) { diff --git a/src/main/java/taintedmagic/common/items/ItemSalis.java b/src/main/java/taintedmagic/common/items/ItemSalis.java new file mode 100644 index 0000000..0847dc8 --- /dev/null +++ b/src/main/java/taintedmagic/common/items/ItemSalis.java @@ -0,0 +1,111 @@ +package taintedmagic.common.items; + +import java.util.List; + +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.EnumRarity; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.util.IIcon; +import net.minecraft.util.Vec3; +import net.minecraft.world.World; +import taintedmagic.common.TaintedMagic; +import thaumcraft.client.fx.ParticleEngine; +import thaumcraft.client.fx.particles.FXSparkle; + +public class ItemSalis extends Item +{ + public int SUBTYPES = 2; + public IIcon[] icons = new IIcon[SUBTYPES]; + + public ItemSalis () + { + this.setCreativeTab(TaintedMagic.tabTaintedMagic); + this.hasSubtypes = true; + this.setUnlocalizedName("ItemSalis"); + } + + @Override + public EnumRarity getRarity (ItemStack s) + { + return TaintedMagic.rarityCreation; + } + + @SideOnly (Side.CLIENT) + public void registerIcons (IIconRegister ir) + { + for (int i = 0; i < icons.length; i++) + this.icons[i] = ir.registerIcon("taintedmagic:ItemSalis" + i); + } + + @SideOnly (Side.CLIENT) + public IIcon getIconFromDamage (int i) + { + return this.icons[i]; + } + + @SideOnly (Side.CLIENT) + public void getSubItems (Item item, CreativeTabs c, List l) + { + for (int i = 0; i < SUBTYPES; i++) + l.add(new ItemStack(this, 1, i)); + } + + public String getUnlocalizedName (ItemStack s) + { + return super.getUnlocalizedName() + "." + s.getItemDamage(); + } + + @Override + public ItemStack onItemRightClick (ItemStack s, World w, EntityPlayer p) + { + int m = s.getItemDamage(); + switch (m) + { + // Weather + case 0 : + { + w.getWorldInfo().setRainTime(w.isRaining() ? 24000 : 0); + w.getWorldInfo().setRaining(!w.isRaining()); + p.playSound("thaumcraft:wind", 0.3F, 1.0F + w.rand.nextFloat() * 0.5F); + p.inventory.decrStackSize(p.inventory.currentItem, 1); + for (int a = 0; a < 15; a++) + { + FXSparkle fx = new FXSparkle(w, p.posX + (w.rand.nextDouble() - w.rand.nextDouble()) * 0.2D, p.boundingBox.minY + 1.25D + (w.rand.nextDouble() - w.rand.nextDouble()) * 0.2D, + p.posZ + (w.rand.nextDouble() - w.rand.nextDouble()) * 0.2D, 1.75F, 7, 3 + w.rand.nextInt(3)); + Vec3 look = p.getLookVec(); + fx.motionX += (look.xCoord * 0.25D) + w.rand.nextGaussian() * 0.0075D * 5.0D; + fx.motionY += (look.yCoord * 0.25D) + w.rand.nextGaussian() * 0.0075D * 5.0D; + fx.motionZ += (look.zCoord * 0.25D) + w.rand.nextGaussian() * 0.0075D * 5.0D; + fx.setGravity(0.5F); + ParticleEngine.instance.addEffect(w, fx); + } + return s; + } + // Time + case 1 : + { + w.setWorldTime(w.isDaytime() ? 14000 : 24000); + p.playSound("thaumcraft:wind", 0.3F, 1.0F + w.rand.nextFloat() * 0.5F); + p.inventory.decrStackSize(p.inventory.currentItem, 1); + for (int a = 0; a < 15; a++) + { + FXSparkle fx = new FXSparkle(w, p.posX + (w.rand.nextDouble() - w.rand.nextDouble()) * 0.2D, p.boundingBox.minY + 1.25D + (w.rand.nextDouble() - w.rand.nextDouble()) * 0.2D, + p.posZ + (w.rand.nextDouble() - w.rand.nextDouble()) * 0.2D, 1.75F, 6, 3 + w.rand.nextInt(3)); + Vec3 look = p.getLookVec(); + fx.motionX += (look.xCoord * 0.25D) + w.rand.nextGaussian() * 0.0075D * 5.0D; + fx.motionY += (look.yCoord * 0.25D) + w.rand.nextGaussian() * 0.0075D * 5.0D; + fx.motionZ += (look.zCoord * 0.25D) + w.rand.nextGaussian() * 0.0075D * 5.0D; + fx.setGravity(0.5F); + ParticleEngine.instance.addEffect(w, fx); + } + return s; + } + } + return s; + } +} diff --git a/src/main/java/taintedmagic/common/items/ItemVoidsentBlood.java b/src/main/java/taintedmagic/common/items/ItemVoidsentBlood.java index 205f2a7..1c06940 100644 --- a/src/main/java/taintedmagic/common/items/ItemVoidsentBlood.java +++ b/src/main/java/taintedmagic/common/items/ItemVoidsentBlood.java @@ -1,20 +1,15 @@ package taintedmagic.common.items; -import java.util.List; - -import net.minecraft.client.gui.GuiScreen; -import net.minecraft.entity.player.EntityPlayer; +import cpw.mods.fml.common.registry.GameRegistry; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.item.EnumRarity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import net.minecraft.util.StatCollector; import net.minecraftforge.oredict.RecipeSorter; import net.minecraftforge.oredict.RecipeSorter.Category; import taintedmagic.api.RecipeVoidsentBlood; import taintedmagic.common.TaintedMagic; -import cpw.mods.fml.common.registry.GameRegistry; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class ItemVoidsentBlood extends Item { diff --git a/src/main/java/taintedmagic/common/items/blocks/ItemBlockShadowOre.java b/src/main/java/taintedmagic/common/items/blocks/ItemBlockShadowOre.java index 2286fb8..9d0ba93 100644 --- a/src/main/java/taintedmagic/common/items/blocks/ItemBlockShadowOre.java +++ b/src/main/java/taintedmagic/common/items/blocks/ItemBlockShadowOre.java @@ -1,11 +1,11 @@ package taintedmagic.common.items.blocks; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.item.EnumRarity; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class ItemBlockShadowOre extends ItemBlock { diff --git a/src/main/java/taintedmagic/common/items/equipment/ItemLumosRing.java b/src/main/java/taintedmagic/common/items/equipment/ItemLumosRing.java new file mode 100644 index 0000000..cd89b3b --- /dev/null +++ b/src/main/java/taintedmagic/common/items/equipment/ItemLumosRing.java @@ -0,0 +1,62 @@ +package taintedmagic.common.items.equipment; + +import baubles.api.BaubleType; +import baubles.api.IBauble; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.entity.EntityLivingBase; +import net.minecraft.item.EnumRarity; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import taintedmagic.common.TaintedMagic; + +public class ItemLumosRing extends Item implements IBauble +{ + public ItemLumosRing () + { + this.setCreativeTab(TaintedMagic.tabTaintedMagic); + this.setTextureName("taintedmagic:ItemLumosRing"); + this.setMaxDamage(-1); + this.setMaxStackSize(1); + this.setUnlocalizedName("ItemLumosRing"); + } + + @SideOnly (Side.CLIENT) + public EnumRarity getRarity (ItemStack s) + { + return EnumRarity.uncommon; + } + + @Override + public boolean canEquip (ItemStack s, EntityLivingBase e) + { + return true; + } + + @Override + public boolean canUnequip (ItemStack s, EntityLivingBase e) + { + return true; + } + + @Override + public BaubleType getBaubleType (ItemStack s) + { + return BaubleType.RING; + } + + @Override + public void onEquipped (ItemStack s, EntityLivingBase e) + { + } + + @Override + public void onUnequipped (ItemStack s, EntityLivingBase e) + { + } + + @Override + public void onWornTick (ItemStack s, EntityLivingBase e) + { + } +} diff --git a/src/main/java/taintedmagic/common/items/equipment/ItemShadowFortressArmor.java b/src/main/java/taintedmagic/common/items/equipment/ItemShadowFortressArmor.java index e054f4e..c1626ed 100644 --- a/src/main/java/taintedmagic/common/items/equipment/ItemShadowFortressArmor.java +++ b/src/main/java/taintedmagic/common/items/equipment/ItemShadowFortressArmor.java @@ -18,7 +18,6 @@ import taintedmagic.common.TaintedMagic; import taintedmagic.common.registry.ItemRegistry; import thaumcraft.api.IVisDiscountGear; import thaumcraft.api.IWarpingGear; -import thaumcraft.api.ItemApi; import thaumcraft.api.aspects.Aspect; import thaumcraft.common.items.armor.ItemFortressArmor; diff --git a/src/main/java/taintedmagic/common/items/equipment/ItemVoidFortressArmor.java b/src/main/java/taintedmagic/common/items/equipment/ItemVoidFortressArmor.java index 2995ac3..e90ad31 100644 --- a/src/main/java/taintedmagic/common/items/equipment/ItemVoidFortressArmor.java +++ b/src/main/java/taintedmagic/common/items/equipment/ItemVoidFortressArmor.java @@ -2,25 +2,21 @@ package taintedmagic.common.items.equipment; import java.util.List; -import taintedmagic.common.TaintedMagic; -import thaumcraft.api.IVisDiscountGear; -import thaumcraft.api.IWarpingGear; -import thaumcraft.api.ItemApi; -import thaumcraft.api.aspects.Aspect; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.init.Items; -import net.minecraft.item.EnumRarity; -import net.minecraft.item.ItemArmor; -import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.StatCollector; import net.minecraft.world.World; +import taintedmagic.common.TaintedMagic; +import thaumcraft.api.IVisDiscountGear; +import thaumcraft.api.IWarpingGear; +import thaumcraft.api.ItemApi; +import thaumcraft.api.aspects.Aspect; import thaumcraft.common.items.armor.ItemFortressArmor; public class ItemVoidFortressArmor extends ItemFortressArmor implements IWarpingGear, IVisDiscountGear diff --git a/src/main/java/taintedmagic/common/items/equipment/ItemVoidmetalGoggles.java b/src/main/java/taintedmagic/common/items/equipment/ItemVoidmetalGoggles.java index 2c4345a..0f80086 100644 --- a/src/main/java/taintedmagic/common/items/equipment/ItemVoidmetalGoggles.java +++ b/src/main/java/taintedmagic/common/items/equipment/ItemVoidmetalGoggles.java @@ -1,19 +1,18 @@ package taintedmagic.common.items.equipment; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumRarity; -import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import taintedmagic.common.TaintedMagic; import thaumcraft.api.IWarpingGear; import thaumcraft.api.aspects.Aspect; import thaumcraft.common.items.armor.ItemGoggles; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class ItemVoidmetalGoggles extends ItemGoggles implements IWarpingGear { diff --git a/src/main/java/taintedmagic/common/items/equipment/ItemVoidwalkerBoots.java b/src/main/java/taintedmagic/common/items/equipment/ItemVoidwalkerBoots.java index 1ebee8a..e9bb5e7 100644 --- a/src/main/java/taintedmagic/common/items/equipment/ItemVoidwalkerBoots.java +++ b/src/main/java/taintedmagic/common/items/equipment/ItemVoidwalkerBoots.java @@ -2,20 +2,19 @@ package taintedmagic.common.items.equipment; import java.util.List; +import cpw.mods.fml.common.eventhandler.SubscribeEvent; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumRarity; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.DamageSource; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.StatCollector; import net.minecraft.world.World; import net.minecraftforge.common.ISpecialArmor; import net.minecraftforge.common.MinecraftForge; -import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.event.entity.living.LivingEvent; import taintedmagic.common.TaintedMagic; import taintedmagic.common.registry.ItemRegistry; @@ -24,9 +23,10 @@ import thaumcraft.api.IRunicArmor; import thaumcraft.api.IVisDiscountGear; import thaumcraft.api.IWarpingGear; import thaumcraft.api.aspects.Aspect; +import thaumcraft.client.fx.ParticleEngine; +import thaumcraft.client.fx.particles.FXWispEG; import thaumcraft.common.Thaumcraft; import thaumcraft.common.items.armor.Hover; -import cpw.mods.fml.common.eventhandler.SubscribeEvent; public class ItemVoidwalkerBoots extends ItemArmor implements IVisDiscountGear, IWarpingGear, IRunicArmor, IRepairable, ISpecialArmor { @@ -122,6 +122,13 @@ public class ItemVoidwalkerBoots extends ItemArmor implements IVisDiscountGear, super.onArmorTick(w, p, s); if ( (!w.isRemote) && (s.getItemDamage() > 0) && (p.ticksExisted % 20 == 0)) s.damageItem(-1, p); + double motion = Math.abs(p.motionX) + Math.abs(p.motionZ) + Math.abs(0.5 * p.motionY); + if ( w.isRemote && (motion > .1D || !p.onGround) && w.rand.nextInt(5) == 0) + { + FXWispEG ef = new FXWispEG(w, (double) (p.posX + ( (Math.random() - Math.random()) * 0.5F)), (double) (p.boundingBox.minY + .05F + ( (Math.random() - Math.random()) * 0.1F)), (double) (p.posZ + ( (Math.random() - Math.random()) * 0.5F)), p); + ParticleEngine.instance.addEffect(w, ef); + } + if (p.moveForward > 0.0F) { if ( (p.worldObj.isRemote) && (!p.isSneaking())) diff --git a/src/main/java/taintedmagic/common/items/equipment/ItemVoidwalkerSash.java b/src/main/java/taintedmagic/common/items/equipment/ItemVoidwalkerSash.java index a60cb2c..ce2b8f5 100644 --- a/src/main/java/taintedmagic/common/items/equipment/ItemVoidwalkerSash.java +++ b/src/main/java/taintedmagic/common/items/equipment/ItemVoidwalkerSash.java @@ -2,6 +2,11 @@ package taintedmagic.common.items.equipment; import java.util.List; +import baubles.api.BaubleType; +import baubles.api.IBauble; +import baubles.common.lib.PlayerHandler; +import cpw.mods.fml.common.FMLCommonHandler; +import cpw.mods.fml.common.eventhandler.SubscribeEvent; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumRarity; @@ -17,11 +22,6 @@ import thaumcraft.api.IWarpingGear; import thaumcraft.api.ItemRunic; import thaumcraft.common.Thaumcraft; import thaumcraft.common.items.armor.Hover; -import baubles.api.BaubleType; -import baubles.api.IBauble; -import baubles.common.lib.PlayerHandler; -import cpw.mods.fml.common.FMLCommonHandler; -import cpw.mods.fml.common.eventhandler.SubscribeEvent; public class ItemVoidwalkerSash extends ItemRunic implements IRunicArmor, IWarpingGear, IBauble { diff --git a/src/main/java/taintedmagic/common/items/equipment/ItemWarpedGoggles.java b/src/main/java/taintedmagic/common/items/equipment/ItemWarpedGoggles.java index 649d712..86fde71 100644 --- a/src/main/java/taintedmagic/common/items/equipment/ItemWarpedGoggles.java +++ b/src/main/java/taintedmagic/common/items/equipment/ItemWarpedGoggles.java @@ -1,30 +1,15 @@ package taintedmagic.common.items.equipment; -import java.util.List; - import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; -import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.init.Items; import net.minecraft.item.EnumRarity; -import net.minecraft.item.Item; -import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; -import net.minecraft.util.EnumChatFormatting; -import net.minecraft.util.IIcon; -import net.minecraft.util.StatCollector; import taintedmagic.common.TaintedMagic; import taintedmagic.common.registry.ItemRegistry; -import thaumcraft.api.IGoggles; -import thaumcraft.api.IRepairable; -import thaumcraft.api.IVisDiscountGear; import thaumcraft.api.IWarpingGear; -import thaumcraft.api.aspects.Aspect; -import thaumcraft.api.nodes.IRevealer; -import thaumcraft.common.config.ConfigItems; import thaumcraft.common.items.armor.ItemGoggles; public class ItemWarpedGoggles extends ItemGoggles implements IWarpingGear diff --git a/src/main/java/taintedmagic/common/items/tools/ItemCrystalDagger.java b/src/main/java/taintedmagic/common/items/tools/ItemHollowDagger.java similarity index 57% rename from src/main/java/taintedmagic/common/items/tools/ItemCrystalDagger.java rename to src/main/java/taintedmagic/common/items/tools/ItemHollowDagger.java index dc770f6..e4441a1 100644 --- a/src/main/java/taintedmagic/common/items/tools/ItemCrystalDagger.java +++ b/src/main/java/taintedmagic/common/items/tools/ItemHollowDagger.java @@ -1,22 +1,20 @@ package taintedmagic.common.items.tools; -import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumRarity; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; -import taintedmagic.api.IBloodlust; import taintedmagic.common.TaintedMagic; import thaumcraft.api.IRepairable; -public class ItemCrystalDagger extends ItemSword implements IBloodlust, IRepairable +public class ItemHollowDagger extends ItemSword implements IRepairable { - public ItemCrystalDagger (ToolMaterial m) + public ItemHollowDagger (ToolMaterial m) { super(m); this.setCreativeTab(TaintedMagic.tabTaintedMagic); - this.setUnlocalizedName("ItemCrystalDagger"); + this.setUnlocalizedName("ItemHollowDagger"); this.setMaxStackSize(1); - this.setTextureName("taintedmagic:ItemCrystalDagger"); + this.setTextureName("taintedmagic:ItemHollowDagger"); } @Override diff --git a/src/main/java/taintedmagic/common/items/tools/ItemKatana.java b/src/main/java/taintedmagic/common/items/tools/ItemKatana.java index cf06c05..415042f 100644 --- a/src/main/java/taintedmagic/common/items/tools/ItemKatana.java +++ b/src/main/java/taintedmagic/common/items/tools/ItemKatana.java @@ -14,13 +14,14 @@ import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.Tessellator; import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; +import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumAction; import net.minecraft.item.EnumRarity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.server.MinecraftServer; @@ -30,20 +31,22 @@ import net.minecraft.util.MathHelper; import net.minecraft.util.MovingObjectPosition; import net.minecraft.util.ResourceLocation; import net.minecraft.util.StatCollector; +import net.minecraft.util.Vec3; import net.minecraft.world.World; import taintedmagic.api.IHeldItemHUD; import taintedmagic.api.IRenderInventoryItem; import taintedmagic.client.model.ModelKatana; import taintedmagic.client.model.ModelSaya; import taintedmagic.common.TaintedMagic; -import taintedmagic.common.entities.EntityTaintBubble; import taintedmagic.common.network.PacketHandler; import taintedmagic.common.network.PacketKatanaAttack; import thaumcraft.api.IRepairable; import thaumcraft.api.IWarpingGear; import thaumcraft.client.lib.UtilsFX; import thaumcraft.common.config.Config; +import thaumcraft.common.entities.monster.EntityTaintSwarm; import thaumcraft.common.entities.projectile.EntityExplosiveOrb; +import thaumcraft.common.lib.utils.EntityUtils; public class ItemKatana extends Item implements IWarpingGear, IRepairable, IRenderInventoryItem, IHeldItemHUD { @@ -224,7 +227,7 @@ public class ItemKatana extends Item implements IWarpingGear, IRepairable, IRend super.onPlayerStoppedUsing(s, w, p, i); Random r = new Random(); - if (!hasAnyInscription(s) || !isFullyCharged(p) || p.isSneaking() || getInscription(s) == 2) + if (isFullyCharged(p) && (!hasAnyInscription(s) || p.isSneaking() || getInscription(s) == 2)) { boolean leech = (getInscription(s) == 2 && isFullyCharged(p)); boolean b = false; @@ -232,7 +235,7 @@ public class ItemKatana extends Item implements IWarpingGear, IRepairable, IRend if (w.isRemote) { MovingObjectPosition mop = Minecraft.getMinecraft().objectMouseOver; - float mul = Math.min(1.0F + (float) this.ticksInUse / 40.0F, 2.0F); + float mul = 2.0F; if (mop.entityHit != null) PacketHandler.INSTANCE.sendToServer(new PacketKatanaAttack(mop.entityHit, p, this.getAttackDamage(s) * mul, leech)); p.swingItem(); @@ -246,7 +249,7 @@ public class ItemKatana extends Item implements IWarpingGear, IRepairable, IRend case 0 : { EntityExplosiveOrb proj = new EntityExplosiveOrb(w, p); - proj.strength = getAttackDamage(s) * 0.5F; + proj.strength = getAttackDamage(s) * .25F; proj.posX += proj.motionX; proj.posY += proj.motionY; proj.posZ += proj.motionZ; @@ -256,30 +259,33 @@ public class ItemKatana extends Item implements IWarpingGear, IRepairable, IRend } case 1 : { - for (int a = 0; a < 75; a++) + Entity look = EntityUtils.getPointedEntity(w, p, 0.0D, 32.0D, 1.1F); + if (look != null && look instanceof EntityLivingBase) { - EntityTaintBubble proj = new EntityTaintBubble(w, p, 5.0F, getAttackDamage(s) * 2.0F, false); - proj.posX += proj.motionX; - proj.posY += proj.motionY; - proj.posZ += proj.motionZ; - if (!w.isRemote) w.spawnEntityInWorld(proj); - p.swingItem(); + EntityTaintSwarm e = new EntityTaintSwarm(w); + Vec3 v = p.getLookVec(); + e.setLocationAndAngles(p.posX + v.xCoord / 2.0D, p.posY + p.getEyeHeight() + v.yCoord / 2.0D, p.posZ + v.zCoord / 2.0D, p.rotationYaw, p.rotationPitch); + e.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(this.getAttackDamage(s) * 2); + e.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(this.getAttackDamage(s)); + e.setTarget(look); + e.setIsSummoned(true); + if (!w.isRemote) w.spawnEntityInWorld(e); + } + p.swingItem(); break; } default : break; } } - s.stackTagCompound = new NBTTagCompound(); - s.getTagCompound().setInteger("inscription", 1); } private boolean isFullyCharged (EntityPlayer p) { - float f = Math.min((float) this.ticksInUse / 15.0F, 2.0F); + float f = Math.min((float) this.ticksInUse / 10.0F, 1.0F); - if (f == 2.0F) return true; + if (f == 1.0F) return true; else return false; } @@ -288,7 +294,7 @@ public class ItemKatana extends Item implements IWarpingGear, IRepairable, IRend { Tessellator t = Tessellator.instance; - float tickFract = Math.min((float) p.getItemInUseDuration() / 30.0F, 1.0F); + float tickFract = Math.min((float) p.getItemInUseDuration() / 10.0F, 1.0F); int x = res.getScaledWidth() / 2 + 725; int x2 = x + 16; diff --git a/src/main/java/taintedmagic/common/items/tools/ItemPrimordialEdge.java b/src/main/java/taintedmagic/common/items/tools/ItemPrimordialEdge.java index e592198..2ea8c32 100644 --- a/src/main/java/taintedmagic/common/items/tools/ItemPrimordialEdge.java +++ b/src/main/java/taintedmagic/common/items/tools/ItemPrimordialEdge.java @@ -17,8 +17,8 @@ import net.minecraft.util.DamageSource; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.StatCollector; import net.minecraft.world.World; -import taintedmagic.api.IBloodlust; import taintedmagic.common.TaintedMagic; +import taintedmagic.common.helper.TaintedMagicHelper; import thaumcraft.api.IRepairable; import thaumcraft.api.IWarpingGear; @@ -83,11 +83,8 @@ public class ItemPrimordialEdge extends ItemSword implements IWarpingGear, IRepa { if ( (eo.isEntityAlive()) && (!eo.isEntityInvulnerable())) { - double d = pointDistanceSpace(eo.posX, eo.posY, eo.posZ, p); - if (d < 2.0D) - { - eo.attackEntityFrom(DamageSource.magic, 1.0F); - } + double d = TaintedMagicHelper.getDistanceTo(eo.posX, eo.posY, eo.posZ, p); + if (d < 2.0D) eo.attackEntityFrom(DamageSource.magic, 5.0F); } double var3 = (p.posX + 0.5D - eo.posX) / 20.0D; @@ -116,14 +113,6 @@ public class ItemPrimordialEdge extends ItemSword implements IWarpingGear, IRepa } } - public double pointDistanceSpace (double x, double y, double z, EntityPlayer p) - { - double xvar = p.posX + 0.5D - x; - double yvar = p.posY + 0.5D - y; - double zvar = p.posZ + 0.5D - z; - return xvar * xvar + yvar * yvar + zvar * zvar; - } - @Override public void addInformation (ItemStack s, EntityPlayer p, List l, boolean b) { diff --git a/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalAxe.java b/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalAxe.java index 67b8964..e0730b6 100644 --- a/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalAxe.java +++ b/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalAxe.java @@ -1,11 +1,11 @@ package taintedmagic.common.items.tools; -import taintedmagic.common.TaintedMagic; -import taintedmagic.common.registry.ItemRegistry; -import thaumcraft.api.IRepairable; import net.minecraft.item.EnumRarity; import net.minecraft.item.ItemAxe; import net.minecraft.item.ItemStack; +import taintedmagic.common.TaintedMagic; +import taintedmagic.common.registry.ItemRegistry; +import thaumcraft.api.IRepairable; public class ItemShadowmetalAxe extends ItemAxe implements IRepairable { diff --git a/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalHoe.java b/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalHoe.java index 43e53b6..6bf07ea 100644 --- a/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalHoe.java +++ b/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalHoe.java @@ -1,5 +1,7 @@ package taintedmagic.common.items.tools; +import cpw.mods.fml.common.FMLCommonHandler; +import cpw.mods.fml.common.eventhandler.SubscribeEvent; import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; @@ -12,8 +14,6 @@ import net.minecraftforge.event.entity.player.UseHoeEvent; import taintedmagic.common.TaintedMagic; import taintedmagic.common.registry.ItemRegistry; import thaumcraft.api.IRepairable; -import cpw.mods.fml.common.FMLCommonHandler; -import cpw.mods.fml.common.eventhandler.SubscribeEvent; public class ItemShadowmetalHoe extends ItemHoe implements IRepairable { diff --git a/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalSpade.java b/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalSpade.java index 8f23404..77a0c26 100644 --- a/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalSpade.java +++ b/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalSpade.java @@ -1,11 +1,11 @@ package taintedmagic.common.items.tools; -import taintedmagic.common.TaintedMagic; -import taintedmagic.common.registry.ItemRegistry; -import thaumcraft.api.IRepairable; import net.minecraft.item.EnumRarity; import net.minecraft.item.ItemSpade; import net.minecraft.item.ItemStack; +import taintedmagic.common.TaintedMagic; +import taintedmagic.common.registry.ItemRegistry; +import thaumcraft.api.IRepairable; public class ItemShadowmetalSpade extends ItemSpade implements IRepairable { diff --git a/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalSword.java b/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalSword.java index 8fd4f00..2850188 100644 --- a/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalSword.java +++ b/src/main/java/taintedmagic/common/items/tools/ItemShadowmetalSword.java @@ -1,11 +1,11 @@ package taintedmagic.common.items.tools; -import taintedmagic.common.TaintedMagic; -import taintedmagic.common.registry.ItemRegistry; -import thaumcraft.api.IRepairable; import net.minecraft.item.EnumRarity; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; +import taintedmagic.common.TaintedMagic; +import taintedmagic.common.registry.ItemRegistry; +import thaumcraft.api.IRepairable; public class ItemShadowmetalSword extends ItemSword implements IRepairable { diff --git a/src/main/java/taintedmagic/common/items/wand/ItemWandCap.java b/src/main/java/taintedmagic/common/items/wand/ItemWandCap.java index a967322..8657962 100644 --- a/src/main/java/taintedmagic/common/items/wand/ItemWandCap.java +++ b/src/main/java/taintedmagic/common/items/wand/ItemWandCap.java @@ -2,6 +2,8 @@ package taintedmagic.common.items.wand; import java.util.List; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.EnumRarity; @@ -9,8 +11,6 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import taintedmagic.common.TaintedMagic; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class ItemWandCap extends Item { diff --git a/src/main/java/taintedmagic/common/items/wand/ItemWandRod.java b/src/main/java/taintedmagic/common/items/wand/ItemWandRod.java index b959a2c..efcbb02 100644 --- a/src/main/java/taintedmagic/common/items/wand/ItemWandRod.java +++ b/src/main/java/taintedmagic/common/items/wand/ItemWandRod.java @@ -2,18 +2,15 @@ package taintedmagic.common.items.wand; import java.util.List; -import taintedmagic.common.TaintedMagic; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumRarity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.IIcon; -import net.minecraft.util.StatCollector; +import taintedmagic.common.TaintedMagic; public class ItemWandRod extends Item { diff --git a/src/main/java/taintedmagic/common/items/wand/foci/FocusUpgrades.java b/src/main/java/taintedmagic/common/items/wand/foci/FocusUpgrades.java index 59a7485..6ba54b5 100644 --- a/src/main/java/taintedmagic/common/items/wand/foci/FocusUpgrades.java +++ b/src/main/java/taintedmagic/common/items/wand/foci/FocusUpgrades.java @@ -8,31 +8,27 @@ import thaumcraft.api.wands.FocusUpgradeType; public class FocusUpgrades { public static FocusUpgradeType sanity; - public static FocusUpgradeType bloodlust; public static FocusUpgradeType antibody; public static FocusUpgradeType corrosive; public static FocusUpgradeType persistent; - public static FocusUpgradeType maxima; - public static FocusUpgradeType glowpet; public static FocusUpgradeType diffusion; public static void init () { - int ID = 60; - sanity = new FocusUpgradeType(ID--, new ResourceLocation("taintedmagic:textures/foci/IconSanity.png"), "focus.upgrade.sanity.name", "focus.upgrade.sanity.text", new AspectList().add(Aspect.MIND, 1).add(Aspect.HEAL, 1)); + int idx = 63; + sanity = new FocusUpgradeType(idx++, new ResourceLocation("taintedmagic:textures/foci/IconSanity.png"), "focus.upgrade.sanity.name", "focus.upgrade.sanity.text", + new AspectList().add(Aspect.MIND, 1).add(Aspect.HEAL, 1)); - bloodlust = new FocusUpgradeType(ID--, new ResourceLocation("taintedmagic:textures/foci/IconBloodlust.png"), "focus.upgrade.bloodlust.name", "focus.upgrade.bloodlust.text", new AspectList().add(Aspect.WEAPON, 1).add(Aspect.HEAL, 1)); + antibody = new FocusUpgradeType(idx++, new ResourceLocation("taintedmagic:textures/foci/IconAntibody.png"), "focus.upgrade.antibody.name", "focus.upgrade.antibody.text", + new AspectList().add(Aspect.TAINT, 1).add(Aspect.HEAL, 1)); - antibody = new FocusUpgradeType(ID--, new ResourceLocation("taintedmagic:textures/foci/IconAntibody.png"), "focus.upgrade.antibody.name", "focus.upgrade.antibody.text", new AspectList().add(Aspect.TAINT, 1).add(Aspect.HEAL, 1)); + corrosive = new FocusUpgradeType(idx++, new ResourceLocation("taintedmagic:textures/foci/IconCorrosive.png"), "focus.upgrade.corrosive.name", "focus.upgrade.corrosive.text", + new AspectList().add(Aspect.TAINT, 1).add(Aspect.POISON, 1)); - corrosive = new FocusUpgradeType(ID--, new ResourceLocation("taintedmagic:textures/foci/IconCorrosive.png"), "focus.upgrade.corrosive.name", "focus.upgrade.corrosive.text", new AspectList().add(Aspect.TAINT, 1).add(Aspect.POISON, 1)); + persistent = new FocusUpgradeType(idx++, new ResourceLocation("taintedmagic:textures/foci/IconPersistent.png"), "focus.upgrade.persistent.name", "focus.upgrade.persistent.text", + new AspectList().add(Aspect.ARMOR, 1).add(Aspect.MOTION, 1).add(Aspect.ENERGY, 1)); - persistent = new FocusUpgradeType(ID--, new ResourceLocation("taintedmagic:textures/foci/IconPersistent.png"), "focus.upgrade.persistent.name", "focus.upgrade.persistent.text", new AspectList().add(Aspect.ARMOR, 1).add(Aspect.MOTION, 1).add(Aspect.ENERGY, 1)); - - maxima = new FocusUpgradeType(ID--, new ResourceLocation("taintedmagic:textures/foci/IconMaxima.png"), "focus.upgrade.maxima.name", "focus.upgrade.maxima.text", new AspectList().add(Aspect.LIGHT, 4).add(Aspect.AURA, 1).add(Aspect.ENERGY, 4)); - - glowpet = new FocusUpgradeType(ID--, new ResourceLocation("taintedmagic:textures/foci/IconGlowpet.png"), "focus.upgrade.glowpet.name", "focus.upgrade.glowpet.text", new AspectList().add(Aspect.MOTION, 1).add(Aspect.LIGHT, 4).add(Aspect.ENERGY, 4)); - - diffusion = new FocusUpgradeType(ID--, new ResourceLocation("taintedmagic:textures/foci/IconDiffusion.png"), "focus.upgrade.diffusion.name", "focus.upgrade.diffusion.text", new AspectList().add(Aspect.DARKNESS, 1).add(Aspect.ELDRITCH, 4).add(Aspect.AURA, 4)); + diffusion = new FocusUpgradeType(idx++, new ResourceLocation("taintedmagic:textures/foci/IconDiffusion.png"), "focus.upgrade.diffusion.name", "focus.upgrade.diffusion.text", + new AspectList().add(Aspect.DARKNESS, 1).add(Aspect.ELDRITCH, 2).add(Aspect.AURA, 4)); } } diff --git a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusDarkMatter.java b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusDarkMatter.java index cec1e55..923b11f 100644 --- a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusDarkMatter.java +++ b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusDarkMatter.java @@ -1,11 +1,10 @@ package taintedmagic.common.items.wand.foci; -import java.util.Random; - +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; -import net.minecraft.potion.PotionEffect; import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; @@ -17,14 +16,12 @@ import thaumcraft.api.aspects.AspectList; import thaumcraft.api.wands.FocusUpgradeType; import thaumcraft.api.wands.ItemFocusBasic; import thaumcraft.common.Thaumcraft; -import thaumcraft.common.config.Config; import thaumcraft.common.items.wands.ItemWandCasting; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class ItemFocusDarkMatter extends ItemFocusBasic { IIcon depthIcon = null; + IIcon ornIcon = null; private static final AspectList cost = new AspectList().add(Aspect.ENTROPY, 20).add(Aspect.FIRE, 20); private static final AspectList costSanity = new AspectList().add(Aspect.ENTROPY, 20).add(Aspect.FIRE, 50).add(Aspect.ORDER, 50); @@ -41,6 +38,7 @@ public class ItemFocusDarkMatter extends ItemFocusBasic { this.icon = ir.registerIcon("taintedmagic:ItemFocusDarkMatter"); this.depthIcon = ir.registerIcon("taintedmagic:ItemFocusDarkMatter_depth"); + this.ornIcon = ir.registerIcon("thaumcraft:focus_warding_orn"); } public IIcon getFocusDepthLayerIcon (ItemStack s) @@ -48,6 +46,30 @@ public class ItemFocusDarkMatter extends ItemFocusBasic return this.depthIcon; } + public IIcon getOrnament (ItemStack s) + { + return this.ornIcon; + } + + @SideOnly (Side.CLIENT) + public boolean requiresMultipleRenderPasses () + { + return true; + } + + @SideOnly (Side.CLIENT) + public int getRenderPasses (int m) + { + return 2; + } + + @Override + @SideOnly (Side.CLIENT) + public IIcon getIconFromDamageForRenderPass (int meta, int pass) + { + return (pass == 0) ? this.ornIcon : this.icon; + } + public String getSortingHelper (ItemStack s) { return "ELDRITCH" + super.getSortingHelper(s); @@ -123,7 +145,8 @@ public class ItemFocusDarkMatter extends ItemFocusBasic { for (int a = 0; a < 2 + wand.getFocusPotency(s); a++) { - EntityDiffusion proj = new EntityDiffusion(p.worldObj, p, isUpgradedWith(wand.getFocusItem(s), FocusUpgradeType.enlarge) ? 15.0F : 8.0F, 12F + wand.getFocusPotency(s), isUpgradedWith(wand.getFocusItem(s), FocusUpgrades.corrosive)); + EntityDiffusion proj = new EntityDiffusion(p.worldObj, p, isUpgradedWith(wand.getFocusItem(s), FocusUpgradeType.enlarge) ? 15.0F : 9.0F, 12F + wand.getFocusPotency(s), + isUpgradedWith(wand.getFocusItem(s), FocusUpgrades.corrosive)); proj.posX += proj.motionX; proj.posY += proj.motionY; proj.posZ += proj.motionZ; @@ -144,28 +167,15 @@ public class ItemFocusDarkMatter extends ItemFocusBasic switch (r) { case 1 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency }; case 2 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency }; case 3 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency, - FocusUpgrades.diffusion, - FocusUpgrades.sanity }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency, FocusUpgrades.corrosive, FocusUpgrades.sanity }; case 4 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency }; case 5 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency, - FocusUpgrades.corrosive }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency, FocusUpgrades.diffusion }; } return null; } diff --git a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusLumos.java b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusLumos.java index b17a64f..98529c4 100644 --- a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusLumos.java +++ b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusLumos.java @@ -2,35 +2,26 @@ package taintedmagic.common.items.wand.foci; import java.util.List; -import net.minecraft.client.Minecraft; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; -import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.MovingObjectPosition; -import net.minecraft.util.StatCollector; import net.minecraft.world.World; import taintedmagic.common.TaintedMagic; -import taintedmagic.common.blocks.BlockLumos; -import taintedmagic.common.entities.EntityGlowpet; import taintedmagic.common.registry.BlockRegistry; import thaumcraft.api.aspects.Aspect; import thaumcraft.api.aspects.AspectList; import thaumcraft.api.wands.FocusUpgradeType; import thaumcraft.api.wands.ItemFocusBasic; import thaumcraft.client.fx.ParticleEngine; -import thaumcraft.client.fx.bolt.FXLightningBolt; import thaumcraft.client.fx.particles.FXSparkle; -import thaumcraft.client.fx.particles.FXWisp; import thaumcraft.common.items.wands.ItemWandCasting; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class ItemFocusLumos extends ItemFocusBasic { private static final AspectList cost = new AspectList().add(Aspect.AIR, 500).add(Aspect.FIRE, 500); - private static final AspectList costGlowpet = new AspectList().add(Aspect.ORDER, 500).add(Aspect.AIR, 500).add(Aspect.FIRE, 1000); - private static final AspectList costMaxima = new AspectList().add(Aspect.ORDER, 1000).add(Aspect.FIRE, 1500).add(Aspect.AIR, 500); public ItemFocusLumos () { @@ -46,33 +37,23 @@ public class ItemFocusLumos extends ItemFocusBasic public String getSortingHelper (ItemStack s) { - return "GLOWPET" + super.getSortingHelper(s); + return "LUMOS" + super.getSortingHelper(s); } public int getFocusColor (ItemStack s) { - return 0xFFC27C; + return 0xC9D2F8; } @Override public void addInformation (ItemStack s, EntityPlayer p, List l, boolean b) { super.addInformation(s, p, l, b); - if (this.isUpgradedWith(s, FocusUpgrades.maxima)) - { - l.add(" "); - l.add(EnumChatFormatting.BLUE + "+" + new String(this.isUpgradedWith(s, FocusUpgradeType.enlarge) ? Integer.toString(11 + this.getUpgradeLevel(s, FocusUpgradeType.enlarge)) : "11") + " " + StatCollector.translateToLocal("text.radius")); - } - if (this.isUpgradedWith(s, FocusUpgrades.glowpet)) - { - l.add(" "); - l.add(EnumChatFormatting.BLUE + new String(this.isUpgradedWith(s, FocusUpgradeType.extend) ? Integer.toString(1 + this.getUpgradeLevel(s, FocusUpgradeType.extend)) : "1") + "x " + StatCollector.translateToLocal("text.burnTime")); - } } public AspectList getVisCost (ItemStack s) { - return isUpgradedWith(s, FocusUpgrades.maxima) ? this.costMaxima : isUpgradedWith(s, FocusUpgrades.glowpet) ? this.costGlowpet : this.cost; + return this.cost; } public int getActivationCooldown (ItemStack s) @@ -94,7 +75,7 @@ public class ItemFocusLumos extends ItemFocusBasic { ItemWandCasting wand = (ItemWandCasting) s.getItem(); - if (mop != null && mop.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && !p.isSneaking()) + if (mop != null && mop.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) { int x = mop.blockX; int y = mop.blockY; @@ -120,11 +101,11 @@ public class ItemFocusLumos extends ItemFocusBasic case 5 : x++; } - if (w.getBlock(x, y, z).getMaterial().isReplaceable()) + if (w.getBlock(x, y, z).isReplaceable(w, x, y, z)) { if (wand.consumeAllVis(s, p, getVisCost(s), true, false)) { - if (!w.isRemote) w.setBlock(x, y, z, BlockRegistry.BlockLumos, 2, 3); + if (!w.isRemote) w.setBlock(x, y, z, BlockRegistry.BlockLumos, 0, 3); w.playSoundAtEntity(p, "thaumcraft:ice", 0.3F, 1.1F + w.rand.nextFloat() * 0.1F); for (int a = 0; a < 9; a++) @@ -132,51 +113,6 @@ public class ItemFocusLumos extends ItemFocusBasic } } } - else - { - if (isUpgradedWith(wand.getFocusItem(s), FocusUpgrades.glowpet)) - { - if (wand.consumeAllVis(s, p, getVisCost(s), true, false)) - { - EntityGlowpet pet = new EntityGlowpet(w, p, wand.getFocusExtend(s) + 1); - if (!w.isRemote) w.spawnEntityInWorld(pet); - w.playSoundAtEntity(pet, "taintedmagic:shard", 0.3F, 1.1F + w.rand.nextFloat() * 0.1F); - - for (int a = 0; a < 18; a++) - { - if (w.isRemote) spawnLumosParticles(w, pet.posX, pet.posY, pet.posZ); - } - } - } - else if (isUpgradedWith(wand.getFocusItem(s), FocusUpgrades.maxima)) - { - int r = 11 + wand.getFocusEnlarge(s); - if (wand.consumeAllVis(s, p, getVisCost(s), true, false)) - { - for (int xOff = -r; xOff <= r; xOff++) - { - for (int yOff = -r; yOff <= r; yOff++) - { - for (int zOff = -r; zOff <= r; zOff++) - { - int x = (int) (p.posX + xOff); - int y = (int) (p.posY + yOff); - int z = (int) (p.posZ + zOff); - - if (w.isAirBlock(x, y, z) && w.getBlock(x, y, z) != BlockRegistry.BlockLumos && w.getBlockLightValue(x, y, z) < 9) - { - BlockLumos src = (BlockLumos) BlockRegistry.BlockLumos; - src.setGlowDuration(200); - if (!w.isRemote) w.setBlock(x, y, z, src, 1, 3); - } - } - } - if (w.isRemote) spawnMaximaParticles(w, p, wand.getFocusEnlarge(s)); - } - w.playSoundAtEntity(p, "thaumcraft:runicShieldCharge", 0.3F, 1.0F + w.rand.nextFloat() * 0.5F); - } - } - } p.swingItem(); return s; } @@ -189,57 +125,20 @@ public class ItemFocusLumos extends ItemFocusBasic ParticleEngine.instance.addEffect(w, fx); } - @SideOnly (Side.CLIENT) - void spawnMaximaParticles (World w, EntityPlayer p, float ex) - { - for (int i = 1; i < 100 + (25 * ex); i++) - { - double t = 2 * Math.PI * Math.random(); - double r = (-Math.random() + Math.random()) * (11 + ex); - - double xp = r * Math.cos(t); - double zp = r * Math.sin(t); - double yp = -Math.random() + Math.random(); - - double off = Math.random() * 0.1; - - float red = 0.9F + (float) Math.random() * 0.1F; - float green = 0.8F + (float) Math.random() * 0.1F; - float blue = 0.8F + (float) Math.random() * 0.1F; - - FXWisp ef = new FXWisp(w, p.posX + xp + off, p.posY + 5.0D + yp + off, p.posZ + zp + off, 0.5F + (float) Math.random() * 0.25F, red, green, blue); - ef.setGravity(0.0F); - ef.shrink = true; - ef.noClip = false; - - ef.addVelocity(r * Math.cos(t + Math.PI) * 0.1D, 0.0D, r * Math.sin(t + Math.PI) * 0.1D); - - ParticleEngine.instance.addEffect(w, ef); - } - } - public FocusUpgradeType[] getPossibleUpgradesByRank (ItemStack s, int r) { switch (r) { case 1 : - return new FocusUpgradeType[]{ FocusUpgrades.glowpet, FocusUpgrades.maxima, FocusUpgradeType.frugal }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal }; case 2 : - if (isUpgradedWith(s, FocusUpgrades.glowpet)) return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.extend }; - else if (isUpgradedWith(s, FocusUpgrades.maxima)) return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.enlarge }; - else return new FocusUpgradeType[]{ FocusUpgradeType.frugal }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal }; case 3 : - if (isUpgradedWith(s, FocusUpgrades.glowpet)) return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.extend }; - else if (isUpgradedWith(s, FocusUpgrades.maxima)) return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.enlarge }; - else return new FocusUpgradeType[]{ FocusUpgradeType.frugal }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal }; case 4 : - if (isUpgradedWith(s, FocusUpgrades.glowpet)) return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.extend }; - else if (isUpgradedWith(s, FocusUpgrades.maxima)) return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.enlarge }; - else return new FocusUpgradeType[]{ FocusUpgradeType.frugal }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal }; case 5 : - if (isUpgradedWith(s, FocusUpgrades.glowpet)) return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.extend }; - else if (isUpgradedWith(s, FocusUpgrades.maxima)) return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.enlarge }; - else return new FocusUpgradeType[]{ FocusUpgradeType.frugal }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal }; } return null; } diff --git a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusMageMace.java b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusMageMace.java index ad2dbb4..d118209 100644 --- a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusMageMace.java +++ b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusMageMace.java @@ -2,34 +2,27 @@ package taintedmagic.common.items.wand.foci; import java.util.List; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; -import net.minecraft.util.ResourceLocation; import net.minecraft.util.StatCollector; import net.minecraft.world.World; -import net.minecraftforge.event.entity.living.LivingEvent; import taintedmagic.common.TaintedMagic; -import taintedmagic.common.registry.ItemRegistry; -import thaumcraft.api.ThaumcraftApiHelper; import thaumcraft.api.aspects.Aspect; import thaumcraft.api.aspects.AspectList; import thaumcraft.api.wands.FocusUpgradeType; import thaumcraft.api.wands.ItemFocusBasic; -import cpw.mods.fml.common.eventhandler.SubscribeEvent; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class ItemFocusMageMace extends ItemFocusBasic { - public IIcon depthIcon = null; public IIcon ornIcon = null; public static final AspectList cost = new AspectList().add(Aspect.ENTROPY, 50); - public static final AspectList costBloodlust = new AspectList().add(Aspect.ENTROPY, 50).add(Aspect.ORDER, 20).add(Aspect.FIRE, 50); public ItemFocusMageMace () { @@ -41,20 +34,33 @@ public class ItemFocusMageMace extends ItemFocusBasic public void registerIcons (IIconRegister ir) { this.icon = ir.registerIcon("taintedmagic:ItemFocusMageMace"); - this.depthIcon = ir.registerIcon("taintedmagic:ItemFocusMageMace_depth"); this.ornIcon = ir.registerIcon("taintedmagic:ItemFocusMageMace_orn"); } - public IIcon getFocusDepthLayerIcon (ItemStack s) - { - return this.depthIcon; - } - public IIcon getOrnament (ItemStack s) { return this.ornIcon; } + @SideOnly (Side.CLIENT) + public boolean requiresMultipleRenderPasses () + { + return true; + } + + @SideOnly (Side.CLIENT) + public int getRenderPasses (int m) + { + return 2; + } + + @Override + @SideOnly (Side.CLIENT) + public IIcon getIconFromDamageForRenderPass (int meta, int pass) + { + return (pass == 0) ? this.ornIcon : this.icon; + } + public String getSortingHelper (ItemStack s) { return "MACE" + super.getSortingHelper(s); @@ -62,12 +68,12 @@ public class ItemFocusMageMace extends ItemFocusBasic public int getFocusColor (ItemStack s) { - return 13813960; + return 0x5F6166; } public AspectList getVisCost (ItemStack s) { - return this.isUpgradedWith(s, FocusUpgrades.bloodlust) ? this.costBloodlust : this.cost; + return this.cost; } public int getActivationCooldown (ItemStack s) @@ -95,7 +101,8 @@ public class ItemFocusMageMace extends ItemFocusBasic { super.addInformation(s, p, l, b); l.add(" "); - l.add(EnumChatFormatting.BLUE + "+" + new String(this.isUpgradedWith(s, FocusUpgradeType.potency) ? Integer.toString(15 + this.getUpgradeLevel(s, FocusUpgradeType.potency)) : "15") + " " + StatCollector.translateToLocal("text.attackdamageequipped")); + l.add(EnumChatFormatting.BLUE + "+" + new String(this.isUpgradedWith(s, FocusUpgradeType.potency) ? Integer.toString(15 + this.getUpgradeLevel(s, FocusUpgradeType.potency)) : "15") + " " + + StatCollector.translateToLocal("text.attackdamageequipped")); } public FocusUpgradeType[] getPossibleUpgradesByRank (ItemStack s, int rank) @@ -103,32 +110,16 @@ public class ItemFocusMageMace extends ItemFocusBasic switch (rank) { case 1 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency }; case 2 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency }; case 3 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency }; case 4 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency }; case 5 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency, - FocusUpgrades.bloodlust }; + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency }; } return null; } - - public boolean canApplyUpgrade (ItemStack s, EntityPlayer p, FocusUpgradeType t, int rank) - { - return (!t.equals(FocusUpgrades.bloodlust)) || (ThaumcraftApiHelper.isResearchComplete(p.getCommandSenderName(), "BLOODLUSTUPGRADE")); - } } diff --git a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusMeteorology.java b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusMeteorology.java deleted file mode 100644 index 41cec94..0000000 --- a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusMeteorology.java +++ /dev/null @@ -1,146 +0,0 @@ -package taintedmagic.common.items.wand.foci; - -import java.awt.Color; - -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.EnumRarity; -import net.minecraft.item.ItemStack; -import net.minecraft.util.IIcon; -import net.minecraft.util.MovingObjectPosition; -import net.minecraft.world.World; -import taintedmagic.common.TaintedMagic; -import taintedmagic.common.helper.TaintedMagicHelper; -import thaumcraft.api.aspects.Aspect; -import thaumcraft.api.aspects.AspectList; -import thaumcraft.api.wands.ItemFocusBasic; -import thaumcraft.client.fx.ParticleEngine; -import thaumcraft.client.fx.particles.FXWisp; -import thaumcraft.codechicken.lib.vec.Vector3; -import thaumcraft.common.Thaumcraft; -import thaumcraft.common.items.wands.ItemWandCasting; -import thaumcraft.common.items.wands.WandManager; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -public class ItemFocusMeteorology extends ItemFocusBasic -{ - public IIcon depthIcon; - public IIcon iconOverlay; - - private static final AspectList cost = new AspectList().add(Aspect.AIR, 1000).add(Aspect.WATER, 1000).add(Aspect.FIRE, 1000).add(Aspect.EARTH, 1000).add(Aspect.ORDER, 1000).add(Aspect.ENTROPY, 1000); - - public ItemFocusMeteorology () - { - this.setCreativeTab(TaintedMagic.tabTaintedMagic); - this.setUnlocalizedName("ItemFocusMeteorology"); - } - - @SideOnly (Side.CLIENT) - public void registerIcons (IIconRegister ir) - { - this.icon = ir.registerIcon("taintedmagic:ItemFocusMeteorology"); - this.iconOverlay = ir.registerIcon("taintedmagic:ItemFocusTime_overlay"); - this.depthIcon = ir.registerIcon("taintedmagic:ItemFocusMeteorology_depth"); - } - - public IIcon getFocusDepthLayerIcon (ItemStack s) - { - return this.depthIcon; - } - - public String getSortingHelper (ItemStack s) - { - return "RAIN" + super.getSortingHelper(s); - } - - public int getFocusColor (ItemStack s) - { - return 0x23D9EA; - } - - public AspectList getVisCost (ItemStack s) - { - return new AspectList().add(Aspect.AIR, 1000).add(Aspect.WATER, 1000).add(Aspect.FIRE, 1000).add(Aspect.EARTH, 1000).add(Aspect.ORDER, 1000).add(Aspect.ENTROPY, 1000); - } - - public int getActivationCooldown (ItemStack s) - { - return 30000; - } - - public boolean isVisCostPerTick (ItemStack s) - { - return false; - } - - @SideOnly (Side.CLIENT) - public int getRenderPasses (int m) - { - return 2; - } - - @Override - @SideOnly (Side.CLIENT) - public IIcon getIconFromDamageForRenderPass (int meta, int pass) - { - return (pass == 0) ? this.icon : this.iconOverlay; - } - - @SideOnly (Side.CLIENT) - public boolean requiresMultipleRenderPasses () - { - return true; - } - - public ItemFocusBasic.WandFocusAnimation getAnimation (ItemStack s) - { - return ItemFocusBasic.WandFocusAnimation.WAVE; - } - - public ItemStack onFocusRightClick (ItemStack s, World w, EntityPlayer p, MovingObjectPosition mop) - { - ItemWandCasting wand = (ItemWandCasting) s.getItem(); - - if (wand.consumeAllVis(s, p, getVisCost(s), true, false)) - { - w.getWorldInfo().setRainTime(w.isRaining() ? 24000 : 0); - w.getWorldInfo().setRaining(!w.isRaining()); - p.playSound("thaumcraft:runicShieldCharge", 0.3F, 1.0F + w.rand.nextFloat() * 0.5F); - p.playSound("thaumcraft:wand", 0.3F, 1.0F + w.rand.nextFloat() * 0.5F); - - if (w.isRemote) spawnParticles(w, p); - } - return s; - } - - @SideOnly (Side.CLIENT) - public EnumRarity getRarity (ItemStack s) - { - return TaintedMagic.rarityCreation; - } - - @SideOnly (Side.CLIENT) - void spawnParticles (World w, EntityPlayer p) - { - for (int i = 1; i < 200; i++) - { - double xp = (-Math.random() * 2.0F) + (Math.random() * 2.0F); - double zp = (-Math.random() * 2.0F) + (Math.random() * 2.0F); - double yp = (-Math.random() * 2.0F) + (Math.random() * 2.0F); - double off = Math.random() * 0.1; - - float green = p.worldObj.rand.nextFloat(); - float blue = p.worldObj.rand.nextFloat(); - - FXWisp ef = new FXWisp(w, p.posX + xp + off, p.posY + 10 + yp + off, p.posZ + zp + off, 0.5F + ((float) Math.random() * 0.25F), 0.25F, green, blue); - ef.setGravity(-1.5F); - ef.shrink = true; - ef.noClip = true; - - ef.addVelocity(xp * 0.5D, 0.0D, zp * 0.5D); - - ParticleEngine.instance.addEffect(w, ef); - } - } -} diff --git a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusTaintedShockwave.java b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusShockwave.java similarity index 72% rename from src/main/java/taintedmagic/common/items/wand/foci/ItemFocusTaintedShockwave.java rename to src/main/java/taintedmagic/common/items/wand/foci/ItemFocusShockwave.java index 9e2b48d..05c98a3 100644 --- a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusTaintedShockwave.java +++ b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusShockwave.java @@ -2,7 +2,10 @@ package taintedmagic.common.items.wand.foci; import java.util.List; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; @@ -19,32 +22,28 @@ import thaumcraft.api.aspects.Aspect; import thaumcraft.api.aspects.AspectList; import thaumcraft.api.wands.FocusUpgradeType; import thaumcraft.api.wands.ItemFocusBasic; -import thaumcraft.client.fx.ParticleEngine; -import thaumcraft.client.fx.particles.FXWisp; +import thaumcraft.client.fx.bolt.FXLightningBolt; import thaumcraft.codechicken.lib.vec.Vector3; +import thaumcraft.common.Thaumcraft; import thaumcraft.common.items.wands.ItemWandCasting; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; -public class ItemFocusTaintedShockwave extends ItemFocusBasic +public class ItemFocusShockwave extends ItemFocusBasic { - private static final AspectList cost = new AspectList().add(Aspect.ENTROPY, 1000).add(Aspect.EARTH, 1000).add(Aspect.WATER, 1000).add(Aspect.ORDER, 500); + private static final AspectList cost = new AspectList().add(Aspect.AIR, 500).add(Aspect.ENTROPY, 300); public static IIcon depthIcon; - public static IIcon ornIcon; - public ItemFocusTaintedShockwave () + public ItemFocusShockwave () { this.setCreativeTab(TaintedMagic.tabTaintedMagic); - this.setUnlocalizedName("ItemFocusTaintedShockwave"); + this.setUnlocalizedName("ItemFocusShockwave"); } @SideOnly (Side.CLIENT) public void registerIcons (IIconRegister ir) { - this.icon = ir.registerIcon("taintedmagic:ItemFocusTaintedShockwave"); - this.depthIcon = ir.registerIcon("taintedmagic:ItemFocusTaint_depth"); - this.ornIcon = ir.registerIcon("taintedmagic:ItemFocusTaintedShockwave_orn"); + this.icon = ir.registerIcon("taintedmagic:ItemFocusShockwave"); + this.depthIcon = ir.registerIcon("taintedmagic:ItemFocusShockwave_depth"); } public IIcon getFocusDepthLayerIcon (ItemStack s) @@ -52,11 +51,6 @@ public class ItemFocusTaintedShockwave extends ItemFocusBasic return this.depthIcon; } - public IIcon getOrnament (ItemStack s) - { - return this.ornIcon; - } - public String getSortingHelper (ItemStack s) { return "SHOCKWAVE" + super.getSortingHelper(s); @@ -64,7 +58,7 @@ public class ItemFocusTaintedShockwave extends ItemFocusBasic public int getFocusColor (ItemStack s) { - return 13107455; + return 0xB0B7C4; } public AspectList getVisCost (ItemStack s) @@ -74,7 +68,7 @@ public class ItemFocusTaintedShockwave extends ItemFocusBasic public int getActivationCooldown (ItemStack s) { - return 15000; + return 10000; } public boolean isVisCostPerTick (ItemStack s) @@ -114,43 +108,29 @@ public class ItemFocusTaintedShockwave extends ItemFocusBasic double dist = TaintedMagicHelper.getDistanceTo(e.posX, e.posY, e.posZ, p); if (dist < 7.0D) e.attackEntityFrom(DamageSource.magic, 2.0F); Vector3 movement = TaintedMagicHelper.getVectorBetweenEntities(e, p); - e.addVelocity(movement.x * 3, 0.8, movement.z * 3); + e.addVelocity(movement.x * 5.0D, 1.5D, movement.z * 5.0D); + if (w.isRemote) spawnParticles(w, p, e); } } } w.playSoundAtEntity(p, "taintedmagic:shockwave", 5.0F, 1.5F * (float) Math.random()); - if (w.isRemote) spawnParticles(w, p); return s; } return null; } @SideOnly (Side.CLIENT) - public void spawnParticles (World w, EntityPlayer p) + public void spawnParticles (World w, EntityPlayer p, Entity e) { - for (int i = 1; i < 360; i++) + FXLightningBolt bolt = new FXLightningBolt(w, p, e, w.rand.nextLong(), 4); + + bolt.defaultFractal(); + bolt.setType(2); + bolt.setWidth(0.125F); + bolt.finalizeBolt(); + for (int a = 0; a < 5; a++) { - for (int j = 0; j < 4; j++) - { - double r = 4.0D; - double xp = (Math.cos(i * Math.PI / 180.0D)) * r; - double zp = (Math.sin(i * Math.PI / 180.0D)) * r; - - float red = 0.75F + w.rand.nextFloat() * 0.25F; - float green = w.rand.nextFloat() * 0.5F; - float blue = 0.75F + w.rand.nextFloat() * 0.25F; - - double off = j * 0.25F; - - FXWisp ef = new FXWisp(w, p.posX + xp + off, p.posY - 1, p.posZ + zp + off, 0.5F + (float) Math.random() * 0.25F, red, green, blue); - ef.setGravity(0.0F); - ef.shrink = true; - ef.noClip = true; - - ef.addVelocity(xp * 0.3D, 0, zp * 0.3D); - - ParticleEngine.instance.addEffect(w, ef); - } + Thaumcraft.proxy.sparkle((float) e.posX + (p.worldObj.rand.nextFloat() - p.worldObj.rand.nextFloat()) * 0.6F, (float) e.posY + (p.worldObj.rand.nextFloat() - p.worldObj.rand.nextFloat()) * 0.6F, (float) e.posZ + (p.worldObj.rand.nextFloat() - p.worldObj.rand.nextFloat()) * 0.6F, 2.0F + p.worldObj.rand.nextFloat(), 2, 0.05F + p.worldObj.rand.nextFloat() * 0.05F); } } diff --git a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusTaint.java b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusTaint.java deleted file mode 100644 index 6dde5ef..0000000 --- a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusTaint.java +++ /dev/null @@ -1,157 +0,0 @@ -package taintedmagic.common.items.wand.foci; - -import java.util.Random; - -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemStack; -import net.minecraft.potion.PotionEffect; -import net.minecraft.util.IIcon; -import net.minecraft.util.MovingObjectPosition; -import net.minecraft.util.ResourceLocation; -import net.minecraft.util.Vec3; -import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; -import taintedmagic.common.TaintedMagic; -import taintedmagic.common.entities.EntityTaintBubble; -import thaumcraft.api.aspects.Aspect; -import thaumcraft.api.aspects.AspectList; -import thaumcraft.api.wands.FocusUpgradeType; -import thaumcraft.api.wands.ItemFocusBasic; -import thaumcraft.common.Thaumcraft; -import thaumcraft.common.config.Config; -import thaumcraft.common.entities.projectile.EntityEmber; -import thaumcraft.common.items.wands.ItemWandCasting; -import thaumcraft.common.items.wands.WandManager; - -public class ItemFocusTaint extends ItemFocusBasic -{ - IIcon depthIcon = null; - - private static final AspectList cost = new AspectList().add(Aspect.EARTH, 10).add(Aspect.WATER, 10); - private static final AspectList costAntibody = new AspectList().add(Aspect.EARTH, 10).add(Aspect.WATER, 10).add(Aspect.ORDER, 10); - - public ItemFocusTaint () - { - this.setCreativeTab(TaintedMagic.tabTaintedMagic); - this.setUnlocalizedName("ItemFocusTaint"); - } - - @SideOnly (Side.CLIENT) - public void registerIcons (IIconRegister ir) - { - this.icon = ir.registerIcon("taintedmagic:ItemFocusTaint"); - this.depthIcon = ir.registerIcon("taintedmagic:ItemFocusTaint_depth"); - } - - public IIcon getFocusDepthLayerIcon (ItemStack s) - { - return this.depthIcon; - } - - public String getSortingHelper (ItemStack s) - { - return "TAINT" + super.getSortingHelper(s); - } - - public int getFocusColor (ItemStack s) - { - return 8073200; - } - - public AspectList getVisCost (ItemStack s) - { - return isUpgradedWith(s, FocusUpgrades.antibody) ? costAntibody : cost; - } - - public int getActivationCooldown (ItemStack s) - { - return -1; - } - - public boolean isVisCostPerTick (ItemStack s) - { - return true; - } - - public ItemFocusBasic.WandFocusAnimation getAnimation (ItemStack s) - { - return ItemFocusBasic.WandFocusAnimation.CHARGE; - } - - public ItemStack onFocusRightClick (ItemStack s, World w, EntityPlayer p, MovingObjectPosition mop) - { - ItemWandCasting wand = (ItemWandCasting) s.getItem(); - p.setItemInUse(s, 2147483647); - return s; - } - - public void onUsingFocusTick (ItemStack s, EntityPlayer p, int count) - { - ItemWandCasting wand = (ItemWandCasting) s.getItem(); - if (!wand.consumeAllVis(s, p, getVisCost(s), false, false)) - { - p.stopUsingItem(); - return; - } - if (!p.worldObj.isRemote && p.ticksExisted % 5 == 0) p.worldObj.playSoundAtEntity(p, "thaumcraft:bubble", 0.33F, 5.0F * (float) Math.random()); - - if (!p.worldObj.isRemote && wand.consumeAllVis(s, p, getVisCost(s), true, false)) - { - for (int a = 0; a < 2 + wand.getFocusPotency(s); a++) - { - EntityTaintBubble proj = new EntityTaintBubble(p.worldObj, p, isUpgradedWith(wand.getFocusItem(s), FocusUpgradeType.enlarge) ? 15.0F : 8.0F, 4F + wand.getFocusPotency(s), isUpgradedWith(wand.getFocusItem(s), FocusUpgrades.corrosive)); - proj.posX += proj.motionX; - proj.posY += proj.motionY; - proj.posZ += proj.motionZ; - p.worldObj.spawnEntityInWorld(proj); - if (!isUpgradedWith(wand.getFocusItem(s), FocusUpgrades.antibody)) - { - if (p.worldObj.rand.nextInt(150) == 0) - { - try - { - p.addPotionEffect(new PotionEffect(Config.potionVisExhaustID, 1000, 2)); - } - catch (Exception e) - { - e.printStackTrace(); - } - } - } - } - } - } - - public FocusUpgradeType[] getPossibleUpgradesByRank (ItemStack s, int rank) - { - switch (rank) - { - case 1 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency }; - case 2 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency }; - case 3 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency, - FocusUpgrades.antibody }; - case 4 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency, - FocusUpgradeType.enlarge }; - case 5 : - return new FocusUpgradeType[]{ - FocusUpgradeType.frugal, - FocusUpgradeType.potency, - FocusUpgrades.corrosive }; - } - return null; - } -} diff --git a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusTaintSwarm.java b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusTaintSwarm.java new file mode 100644 index 0000000..798095d --- /dev/null +++ b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusTaintSwarm.java @@ -0,0 +1,172 @@ +package taintedmagic.common.items.wand.foci; + +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityLivingBase; +import net.minecraft.entity.SharedMonsterAttributes; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemStack; +import net.minecraft.potion.PotionEffect; +import net.minecraft.util.IIcon; +import net.minecraft.util.MovingObjectPosition; +import net.minecraft.util.Vec3; +import net.minecraft.world.World; +import taintedmagic.common.TaintedMagic; +import thaumcraft.api.aspects.Aspect; +import thaumcraft.api.aspects.AspectList; +import thaumcraft.api.wands.FocusUpgradeType; +import thaumcraft.api.wands.ItemFocusBasic; +import thaumcraft.common.config.Config; +import thaumcraft.common.entities.monster.EntityTaintSwarm; +import thaumcraft.common.items.wands.ItemWandCasting; +import thaumcraft.common.lib.utils.EntityUtils; + +public class ItemFocusTaintSwarm extends ItemFocusBasic +{ + IIcon depthIcon = null; + IIcon ornIcon = null; + + private static final AspectList cost = new AspectList().add(Aspect.EARTH, 500).add(Aspect.WATER, 500); + private static final AspectList costAntibody = new AspectList().add(Aspect.EARTH, 500).add(Aspect.WATER, 500).add(Aspect.ORDER, 200); + + public ItemFocusTaintSwarm () + { + this.setCreativeTab(TaintedMagic.tabTaintedMagic); + this.setUnlocalizedName("ItemFocusTaintSwarm"); + } + + @SideOnly (Side.CLIENT) + public void registerIcons (IIconRegister ir) + { + this.icon = ir.registerIcon("taintedmagic:ItemFocusTaintSwarm"); + this.depthIcon = ir.registerIcon("taintedmagic:ItemFocusTaintSwarm_depth"); + this.ornIcon = ir.registerIcon("thaumcraft:focus_whatever_orn"); + } + + public IIcon getFocusDepthLayerIcon (ItemStack s) + { + return this.depthIcon; + } + + public IIcon getOrnament (ItemStack s) + { + return this.ornIcon; + } + + @SideOnly (Side.CLIENT) + public boolean requiresMultipleRenderPasses () + { + return true; + } + + @SideOnly (Side.CLIENT) + public int getRenderPasses (int m) + { + return 2; + } + + @Override + @SideOnly (Side.CLIENT) + public IIcon getIconFromDamageForRenderPass (int meta, int pass) + { + return (pass == 0) ? this.ornIcon : this.icon; + } + + public String getSortingHelper (ItemStack s) + { + return "TAINT" + super.getSortingHelper(s); + } + + public int getFocusColor (ItemStack s) + { + return 0x9929BD; + } + + public AspectList getVisCost (ItemStack s) + { + return isUpgradedWith(s, FocusUpgrades.antibody) ? costAntibody : cost; + } + + public int getActivationCooldown (ItemStack s) + { + return 3000; + } + + public boolean isVisCostPerTick (ItemStack s) + { + return false; + } + + public ItemFocusBasic.WandFocusAnimation getAnimation (ItemStack s) + { + return ItemFocusBasic.WandFocusAnimation.WAVE; + } + + public ItemStack onFocusRightClick (ItemStack s, World w, EntityPlayer p, MovingObjectPosition mop) + { + ItemWandCasting wand = (ItemWandCasting) s.getItem(); + + Entity look = EntityUtils.getPointedEntity(w, p, 0.0D, 32.0D, 1.1F); + + if (look != null && look instanceof EntityLivingBase) + { + if (wand.consumeAllVis(s, p, getVisCost(s), true, false)) + { + EntityTaintSwarm e = new EntityTaintSwarm(w); + Vec3 v = p.getLookVec(); + e.setLocationAndAngles(p.posX + v.xCoord / 2.0D, p.posY + p.getEyeHeight() + v.yCoord / 2.0D, p.posZ + v.zCoord / 2.0D, p.rotationYaw, p.rotationPitch); + + e.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(5.0D + wand.getFocusPotency(s)); + e.setTarget(look); + e.setIsSummoned(true); + + if (!w.isRemote) w.spawnEntityInWorld(e); + + if (!isUpgradedWith(wand.getFocusItem(s), FocusUpgrades.antibody)) + { + if (p.worldObj.rand.nextInt(3) == 0) + { + try + { + p.addPotionEffect(new PotionEffect(Config.potionTaintPoisonID, 40, 2)); + } + catch (Exception err) + { + err.printStackTrace(); + } + } + } + } + p.swingItem(); + } + return s; + } + + public void onPlayerStoppedUsingFocus (ItemStack s, World w, EntityPlayer p, int count) + { + } + + public void onUsingFocusTick (ItemStack s, EntityPlayer p, int count) + { + } + + public FocusUpgradeType[] getPossibleUpgradesByRank (ItemStack s, int rank) + { + switch (rank) + { + case 1 : + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency }; + case 2 : + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency }; + case 3 : + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency, FocusUpgrades.antibody }; + case 4 : + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency }; + case 5 : + return new FocusUpgradeType[]{ FocusUpgradeType.frugal, FocusUpgradeType.potency }; + } + return null; + } +} diff --git a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusTime.java b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusTime.java deleted file mode 100644 index db56cd1..0000000 --- a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusTime.java +++ /dev/null @@ -1,160 +0,0 @@ -package taintedmagic.common.items.wand.foci; - -import java.awt.Color; - -import net.minecraft.client.particle.EntityFX; -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.EnumRarity; -import net.minecraft.item.ItemStack; -import net.minecraft.util.IIcon; -import net.minecraft.util.MovingObjectPosition; -import net.minecraft.world.World; -import taintedmagic.common.TaintedMagic; -import taintedmagic.common.helper.TaintedMagicHelper; -import thaumcraft.api.aspects.Aspect; -import thaumcraft.api.aspects.AspectList; -import thaumcraft.api.wands.ItemFocusBasic; -import thaumcraft.client.fx.ParticleEngine; -import thaumcraft.client.fx.particles.FXWisp; -import thaumcraft.codechicken.lib.vec.Vector3; -import thaumcraft.common.items.wands.ItemWandCasting; -import cpw.mods.fml.relauncher.ReflectionHelper; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -public class ItemFocusTime extends ItemFocusBasic -{ - public IIcon depthIcon; - public IIcon iconOverlay; - - private static final AspectList cost = new AspectList().add(Aspect.AIR, 1000).add(Aspect.WATER, 1000).add(Aspect.FIRE, 1000).add(Aspect.EARTH, 1000).add(Aspect.ORDER, 1000).add(Aspect.ENTROPY, 1000); - - public ItemFocusTime () - { - this.setCreativeTab(TaintedMagic.tabTaintedMagic); - this.setUnlocalizedName("ItemFocusTime"); - } - - @SideOnly (Side.CLIENT) - public void registerIcons (IIconRegister ir) - { - this.icon = ir.registerIcon("taintedmagic:ItemFocusTime"); - this.iconOverlay = ir.registerIcon("taintedmagic:ItemFocusTime_overlay"); - this.depthIcon = ir.registerIcon("taintedmagic:ItemFocusMeteorology_depth"); - } - - public IIcon getFocusDepthLayerIcon (ItemStack s) - { - return this.depthIcon; - } - - public String getSortingHelper (ItemStack s) - { - return "TIME" + super.getSortingHelper(s); - } - - public int getFocusColor (ItemStack s) - { - EntityPlayer player = TaintedMagic.proxy.getClientPlayer(); - return player == null ? 0xFFFFFF : Color.HSBtoRGB(player.ticksExisted * 16 % 360 / 360F, 1F, 1F); - } - - @SideOnly (Side.CLIENT) - public int getRenderPasses (int m) - { - return 2; - } - - @Override - @SideOnly (Side.CLIENT) - public IIcon getIconFromDamageForRenderPass (int meta, int pass) - { - return (pass == 0) ? this.icon : this.iconOverlay; - } - - @SideOnly (Side.CLIENT) - public int getColorFromItemStack (ItemStack s, int pass) - { - if (pass == 0) - { - EntityPlayer p = TaintedMagic.proxy.getClientPlayer(); - return p == null ? 0xFFFFFF : Color.HSBtoRGB(p.ticksExisted * 8F % 360 / 360F, 1F, 1F); - } - if (pass == 1) return 16777215; - - return 16777215; - } - - @SideOnly (Side.CLIENT) - public boolean requiresMultipleRenderPasses () - { - return true; - } - - public AspectList getVisCost (ItemStack s) - { - return new AspectList().add(Aspect.AIR, 1000).add(Aspect.WATER, 1000).add(Aspect.FIRE, 1000).add(Aspect.EARTH, 1000).add(Aspect.ORDER, 1000).add(Aspect.ENTROPY, 1000); - } - - public int getActivationCooldown (ItemStack s) - { - return 30000; - } - - public boolean isVisCostPerTick (ItemStack s) - { - return false; - } - - public ItemFocusBasic.WandFocusAnimation getAnimation (ItemStack s) - { - return ItemFocusBasic.WandFocusAnimation.WAVE; - } - - public ItemStack onFocusRightClick (ItemStack s, World w, EntityPlayer p, MovingObjectPosition mop) - { - ItemWandCasting wand = (ItemWandCasting) s.getItem(); - - if (wand.consumeAllVis(s, p, getVisCost(s), true, false)) - { - w.setWorldTime(w.isDaytime() ? 14000 : 24000); - p.playSound("thaumcraft:runicShieldCharge", 0.3F, 1.0F + w.rand.nextFloat() * 0.5F); - p.playSound("thaumcraft:wand", 0.3F, 1.0F + w.rand.nextFloat() * 0.5F); - - if (w.isRemote) spawnParticles(w, p); - } - return s; - } - - @SideOnly (Side.CLIENT) - public EnumRarity getRarity (ItemStack s) - { - return TaintedMagic.rarityCreation; - } - - @SideOnly (Side.CLIENT) - void spawnParticles (World w, EntityPlayer p) - { - for (int i = 1; i < 200; i++) - { - double xp = (-Math.random() * 2.0F) + (Math.random() * 2.0F); - double zp = (-Math.random() * 2.0F) + (Math.random() * 2.0F); - double yp = (-Math.random() * 2.0F) + (Math.random() * 2.0F); - double off = Math.random() * 0.1; - - float red = p.worldObj.rand.nextFloat(); - float green = p.worldObj.rand.nextFloat(); - float blue = p.worldObj.rand.nextFloat(); - - FXWisp ef = new FXWisp(w, p.posX + xp + off, p.posY + 10 + yp + off, p.posZ + zp + off, 0.5F + ((float) Math.random() * 0.25F), red, green, blue); - ef.setGravity(-1.5F); - ef.shrink = true; - ef.noClip = true; - - ef.addVelocity(xp * 0.5D, 0.0D, zp * 0.5D); - - ParticleEngine.instance.addEffect(w, ef); - } - } -} diff --git a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusVisShard.java b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusVisShard.java index f637d49..8a83071 100644 --- a/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusVisShard.java +++ b/src/main/java/taintedmagic/common/items/wand/foci/ItemFocusVisShard.java @@ -2,14 +2,12 @@ package taintedmagic.common.items.wand.foci; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.MovingObjectPosition; -import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import taintedmagic.common.TaintedMagic; import taintedmagic.common.entities.EntityHomingShard; @@ -18,7 +16,6 @@ import thaumcraft.api.aspects.AspectList; import thaumcraft.api.wands.FocusUpgradeType; import thaumcraft.api.wands.ItemFocusBasic; import thaumcraft.client.fx.ParticleEngine; -import thaumcraft.client.fx.bolt.FXLightningBolt; import thaumcraft.client.fx.particles.FXSparkle; import thaumcraft.common.items.wands.ItemWandCasting; import thaumcraft.common.lib.utils.EntityUtils; @@ -51,7 +48,7 @@ public class ItemFocusVisShard extends ItemFocusBasic public int getFocusColor (ItemStack s) { - return 10037693; + return 0x9929BD; } public int getActivationCooldown (ItemStack s) diff --git a/src/main/java/taintedmagic/common/lib/LibToolMaterials.java b/src/main/java/taintedmagic/common/lib/LibToolMaterials.java index 2e03b53..803ebc4 100644 --- a/src/main/java/taintedmagic/common/lib/LibToolMaterials.java +++ b/src/main/java/taintedmagic/common/lib/LibToolMaterials.java @@ -6,9 +6,9 @@ import net.minecraftforge.common.util.EnumHelper; public class LibToolMaterials { - public static ToolMaterial toolMatCrystal = EnumHelper.addToolMaterial("CRYSTAL", 3, 2000, 16.0F, 2.0F, 30); + public static ToolMaterial toolMatHollow = EnumHelper.addToolMaterial("HOLLOW", 3, 2000, 16.0F, -0.5F, 30); public static ToolMaterial toolMatShadow = EnumHelper.addToolMaterial("SHADOW", 3, 2200, 17.0F, 6.0F, 30); - public static ToolMaterial toolMatPrimal = EnumHelper.addToolMaterial("PRIMAL", 3, 512, 16.0F, 14.5F, 28); + public static ToolMaterial toolMatPrimal = EnumHelper.addToolMaterial("PRIMAL", 3, 512, 16.0F, 16.75F, 28); public static ArmorMaterial armorMatShadow = EnumHelper.addArmorMaterial("SHADOW", 800, new int[]{ 4, 8, 6, 2 }, 25); public static ArmorMaterial armorMatSpecial = EnumHelper.addArmorMaterial("SPECIAL", 500, new int[]{ 4, 6, 6, 4 }, 25); diff --git a/src/main/java/taintedmagic/common/network/PacketKatanaAttack.java b/src/main/java/taintedmagic/common/network/PacketKatanaAttack.java index 1e55c7f..163a1f4 100644 --- a/src/main/java/taintedmagic/common/network/PacketKatanaAttack.java +++ b/src/main/java/taintedmagic/common/network/PacketKatanaAttack.java @@ -1,5 +1,8 @@ package taintedmagic.common.network; +import cpw.mods.fml.common.network.simpleimpl.IMessage; +import cpw.mods.fml.common.network.simpleimpl.IMessageHandler; +import cpw.mods.fml.common.network.simpleimpl.MessageContext; import io.netty.buffer.ByteBuf; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; @@ -7,10 +10,6 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.DamageSource; import net.minecraft.world.World; import net.minecraftforge.common.DimensionManager; -import thaumcraft.common.Thaumcraft; -import cpw.mods.fml.common.network.simpleimpl.IMessage; -import cpw.mods.fml.common.network.simpleimpl.IMessageHandler; -import cpw.mods.fml.common.network.simpleimpl.MessageContext; public class PacketKatanaAttack implements IMessage, IMessageHandler { diff --git a/src/main/java/taintedmagic/common/registry/ItemRegistry.java b/src/main/java/taintedmagic/common/registry/ItemRegistry.java index eec4779..2ee2ea9 100644 --- a/src/main/java/taintedmagic/common/registry/ItemRegistry.java +++ b/src/main/java/taintedmagic/common/registry/ItemRegistry.java @@ -14,14 +14,16 @@ import taintedmagic.common.handler.WandHandler; import taintedmagic.common.items.ItemFlyteCharm; import taintedmagic.common.items.ItemMagicFunguar; import taintedmagic.common.items.ItemMaterial; +import taintedmagic.common.items.ItemSalis; import taintedmagic.common.items.ItemVoidsentBlood; +import taintedmagic.common.items.equipment.ItemLumosRing; import taintedmagic.common.items.equipment.ItemShadowFortressArmor; import taintedmagic.common.items.equipment.ItemVoidFortressArmor; import taintedmagic.common.items.equipment.ItemVoidmetalGoggles; import taintedmagic.common.items.equipment.ItemVoidwalkerBoots; import taintedmagic.common.items.equipment.ItemVoidwalkerSash; import taintedmagic.common.items.equipment.ItemWarpedGoggles; -import taintedmagic.common.items.tools.ItemCrystalDagger; +import taintedmagic.common.items.tools.ItemHollowDagger; import taintedmagic.common.items.tools.ItemKatana; import taintedmagic.common.items.tools.ItemPrimordialEdge; import taintedmagic.common.items.tools.ItemShadowmetalAxe; @@ -35,10 +37,8 @@ import taintedmagic.common.items.wand.ItemWandRod; import taintedmagic.common.items.wand.foci.ItemFocusDarkMatter; import taintedmagic.common.items.wand.foci.ItemFocusLumos; import taintedmagic.common.items.wand.foci.ItemFocusMageMace; -import taintedmagic.common.items.wand.foci.ItemFocusMeteorology; -import taintedmagic.common.items.wand.foci.ItemFocusTaint; -import taintedmagic.common.items.wand.foci.ItemFocusTaintedShockwave; -import taintedmagic.common.items.wand.foci.ItemFocusTime; +import taintedmagic.common.items.wand.foci.ItemFocusShockwave; +import taintedmagic.common.items.wand.foci.ItemFocusTaintSwarm; import taintedmagic.common.items.wand.foci.ItemFocusVisShard; import taintedmagic.common.lib.LibToolMaterials; import thaumcraft.api.wands.StaffRod; @@ -61,7 +61,10 @@ public class ItemRegistry ItemFlyteCharm = new ItemFlyteCharm(); GameRegistry.registerItem(ItemFlyteCharm, "ItemFlyteCharm"); - // Armor + ItemSalis = new ItemSalis(); + GameRegistry.registerItem(ItemSalis, "ItemSalis"); + + // Armor and Baubles ItemWarpedGoggles = new ItemWarpedGoggles(LibToolMaterials.armorMatSpecial, 4, 0); GameRegistry.registerItem(ItemWarpedGoggles, "ItemWarpedGoggles"); @@ -92,6 +95,9 @@ public class ItemRegistry ItemVoidmetalGoggles = new ItemVoidmetalGoggles(ArmorMaterial.IRON, 4, 0); GameRegistry.registerItem(ItemVoidmetalGoggles, "ItemVoidmetalGoggles"); + ItemLumosRing = new ItemLumosRing(); + GameRegistry.registerItem(ItemLumosRing, "ItemLumosRing"); + // Wands and Staves ItemWandRod = new ItemWandRod(); GameRegistry.registerItem(ItemWandRod, "ItemWandRod"); @@ -119,23 +125,17 @@ public class ItemRegistry WAND_CAP_SHADOW_CLOTH.setTexture(new ResourceLocation("taintedmagic:textures/models/ModelWAND_CAP_SHADOW_CLOTH.png")); // Foci - ItemFocusTaint = new ItemFocusTaint(); - GameRegistry.registerItem(ItemFocusTaint, "ItemFocusTaint"); + ItemFocusTaintSwarm = new ItemFocusTaintSwarm(); + GameRegistry.registerItem(ItemFocusTaintSwarm, "ItemFocusTaintSwarm"); ItemFocusDarkMatter = new ItemFocusDarkMatter(); GameRegistry.registerItem(ItemFocusDarkMatter, "ItemFocusDarkMatter"); - ItemFocusMeteorology = new ItemFocusMeteorology(); - GameRegistry.registerItem(ItemFocusMeteorology, "ItemFocusMeteorology"); - - ItemFocusTime = new ItemFocusTime(); - GameRegistry.registerItem(ItemFocusTime, "ItemFocusTime"); - ItemFocusMageMace = new ItemFocusMageMace(); GameRegistry.registerItem(ItemFocusMageMace, "ItemFocusMageMace"); - ItemFocusTaintedShockwave = new ItemFocusTaintedShockwave(); - GameRegistry.registerItem(ItemFocusTaintedShockwave, "ItemFocusTaintedShockwave"); + ItemFocusShockwave = new ItemFocusShockwave(); + GameRegistry.registerItem(ItemFocusShockwave, "ItemFocusShockwave"); ItemFocusVisShard = new ItemFocusVisShard(); GameRegistry.registerItem(ItemFocusVisShard, "ItemFocusVisShard"); @@ -147,8 +147,8 @@ public class ItemRegistry ItemThaumicDisassembler = new ItemThaumicDisassembler(); GameRegistry.registerItem(ItemThaumicDisassembler, "ItemThaumicDisassembler"); - ItemCrystalDagger = new ItemCrystalDagger(LibToolMaterials.toolMatCrystal); - GameRegistry.registerItem(ItemCrystalDagger, "ItemCrystalDagger"); + ItemHollowDagger = new ItemHollowDagger(LibToolMaterials.toolMatHollow); + GameRegistry.registerItem(ItemHollowDagger, "ItemHollowDagger"); ItemShadowmetalHoe = new ItemShadowmetalHoe(LibToolMaterials.toolMatShadow); GameRegistry.registerItem(ItemShadowmetalHoe, "ItemShadowmetalHoe"); @@ -176,6 +176,7 @@ public class ItemRegistry public static Item ItemMaterial; public static Item ItemVoidsentBlood; public static Item ItemFlyteCharm; + public static Item ItemSalis; // Wand public static Item ItemWandRod; @@ -191,12 +192,10 @@ public class ItemRegistry public static WandCap WAND_CAP_SHADOW_CLOTH; // Foci - public static Item ItemFocusTaint; + public static Item ItemFocusTaintSwarm; public static Item ItemFocusDarkMatter; - public static Item ItemFocusMeteorology; - public static Item ItemFocusTime; public static Item ItemFocusMageMace; - public static Item ItemFocusTaintedShockwave; + public static Item ItemFocusShockwave; public static Item ItemFocusVisShard; public static Item ItemFocusLumos; @@ -215,9 +214,11 @@ public class ItemRegistry public static Item ItemShadowFortressChestplate; public static Item ItemShadowFortressLeggings; + public static Item ItemLumosRing; + // Tools public static Item ItemThaumicDisassembler; - public static Item ItemCrystalDagger; + public static Item ItemHollowDagger; public static ItemHoe ItemShadowmetalHoe; public static ItemPickaxe ItemShadowmetalPick; diff --git a/src/main/java/taintedmagic/common/registry/ModEntityRegistry.java b/src/main/java/taintedmagic/common/registry/ModEntityRegistry.java index 7fab158..5f46164 100644 --- a/src/main/java/taintedmagic/common/registry/ModEntityRegistry.java +++ b/src/main/java/taintedmagic/common/registry/ModEntityRegistry.java @@ -1,22 +1,18 @@ package taintedmagic.common.registry; +import cpw.mods.fml.common.registry.EntityRegistry; import taintedmagic.common.TaintedMagic; import taintedmagic.common.entities.EntityDarkMatter; import taintedmagic.common.entities.EntityDiffusion; -import taintedmagic.common.entities.EntityGlowpet; import taintedmagic.common.entities.EntityHomingShard; -import taintedmagic.common.entities.EntityTaintBubble; -import cpw.mods.fml.common.registry.EntityRegistry; public class ModEntityRegistry { public static void init () { int ID = 0; - EntityRegistry.registerModEntity(EntityTaintBubble.class, "EntityTaintBubble", ID++, TaintedMagic.instance, 64, 20, true); EntityRegistry.registerModEntity(EntityDarkMatter.class, "EntityDarkMatter", ID++, TaintedMagic.instance, 64, 21, true); EntityRegistry.registerModEntity(EntityHomingShard.class, "EntityHomingShard", ID++, TaintedMagic.instance, 64, 3, true); - EntityRegistry.registerModEntity(EntityGlowpet.class, "EntityGlowpet", ID++, TaintedMagic.instance, 64, 3, true); EntityRegistry.registerModEntity(EntityDiffusion.class, "EntityDiffusion", ID++, TaintedMagic.instance, 64, 20, true); } } diff --git a/src/main/java/taintedmagic/common/registry/RecipeRegistry.java b/src/main/java/taintedmagic/common/registry/RecipeRegistry.java index 31c70f0..d56e337 100644 --- a/src/main/java/taintedmagic/common/registry/RecipeRegistry.java +++ b/src/main/java/taintedmagic/common/registry/RecipeRegistry.java @@ -1,15 +1,13 @@ package taintedmagic.common.registry; +import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.CraftingManager; -import net.minecraft.item.crafting.FurnaceRecipes; import net.minecraft.nbt.NBTTagByte; import net.minecraft.nbt.NBTTagInt; -import net.minecraftforge.oredict.OreDictionary; -import taintedmagic.common.TaintedMagic; import taintedmagic.common.helper.TaintedMagicHelper; import thaumcraft.api.ItemApi; import thaumcraft.api.ThaumcraftApi; @@ -17,7 +15,6 @@ import thaumcraft.api.aspects.Aspect; import thaumcraft.api.aspects.AspectList; import thaumcraft.common.config.ConfigBlocks; import thaumcraft.common.config.ConfigItems; -import cpw.mods.fml.common.registry.GameRegistry; public class RecipeRegistry { @@ -30,177 +27,391 @@ public class RecipeRegistry initArcane(); } + /** + * Vanilla crafting table recipes + */ public static void initCrafting () { - GameRegistry.addShapedRecipe(new ItemStack(Item.getItemFromBlock(BlockRegistry.BlockShadowmetal)), new Object[]{ "AAA", "AAA", "AAA", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial) }); + GameRegistry.addShapedRecipe(new ItemStack( + Item.getItemFromBlock(BlockRegistry.BlockShadowmetal)), new Object[]{ "AAA", "AAA", "AAA", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial) }); GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.ItemMaterial, 1, 0), new Object[]{ "AAA", "AAA", "AAA", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 9) }); - ResearchRegistry.recipes.put("ItemShadowmetalPick", GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.ItemShadowmetalPick), new Object[]{ "AAA", " B ", " B ", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial), Character.valueOf('B'), new ItemStack(Items.stick) })); + ResearchRegistry.recipes.put("ItemShadowmetalPick", GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.ItemShadowmetalPick), new Object[]{ "AAA", " B ", " B ", Character.valueOf('A'), + new ItemStack(ItemRegistry.ItemMaterial), Character.valueOf('B'), new ItemStack(Items.stick) })); - ResearchRegistry.recipes.put("ItemShadowmetalAxe", CraftingManager.getInstance().addRecipe(new ItemStack(ItemRegistry.ItemShadowmetalAxe), new Object[]{ "AA", "BA", "B ", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial), Character.valueOf('B'), new ItemStack(Items.stick) })); + ResearchRegistry.recipes.put("ItemShadowmetalAxe", CraftingManager.getInstance().addRecipe(new ItemStack(ItemRegistry.ItemShadowmetalAxe), new Object[]{ "AA", "BA", "B ", + Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial), Character.valueOf('B'), new ItemStack(Items.stick) })); - ResearchRegistry.recipes.put("ItemShadowmetalSpade", CraftingManager.getInstance().addRecipe(new ItemStack(ItemRegistry.ItemShadowmetalSpade), new Object[]{ "A", "B", "B", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial), Character.valueOf('B'), new ItemStack(Items.stick) })); + ResearchRegistry.recipes.put("ItemShadowmetalSpade", CraftingManager.getInstance().addRecipe(new ItemStack(ItemRegistry.ItemShadowmetalSpade), new Object[]{ "A", "B", "B", + Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial), Character.valueOf('B'), new ItemStack(Items.stick) })); - ResearchRegistry.recipes.put("ItemShadowmetalHoe", CraftingManager.getInstance().addRecipe(new ItemStack(ItemRegistry.ItemShadowmetalHoe), new Object[]{ "AA", "B ", "B ", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial), Character.valueOf('B'), new ItemStack(Items.stick) })); + ResearchRegistry.recipes.put("ItemShadowmetalHoe", CraftingManager.getInstance().addRecipe(new ItemStack(ItemRegistry.ItemShadowmetalHoe), new Object[]{ "AA", "B ", "B ", + Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial), Character.valueOf('B'), new ItemStack(Items.stick) })); - ResearchRegistry.recipes.put("ItemShadowmetalSword", GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.ItemShadowmetalSword), new Object[]{ "A", "A", "B", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial), Character.valueOf('B'), new ItemStack(Items.stick) })); + ResearchRegistry.recipes.put("ItemShadowmetalSword", GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.ItemShadowmetalSword), new Object[]{ "A", "A", "B", Character.valueOf('A'), + new ItemStack(ItemRegistry.ItemMaterial), Character.valueOf('B'), new ItemStack(Items.stick) })); GameRegistry.addRecipe(new ItemStack(ItemRegistry.ItemMaterial, 9), new Object[]{ "A", Character.valueOf('A'), new ItemStack(BlockRegistry.BlockShadowmetal) }); GameRegistry.addRecipe(new ItemStack(ItemRegistry.ItemMaterial, 9, 9), new Object[]{ "A", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 0) }); - ResearchRegistry.recipes.put("BlockWarpwoodPlanks", CraftingManager.getInstance().addRecipe(new ItemStack(BlockRegistry.BlockWarpwoodPlanks, 4), new Object[]{ "A", Character.valueOf('A'), new ItemStack(BlockRegistry.BlockWarpwoodLog) })); + ResearchRegistry.recipes.put("BlockWarpwoodPlanks", CraftingManager.getInstance() + .addRecipe(new ItemStack(BlockRegistry.BlockWarpwoodPlanks, 4), new Object[]{ "A", Character.valueOf('A'), new ItemStack(BlockRegistry.BlockWarpwoodLog) })); } + /** + * Furnace recipes + */ public static void initSmelting () { GameRegistry.addSmelting(BlockRegistry.BlockShadowOre, new ItemStack(ItemRegistry.ItemMaterial), 2.0F); } + /** + * Arcane Infusion recipes + */ public static void initInfusion () { - ResearchRegistry.recipes.put("ItemFocusTaintedShockwave", ThaumcraftApi.addInfusionCraftingRecipe("FOCUSTAINTEDBLAST", new ItemStack(ItemRegistry.ItemFocusTaintedShockwave), 6, new AspectList().add(Aspect.WEAPON, 30).add(Aspect.MOTION, 24).add(Aspect.TAINT, 42).add(Aspect.MAGIC, 38), new ItemStack(ItemRegistry.ItemFocusTaint), new ItemStack[]{ new ItemStack(Blocks.tnt), ItemApi.getItem("itemBottleTaint", 0), ItemApi.getItem("itemResource", 11), ItemApi.getItem("itemResource", 15), ItemApi.getItem("itemBottleTaint", 0), new ItemStack(Blocks.tnt), ItemApi.getItem("itemBottleTaint", 0), ItemApi.getItem("itemResource", 11), ItemApi.getItem("itemResource", 15), ItemApi.getItem("itemBottleTaint", 0) })); + ResearchRegistry.recipes.put("ItemFocusShockwave", ThaumcraftApi + .addInfusionCraftingRecipe("FOCUSSHOCKWAVE", new ItemStack(ItemRegistry.ItemFocusShockwave), 6, new AspectList().add(Aspect.AIR, 35).add(Aspect.MOTION, 42).add(Aspect.ENERGY, 42) + .add(Aspect.MAGIC, 16), new ItemStack(ConfigItems.itemFocusShock), new ItemStack[]{ new ItemStack(Blocks.tnt), new ItemStack(Items.gunpowder), + new ItemStack(ConfigItems.itemShard, 1, 0), new ItemStack(Blocks.tnt), new ItemStack(Items.gunpowder), new ItemStack(ConfigItems.itemShard, 1, 0) })); - ResearchRegistry.recipes.put("ItemPrimordialEdge", ThaumcraftApi.addInfusionCraftingRecipe("PRIMALBLADE", new ItemStack(ItemRegistry.ItemPrimordialEdge), 8, new AspectList().add(Aspect.WEAPON, 65).add(Aspect.ELDRITCH, 46).add(Aspect.DARKNESS, 16).add(Aspect.METAL, 60).add(Aspect.VOID, 56), ItemApi.getItem("itemSwordVoid", 0), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 5), new ItemStack(ConfigItems.itemShard, 1, 0), new ItemStack(ConfigItems.itemShard, 1, 1), new ItemStack(ConfigItems.itemShard, 1, 2), new ItemStack(ItemRegistry.ItemMaterial, 1, 10), new ItemStack(ConfigItems.itemShard, 1, 3), new ItemStack(ConfigItems.itemShard, 1, 4), new ItemStack(ConfigItems.itemShard, 1, 5) })); + ResearchRegistry.recipes.put("ItemPrimordialEdge", ThaumcraftApi.addInfusionCraftingRecipe("PRIMALBLADE", new ItemStack(ItemRegistry.ItemPrimordialEdge), 8, new AspectList() + .add(Aspect.WEAPON, 65).add(Aspect.ELDRITCH, 46).add(Aspect.DARKNESS, 16).add(Aspect.METAL, 60) + .add(Aspect.VOID, 56), ItemApi.getItem("itemSwordVoid", 0), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 5), new ItemStack(ConfigItems.itemShard, 1, 0), + new ItemStack(ConfigItems.itemShard, 1, 1), new ItemStack(ConfigItems.itemShard, 1, 2), new ItemStack(ItemRegistry.ItemMaterial, 1, 10), + new ItemStack(ConfigItems.itemShard, 1, 3), new ItemStack(ConfigItems.itemShard, 1, 4), new ItemStack(ConfigItems.itemShard, 1, 5) })); - ResearchRegistry.recipes.put("ItemFocusMageMace", ThaumcraftApi.addInfusionCraftingRecipe("MACEFOCUS", new ItemStack(ItemRegistry.ItemFocusMageMace), 3, new AspectList().add(Aspect.WEAPON, 32).add(Aspect.METAL, 8).add(Aspect.ENTROPY, 18).add(Aspect.MAGIC, 26), new ItemStack(Blocks.iron_block), new ItemStack[]{ new ItemStack(Items.gold_ingot), new ItemStack(Items.quartz), ItemApi.getItem("itemShard", 5), new ItemStack(Items.quartz), new ItemStack(ConfigItems.itemSwordThaumium), new ItemStack(Items.quartz), ItemApi.getItem("itemShard", 5), new ItemStack(Items.quartz) })); + ResearchRegistry.recipes.put("ItemFocusMageMace", ThaumcraftApi.addInfusionCraftingRecipe("MACEFOCUS", new ItemStack(ItemRegistry.ItemFocusMageMace), 3, new AspectList().add(Aspect.WEAPON, 32) + .add(Aspect.METAL, 8).add(Aspect.ENTROPY, 18) + .add(Aspect.MAGIC, 26), new ItemStack(Blocks.iron_block), new ItemStack[]{ new ItemStack(Items.gold_ingot), new ItemStack(Items.quartz), ItemApi.getItem("itemShard", 5), + new ItemStack(Items.quartz), new ItemStack(ConfigItems.itemSwordThaumium), new ItemStack(Items.quartz), ItemApi.getItem("itemShard", 5), new ItemStack(Items.quartz) })); - ResearchRegistry.recipes.put("ItemSwordCrimson", ThaumcraftApi.addInfusionCraftingRecipe("CRIMSONBLADE", new ItemStack(ConfigItems.itemSwordCrimson), 7, new AspectList().add(Aspect.WEAPON, 32).add(Aspect.METAL, 16).add(Aspect.ENTROPY, 8).add(Aspect.ELDRITCH, 18).add(Aspect.VOID, 32), ItemApi.getItem("itemSwordVoid", 0), new ItemStack[]{ new ItemStack(ItemRegistry.ItemCrystalDagger), new ItemStack(ItemRegistry.ItemMaterial, 1, 7), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), new ItemStack(ItemRegistry.ItemMaterial, 1, 7), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), new ItemStack(ItemRegistry.ItemMaterial, 1, 7), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), new ItemStack(ItemRegistry.ItemMaterial, 1, 7) })); + ResearchRegistry.recipes.put("ItemSwordCrimson", ThaumcraftApi.addInfusionCraftingRecipe("CRIMSONBLADE", new ItemStack(ConfigItems.itemSwordCrimson), 7, new AspectList().add(Aspect.WEAPON, 32) + .add(Aspect.METAL, 16).add(Aspect.ENTROPY, 8).add(Aspect.ELDRITCH, 18) + .add(Aspect.VOID, 32), ItemApi.getItem("itemSwordVoid", 0), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial.setContainerItem(ConfigItems.itemEssence), 1, 7), + new ItemStack(ItemRegistry.ItemMaterial.setContainerItem(ConfigItems.itemEssence), 1, 7), + new ItemStack(ItemRegistry.ItemMaterial.setContainerItem(ConfigItems.itemEssence), 1, 7) })); - ResearchRegistry.recipes.put("ItemVoidwalkerSash", ThaumcraftApi.addInfusionCraftingRecipe("VOIDSASH", new ItemStack(ItemRegistry.ItemVoidwalkerSash, 1), 7, new AspectList().add(Aspect.VOID, 56).add(Aspect.MAGIC, 40).add(Aspect.ARMOR, 66).add(Aspect.TRAVEL, 16).add(Aspect.FLIGHT, 10), ItemApi.getItem("itemGirdleRunic", 0), new ItemStack[]{ ItemApi.getItem("itemEldritchObject", 3), ItemApi.getItem("itemResource", 16), new ItemStack(ItemRegistry.ItemMaterial), ItemApi.getItem("itemResource", 16), new ItemStack(ItemRegistry.ItemMaterial, 1, 1), ItemApi.getItem("itemResource", 16), new ItemStack(ItemRegistry.ItemMaterial), ItemApi.getItem("itemResource", 16), })); + ResearchRegistry.recipes.put("ItemVoidwalkerSash", ThaumcraftApi.addInfusionCraftingRecipe("VOIDSASH", new ItemStack(ItemRegistry.ItemVoidwalkerSash, 1), 7, new AspectList() + .add(Aspect.VOID, 56).add(Aspect.MAGIC, 40).add(Aspect.ARMOR, 66).add(Aspect.TRAVEL, 16) + .add(Aspect.FLIGHT, 10), ItemApi.getItem("itemGirdleRunic", 0), new ItemStack[]{ ItemApi.getItem("itemEldritchObject", 3), ItemApi.getItem("itemResource", 16), + new ItemStack(ItemRegistry.ItemMaterial), ItemApi.getItem("itemResource", 16), new ItemStack(ItemRegistry.ItemMaterial, 1, 1), ItemApi.getItem("itemResource", 16), + new ItemStack(ItemRegistry.ItemMaterial), ItemApi.getItem("itemResource", 16), })); - ResearchRegistry.recipes.put("ItemMaterial:5", ThaumcraftApi.addInfusionCraftingRecipe("CREATIONSHARD", new ItemStack(ItemRegistry.ItemMaterial, 1, 5), 8, TaintedMagicHelper.getPrimals(46).add(Aspect.AURA, 35).add(Aspect.VOID, 22).add(Aspect.MAGIC, 56).add(Aspect.CRYSTAL, 38), ItemApi.getItem("itemEldritchObject", 3), new ItemStack[]{ new ItemStack(ConfigItems.itemShard, 1, 6), new ItemStack(ConfigItems.itemShard, 1, 0), new ItemStack(ConfigItems.itemShard, 1, 1), new ItemStack(ConfigItems.itemShard, 1, 2), new ItemStack(Items.blaze_powder), new ItemStack(Items.nether_star), new ItemStack(Items.blaze_powder), new ItemStack(ConfigItems.itemShard, 1, 3), new ItemStack(ConfigItems.itemShard, 1, 4), new ItemStack(ConfigItems.itemShard, 1, 5) })); + ResearchRegistry.recipes.put("ItemMaterial:5", ThaumcraftApi.addInfusionCraftingRecipe("CREATIONSHARD", new ItemStack(ItemRegistry.ItemMaterial, 1, 5), 8, TaintedMagicHelper.getPrimals(46) + .add(Aspect.AURA, 35).add(Aspect.VOID, 22).add(Aspect.MAGIC, 56).add(Aspect.CRYSTAL, 38), new ItemStack(ConfigItems.itemShard, 1, + 6), new ItemStack[]{ new ItemStack(ConfigItems.itemEldritchObject, 1, 3), new ItemStack(ConfigItems.itemShard, 1, 0), new ItemStack(ConfigItems.itemShard, 1, 1), + new ItemStack(ConfigItems.itemShard, 1, 2), new ItemStack(Items.nether_star), new ItemStack(ConfigItems.itemShard, 1, 3), new ItemStack(ConfigItems.itemShard, 1, 4), + new ItemStack(ConfigItems.itemShard, 1, 5) })); - ResearchRegistry.recipes.put("BlockWarpwoodSapling", ThaumcraftApi.addInfusionCraftingRecipe("WARPTREE", new ItemStack(BlockRegistry.BlockWarpwoodSapling), 3, new AspectList().add(Aspect.ELDRITCH, 8).add(Aspect.TREE, 8).add(Aspect.DARKNESS, 8), new ItemStack(Blocks.sapling, 1, Short.MAX_VALUE), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 3), ItemApi.getItem("itemZombieBrain", 0), new ItemStack(ItemRegistry.ItemMaterial, 1, 3), ItemApi.getItem("itemZombieBrain", 0) })); + ResearchRegistry.recipes + .put("BlockWarpwoodSapling", ThaumcraftApi.addInfusionCraftingRecipe("WARPTREE", new ItemStack(BlockRegistry.BlockWarpwoodSapling), 3, new AspectList().add(Aspect.ELDRITCH, 8) + .add(Aspect.TREE, 8).add(Aspect.DARKNESS, 8), new ItemStack(Blocks.sapling, 1, Short.MAX_VALUE), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 3), + ItemApi.getItem("itemZombieBrain", 0), new ItemStack(ItemRegistry.ItemMaterial, 1, 3), ItemApi.getItem("itemZombieBrain", 0) })); - ResearchRegistry.recipes.put("ItemWandRod:0", ThaumcraftApi.addInfusionCraftingRecipe("ROD_warpwood", new ItemStack(ItemRegistry.ItemWandRod), 8, new AspectList().add(Aspect.ELDRITCH, 65).add(Aspect.DARKNESS, 30).add(Aspect.TREE, 12).add(Aspect.MAGIC, 45).add(Aspect.AURA, 35), new ItemStack(BlockRegistry.BlockWarpwoodLog), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 10), new ItemStack(ItemRegistry.ItemMaterial), new ItemStack(ItemRegistry.ItemMaterial, 1, 3), ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemZombieBrain", 0), new ItemStack(ItemRegistry.ItemMaterial), new ItemStack(ItemRegistry.ItemMaterial, 1, 3), ItemApi.getItem("itemResource", 16) })); + ResearchRegistry.recipes.put("ItemWandRod:0", ThaumcraftApi.addInfusionCraftingRecipe("ROD_warpwood", new ItemStack(ItemRegistry.ItemWandRod), 8, new AspectList().add(Aspect.ELDRITCH, 65) + .add(Aspect.DARKNESS, 30).add(Aspect.TREE, 12).add(Aspect.MAGIC, 45) + .add(Aspect.AURA, 35), new ItemStack(BlockRegistry.BlockWarpwoodLog), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 10), new ItemStack(ItemRegistry.ItemMaterial), + new ItemStack(ItemRegistry.ItemMaterial, 1, 3), ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemZombieBrain", 0), new ItemStack(ItemRegistry.ItemMaterial), + new ItemStack(ItemRegistry.ItemMaterial, 1, 3), ItemApi.getItem("itemResource", 16) })); - ResearchRegistry.recipes.put("ItemVoidFortressHelmet:goggles", ThaumcraftApi.addInfusionCraftingRecipe("HELMGOGGLES", new Object[]{ "goggles", new NBTTagByte((byte) 1) }, 5, new AspectList().add(Aspect.SENSES, 32).add(Aspect.AURA, 16).add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemVoidFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.slime_ball), ItemApi.getItem("itemGoggles", 0) })); + ResearchRegistry.recipes.put("ItemVoidFortressHelmet:goggles", ThaumcraftApi + .addInfusionCraftingRecipe("HELMGOGGLES", new Object[]{ "goggles", new NBTTagByte((byte) 1) }, 5, new AspectList().add(Aspect.SENSES, 32).add(Aspect.AURA, 16) + .add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemVoidFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.slime_ball), ItemApi.getItem("itemGoggles", 0) })); - ResearchRegistry.recipes.put("ItemVoidFortressHelmet:mask0", ThaumcraftApi.addInfusionCraftingRecipe("MASKGRINNINGDEVIL", new Object[]{ "mask", new NBTTagInt(0) }, 8, new AspectList().add(Aspect.MIND, 64).add(Aspect.HEAL, 64).add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemVoidFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.dye, 1, 0), new ItemStack(Items.iron_ingot), new ItemStack(Items.leather), ItemApi.getBlock("blockCustomPlant", 2), ItemApi.getItem("itemZombieBrain", 0), new ItemStack(Items.iron_ingot) })); + ResearchRegistry.recipes.put("ItemVoidFortressHelmet:mask0", ThaumcraftApi + .addInfusionCraftingRecipe("MASKGRINNINGDEVIL", new Object[]{ "mask", new NBTTagInt(0) }, 8, new AspectList().add(Aspect.MIND, 64).add(Aspect.HEAL, 64) + .add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemVoidFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.dye, 1, 0), new ItemStack(Items.iron_ingot), + new ItemStack(Items.leather), ItemApi.getBlock("blockCustomPlant", 2), ItemApi.getItem("itemZombieBrain", 0), new ItemStack(Items.iron_ingot) })); - ResearchRegistry.recipes.put("ItemVoidFortressHelmet:mask1", ThaumcraftApi.addInfusionCraftingRecipe("MASKANGRYGHOST", new Object[]{ "mask", new NBTTagInt(1) }, 8, new AspectList().add(Aspect.ENTROPY, 64).add(Aspect.DEATH, 64).add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemVoidFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.dye, 1, 15), new ItemStack(Items.iron_ingot), new ItemStack(Items.leather), new ItemStack(Items.poisonous_potato), new ItemStack(Items.skull, 1, 1), new ItemStack(Items.iron_ingot) })); + ResearchRegistry.recipes.put("ItemVoidFortressHelmet:mask1", ThaumcraftApi.addInfusionCraftingRecipe("MASKANGRYGHOST", new Object[]{ "mask", new NBTTagInt(1) }, 8, new AspectList() + .add(Aspect.ENTROPY, 64).add(Aspect.DEATH, 64).add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemVoidFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.dye, 1, 15), + new ItemStack(Items.iron_ingot), new ItemStack(Items.leather), new ItemStack(Items.poisonous_potato), new ItemStack(Items.skull, 1, 1), new ItemStack(Items.iron_ingot) })); - ResearchRegistry.recipes.put("ItemVoidFortressHelmet:mask2", ThaumcraftApi.addInfusionCraftingRecipe("MASKSIPPINGFIEND", new Object[]{ "mask", new NBTTagInt(2) }, 8, new AspectList().add(Aspect.UNDEAD, 64).add(Aspect.LIFE, 64).add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemVoidFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.dye, 1, 1), new ItemStack(Items.iron_ingot), new ItemStack(Items.leather), new ItemStack(Items.ghast_tear), new ItemStack(Items.milk_bucket), new ItemStack(Items.iron_ingot) })); + ResearchRegistry.recipes.put("ItemVoidFortressHelmet:mask2", ThaumcraftApi.addInfusionCraftingRecipe("MASKSIPPINGFIEND", new Object[]{ "mask", new NBTTagInt(2) }, 8, new AspectList() + .add(Aspect.UNDEAD, 64).add(Aspect.LIFE, 64).add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemVoidFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.dye, 1, 1), + new ItemStack(Items.iron_ingot), new ItemStack(Items.leather), new ItemStack(Items.ghast_tear), new ItemStack(Items.milk_bucket), new ItemStack(Items.iron_ingot) })); - ResearchRegistry.recipes.put("ItemVoidFortressHelmet", ThaumcraftApi.addInfusionCraftingRecipe("VOIDFORTRESS", new ItemStack(ItemRegistry.ItemVoidFortressHelmet), 6, new AspectList().add(Aspect.METAL, 24).add(Aspect.ARMOR, 16).add(Aspect.MAGIC, 8).add(Aspect.ELDRITCH, 16).add(Aspect.VOID, 16), ItemApi.getItem("itemHelmetVoid", 0), new ItemStack[]{ ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemResource", 16), new ItemStack(Items.gold_ingot), new ItemStack(Items.gold_ingot), new ItemStack(Items.emerald) })); + ResearchRegistry.recipes.put("ItemVoidFortressHelmet", ThaumcraftApi.addInfusionCraftingRecipe("VOIDFORTRESS", new ItemStack(ItemRegistry.ItemVoidFortressHelmet), 6, new AspectList() + .add(Aspect.METAL, 24).add(Aspect.ARMOR, 16).add(Aspect.MAGIC, 8).add(Aspect.ELDRITCH, 16).add(Aspect.VOID, 16), ItemApi.getItem("itemHelmetVoid", 0), new ItemStack[]{ + ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemResource", 16), new ItemStack(Items.gold_ingot), new ItemStack(Items.gold_ingot), new ItemStack(Items.emerald) })); - ResearchRegistry.recipes.put("ItemVoidFortressChestplate", ThaumcraftApi.addInfusionCraftingRecipe("VOIDFORTRESS", new ItemStack(ItemRegistry.ItemVoidFortressChestplate), 6, new AspectList().add(Aspect.METAL, 24).add(Aspect.ARMOR, 24).add(Aspect.MAGIC, 8).add(Aspect.ELDRITCH, 16).add(Aspect.VOID, 24), ItemApi.getItem("itemChestVoid", 0), new ItemStack[]{ ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemResource", 16), new ItemStack(Items.gold_ingot), new ItemStack(Items.leather) })); + ResearchRegistry.recipes.put("ItemVoidFortressChestplate", ThaumcraftApi + .addInfusionCraftingRecipe("VOIDFORTRESS", new ItemStack(ItemRegistry.ItemVoidFortressChestplate), 6, new AspectList().add(Aspect.METAL, 24).add(Aspect.ARMOR, 24).add(Aspect.MAGIC, 8) + .add(Aspect.ELDRITCH, 16).add(Aspect.VOID, 24), ItemApi.getItem("itemChestVoid", 0), new ItemStack[]{ ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemResource", 16), + ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemResource", 16), new ItemStack(Items.gold_ingot), new ItemStack(Items.leather) })); - ResearchRegistry.recipes.put("ItemVoidFortressLeggings", ThaumcraftApi.addInfusionCraftingRecipe("VOIDFORTRESS", new ItemStack(ItemRegistry.ItemVoidFortressLeggings), 6, new AspectList().add(Aspect.METAL, 24).add(Aspect.ARMOR, 20).add(Aspect.MAGIC, 8).add(Aspect.ELDRITCH, 16).add(Aspect.VOID, 20), ItemApi.getItem("itemLegsVoid", 0), new ItemStack[]{ ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemResource", 16), new ItemStack(Items.gold_ingot), new ItemStack(Items.leather) })); + ResearchRegistry.recipes.put("ItemVoidFortressLeggings", ThaumcraftApi + .addInfusionCraftingRecipe("VOIDFORTRESS", new ItemStack(ItemRegistry.ItemVoidFortressLeggings), 6, new AspectList().add(Aspect.METAL, 24).add(Aspect.ARMOR, 20).add(Aspect.MAGIC, 8) + .add(Aspect.ELDRITCH, 16).add(Aspect.VOID, 20), ItemApi.getItem("itemLegsVoid", 0), new ItemStack[]{ ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemResource", 16), + ItemApi.getItem("itemResource", 16), new ItemStack(Items.gold_ingot), new ItemStack(Items.leather) })); - ResearchRegistry.recipes.put("ItemWarpedGoggles", ThaumcraftApi.addInfusionCraftingRecipe("WARPEDGOGGLES", new ItemStack(ItemRegistry.ItemWarpedGoggles), 3, new AspectList().add(Aspect.ELDRITCH, 35).add(Aspect.DARKNESS, 12).add(Aspect.MAGIC, 16).add(Aspect.ARMOR, 8), ItemApi.getItem("itemGoggles", 0), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 9), new ItemStack(ConfigItems.itemWispEssence, 1, 32767) })); + ResearchRegistry.recipes.put("ItemWarpedGoggles", ThaumcraftApi.addInfusionCraftingRecipe("WARPEDGOGGLES", new ItemStack(ItemRegistry.ItemWarpedGoggles), 3, new AspectList() + .add(Aspect.ELDRITCH, 35).add(Aspect.DARKNESS, 12).add(Aspect.MAGIC, 16) + .add(Aspect.ARMOR, 8), ItemApi.getItem("itemGoggles", 0), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 9), new ItemStack(ConfigItems.itemWispEssence, 1, 32767) })); - ResearchRegistry.recipes.put("ItemWandCap:0", ThaumcraftApi.addInfusionCraftingRecipe("CAP_shadowmetal", new ItemStack(ItemRegistry.ItemWandCap), 8, new AspectList().add(Aspect.ELDRITCH, 55).add(Aspect.DARKNESS, 47).add(Aspect.MAGIC, 52).add(Aspect.METAL, 45).add(Aspect.VOID, 55), ItemApi.getItem("itemWandCap", 7), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 3), new ItemStack(ItemRegistry.ItemMaterial), ItemApi.getItem("itemResource", 16), new ItemStack(ItemRegistry.ItemMaterial), new ItemStack(ItemRegistry.ItemMaterial, 1, 10), new ItemStack(ItemRegistry.ItemMaterial), ItemApi.getItem("itemResource", 16), new ItemStack(ItemRegistry.ItemMaterial) })); + ResearchRegistry.recipes.put("ItemWandCap:0", ThaumcraftApi.addInfusionCraftingRecipe("CAP_shadowmetal", new ItemStack(ItemRegistry.ItemWandCap), 8, new AspectList().add(Aspect.ELDRITCH, 55) + .add(Aspect.DARKNESS, 47).add(Aspect.MAGIC, 52).add(Aspect.METAL, 45) + .add(Aspect.VOID, 55), ItemApi.getItem("itemWandCap", 7), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 3), new ItemStack(ItemRegistry.ItemMaterial), + ItemApi.getItem("itemResource", 16), new ItemStack(ItemRegistry.ItemMaterial), new ItemStack(ItemRegistry.ItemMaterial, 1, 10), new ItemStack(ItemRegistry.ItemMaterial), + ItemApi.getItem("itemResource", 16), new ItemStack(ItemRegistry.ItemMaterial) })); - ResearchRegistry.recipes.put("ItemFocusTaint", ThaumcraftApi.addInfusionCraftingRecipe("TAINTFOCUS", new ItemStack(ItemRegistry.ItemFocusTaint), 4, new AspectList().add(Aspect.TAINT, 45).add(Aspect.POISON, 52).add(Aspect.MAGIC, 36).add(Aspect.SLIME, 22).add(Aspect.DEATH, 37), ItemApi.getItem("itemFocusPech", 0), new ItemStack[]{ ItemApi.getItem("itemResource", 11), new ItemStack(ItemRegistry.ItemMaterial, 1, 4), ItemApi.getItem("itemBottleTaint", 0), new ItemStack(ItemRegistry.ItemMaterial, 1, 4), ItemApi.getItem("itemResource", 11), new ItemStack(ItemRegistry.ItemMaterial, 1, 4), ItemApi.getItem("itemBottleTaint", 0), new ItemStack(ItemRegistry.ItemMaterial, 1, 4) })); + ResearchRegistry.recipes.put("ItemFocusTaintSwarm", ThaumcraftApi.addInfusionCraftingRecipe("TAINTFOCUS", new ItemStack(ItemRegistry.ItemFocusTaintSwarm), 4, new AspectList() + .add(Aspect.TAINT, 45).add(Aspect.LIFE, 24).add(Aspect.MOTION, 24).add(Aspect.MAGIC, 16) + .add(Aspect.DEATH, 37), new ItemStack(ItemRegistry.ItemFocusVisShard), new ItemStack[]{ ItemApi.getItem("itemResource", 11), new ItemStack(ItemRegistry.ItemMaterial, 1, 4), + ItemApi.getItem("itemBottleTaint", 0), new ItemStack(ItemRegistry.ItemMaterial, 1, 4), ItemApi.getItem("itemResource", 11), new ItemStack(ItemRegistry.ItemMaterial, 1, 4), + ItemApi.getItem("itemBottleTaint", 0), new ItemStack(ItemRegistry.ItemMaterial, 1, 4) })); - ResearchRegistry.recipes.put("ItemFocusDarkMatter", ThaumcraftApi.addInfusionCraftingRecipe("ELDRITCHFOCUS", new ItemStack(ItemRegistry.ItemFocusDarkMatter), 6, new AspectList().add(Aspect.ELDRITCH, 45).add(Aspect.DARKNESS, 65).add(Aspect.MAGIC, 56).add(Aspect.DEATH, 45).add(Aspect.VOID, 38), new ItemStack(ConfigItems.itemResource, 1, 17), new ItemStack[]{ new ItemStack(ConfigItems.itemEldritchObject, 1, 3), new ItemStack(ItemRegistry.ItemMaterial, 1, 3), new ItemStack(ConfigItems.itemBucketDeath), new ItemStack(ConfigItems.itemFocusPortableHole), new ItemStack(ConfigItems.itemBucketPure), new ItemStack(ConfigItems.itemWispEssence, 1, 32767) })); + ResearchRegistry.recipes.put("ItemFocusDarkMatter", ThaumcraftApi.addInfusionCraftingRecipe("ELDRITCHFOCUS", new ItemStack(ItemRegistry.ItemFocusDarkMatter), 6, new AspectList() + .add(Aspect.ELDRITCH, 64).add(Aspect.DARKNESS, 32).add(Aspect.MAGIC, 32).add(Aspect.DEATH, 32) + .add(Aspect.VOID, 32), new ItemStack(ConfigItems.itemFocusPortableHole), new ItemStack[]{ new ItemStack(ConfigItems.itemEldritchObject, 1, 3), + new ItemStack(ConfigItems.itemResource, 1, 16), new ItemStack(ItemRegistry.ItemMaterial, 1, 3), new ItemStack(ConfigItems.itemBucketDeath), + new ItemStack(ItemRegistry.ItemMaterial, 1, 3), new ItemStack(ConfigItems.itemResource, 1, 16), new ItemStack(ConfigItems.itemResource, 1, 17), + new ItemStack(ConfigItems.itemResource, 1, 16), new ItemStack(ItemRegistry.ItemMaterial, 1, 3), new ItemStack(ConfigItems.itemBucketDeath), + new ItemStack(ItemRegistry.ItemMaterial, 1, 3), new ItemStack(ConfigItems.itemResource, 1, 16) })); - ResearchRegistry.recipes.put("ItemMaterial:8", ThaumcraftApi.addInfusionCraftingRecipe("KNIGHTROBES", new ItemStack(ItemRegistry.ItemMaterial, 1, 8), 2, new AspectList().add(Aspect.HUNGER, 4).add(Aspect.METAL, 8).add(Aspect.MAGIC, 6), new ItemStack(Items.iron_ingot), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 7), new ItemStack(ItemRegistry.ItemMaterial, 1, 7), new ItemStack(ItemRegistry.ItemMaterial, 1, 7), new ItemStack(ItemRegistry.ItemMaterial, 1, 7) })); + ResearchRegistry.recipes.put("ItemMaterial:8", ThaumcraftApi + .addInfusionCraftingRecipe("KNIGHTROBES", new ItemStack(ItemRegistry.ItemMaterial, 9, 8), 2, new AspectList().add(Aspect.HUNGER, 4).add(Aspect.METAL, 8) + .add(Aspect.MAGIC, 6), new ItemStack(Blocks.iron_block), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial.setContainerItem(ConfigItems.itemEssence), 1, 7), + new ItemStack(Items.gold_nugget), new ItemStack(ItemRegistry.ItemMaterial.setContainerItem(ConfigItems.itemEssence), 1, 7), new ItemStack(Items.gold_nugget), + new ItemStack(ItemRegistry.ItemMaterial.setContainerItem(ConfigItems.itemEssence), 1, 7), new ItemStack(Items.gold_nugget), + new ItemStack(ItemRegistry.ItemMaterial.setContainerItem(ConfigItems.itemEssence), 1, 7), new ItemStack(Items.gold_nugget) })); - ResearchRegistry.recipes.put("ItemHelmetCultistLeaderPlate", ThaumcraftApi.addInfusionCraftingRecipe("PRAETORARMOR", ItemApi.getItem("itemHelmetCultistLeaderPlate", 0), 6, new AspectList().add(Aspect.DARKNESS, 22).add(Aspect.METAL, 34).add(Aspect.MAGIC, 25).add(Aspect.HUNGER, 12), ItemApi.getItem("itemHelmetCultistPlate", 0), new ItemStack[]{ new ItemStack(Items.gold_ingot), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), new ItemStack(Items.gold_ingot), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), new ItemStack(ItemRegistry.ItemMaterial, 1, 8) })); + ResearchRegistry.recipes.put("ItemVoidwalkerBoots", ThaumcraftApi.addInfusionCraftingRecipe("VOIDWALKERBOOTS", new ItemStack(ItemRegistry.ItemVoidwalkerBoots), 8, new AspectList() + .add(Aspect.DARKNESS, 42).add(Aspect.VOID, 56).add(Aspect.ELDRITCH, 38).add(Aspect.ARMOR, 60) + .add(Aspect.TRAVEL, 45), ItemApi.getItem("itemBootsTraveller", 0), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 11), ItemApi.getItem("itemResource", 16), + new ItemStack(ItemRegistry.ItemMaterial, 1, 1), new ItemStack(ItemRegistry.ItemMaterial), new ItemStack(ItemRegistry.ItemMaterial, 1, 1), ItemApi.getItem("itemResource", 16), + ItemApi.getItem("itemEldritchObject", 0), ItemApi.getItem("itemResource", 16), new ItemStack(ItemRegistry.ItemMaterial, 1, 1), new ItemStack(ItemRegistry.ItemMaterial), + new ItemStack(ItemRegistry.ItemMaterial, 1, 1), ItemApi.getItem("itemResource", 16) })); - ResearchRegistry.recipes.put("ItemChestCultistLeaderPlate", ThaumcraftApi.addInfusionCraftingRecipe("PRAETORARMOR", ItemApi.getItem("itemChestCultistLeaderPlate", 0), 6, new AspectList().add(Aspect.DARKNESS, 22).add(Aspect.METAL, 44).add(Aspect.MAGIC, 25).add(Aspect.HUNGER, 12), ItemApi.getItem("itemChestCultistPlate", 0), new ItemStack[]{ new ItemStack(Items.gold_ingot), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), new ItemStack(Items.gold_ingot), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), new ItemStack(ItemRegistry.ItemMaterial, 1, 8) })); + ResearchRegistry.recipes.put("ItemSalis:0", ThaumcraftApi.addInfusionCraftingRecipe("SKYSALT", new ItemStack(ItemRegistry.ItemSalis, 3, 0), 7, new AspectList().add(Aspect.AURA, 10) + .add(Aspect.WEATHER, 15).add(Aspect.WATER, 15), new ItemStack(ItemRegistry.ItemMaterial, 1, + 12), new ItemStack[]{ new ItemStack(ConfigItems.itemResource, 1, 14), new ItemStack(ConfigItems.itemResource, 1, 0), new ItemStack(ConfigItems.itemNugget, 1, 5) })); - ResearchRegistry.recipes.put("ItemLegsCultistLeaderPlate", ThaumcraftApi.addInfusionCraftingRecipe("PRAETORARMOR", ItemApi.getItem("itemLegsCultistLeaderPlate", 0), 6, new AspectList().add(Aspect.DARKNESS, 22).add(Aspect.METAL, 40).add(Aspect.MAGIC, 25).add(Aspect.HUNGER, 12), ItemApi.getItem("itemLegsCultistPlate", 0), new ItemStack[]{ new ItemStack(Items.gold_ingot), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), new ItemStack(Items.gold_ingot), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), new ItemStack(ItemRegistry.ItemMaterial, 1, 8) })); + ResearchRegistry.recipes.put("ItemSalis:1", ThaumcraftApi.addInfusionCraftingRecipe("TIMESALT", new ItemStack(ItemRegistry.ItemSalis, 3, 1), 7, new AspectList().add(Aspect.AURA, 10) + .add(Aspect.LIGHT, 15).add(Aspect.DARKNESS, 15), new ItemStack(ItemRegistry.ItemMaterial, 1, + 12), new ItemStack[]{ new ItemStack(ConfigItems.itemResource, 1, 14), new ItemStack(ConfigItems.itemResource, 1, 1), new ItemStack(Items.gold_nugget) })); - ResearchRegistry.recipes.put("ItemVoidwalkerBoots", ThaumcraftApi.addInfusionCraftingRecipe("VOIDWALKERBOOTS", new ItemStack(ItemRegistry.ItemVoidwalkerBoots), 8, new AspectList().add(Aspect.DARKNESS, 42).add(Aspect.VOID, 56).add(Aspect.ELDRITCH, 38).add(Aspect.ARMOR, 60).add(Aspect.TRAVEL, 45), ItemApi.getItem("itemBootsTraveller", 0), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 11), ItemApi.getItem("itemResource", 16), new ItemStack(ItemRegistry.ItemMaterial, 1, 1), new ItemStack(ItemRegistry.ItemMaterial), new ItemStack(ItemRegistry.ItemMaterial, 1, 1), ItemApi.getItem("itemResource", 16), ItemApi.getItem("itemEldritchObject", 0), ItemApi.getItem("itemResource", 16), new ItemStack(ItemRegistry.ItemMaterial, 1, 1), new ItemStack(ItemRegistry.ItemMaterial), new ItemStack(ItemRegistry.ItemMaterial, 1, 1), ItemApi.getItem("itemResource", 16) })); + ResearchRegistry.recipes.put("ItemThaumicDisassembler", ThaumcraftApi.addInfusionCraftingRecipe("THAUMICDISASSEMBLER", new ItemStack(ItemRegistry.ItemThaumicDisassembler), 3, new AspectList() + .add(Aspect.METAL, 22).add(Aspect.TOOL, 24).add(Aspect.WEAPON, 14).add(Aspect.MECHANISM, 12), new ItemStack(ItemRegistry.ItemMaterial, 1, + 6), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 11), ItemApi.getItem("itemPickVoid", 0), ItemApi.getItem("itemResource", 2), + ItemApi.getItem("itemShovelVoid", 0), ItemApi.getItem("itemResource", 2), ItemApi.getItem("itemSwordVoid", 0), ItemApi.getItem("itemResource", 2), + ItemApi.getItem("itemAxeVoid", 0) })); - ResearchRegistry.recipes.put("ItemFocusTime", ThaumcraftApi.addInfusionCraftingRecipe("FOCUSTIME", new ItemStack(ItemRegistry.ItemFocusTime), 7, new AspectList().add(Aspect.AURA, 30).add(Aspect.DARKNESS, 45).add(Aspect.LIGHT, 45).add(Aspect.EARTH, 22), new ItemStack(ItemRegistry.ItemMaterial, 1, 11), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 5), new ItemStack(ConfigBlocks.blockCustomPlant, 1, 1), new ItemStack(ConfigItems.itemResource, 1, 14), new ItemStack(ConfigItems.itemResource, 1, 15), new ItemStack(ConfigBlocks.blockMetalDevice, 1, 8), new ItemStack(ConfigItems.itemWispEssence, 1, 32767) })); + ResearchRegistry.recipes.put("ItemShadowFortressHelmet:goggles", ThaumcraftApi + .addInfusionCraftingRecipe("HELMGOGGLES", new Object[]{ "goggles", new NBTTagByte((byte) 1) }, 5, new AspectList().add(Aspect.SENSES, 32).add(Aspect.AURA, 16) + .add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemShadowFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.slime_ball), ItemApi.getItem("itemGoggles", 0) })); - ResearchRegistry.recipes.put("ItemFocusMeteorology", ThaumcraftApi.addInfusionCraftingRecipe("FOCUSWEATHER", new ItemStack(ItemRegistry.ItemFocusMeteorology), 7, new AspectList().add(Aspect.AURA, 30).add(Aspect.WEATHER, 45).add(Aspect.WATER, 45).add(Aspect.COLD, 22), new ItemStack(ItemRegistry.ItemMaterial, 1, 11), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 5), new ItemStack(ConfigItems.itemFocusFrost), new ItemStack(Items.snowball), new ItemStack(ConfigItems.itemShard, 1, 2), new ItemStack(ConfigItems.itemFocusShock), new ItemStack(Items.water_bucket) })); + ResearchRegistry.recipes.put("ItemShadowFortressHelmet:mask0", ThaumcraftApi + .addInfusionCraftingRecipe("MASKGRINNINGDEVIL", new Object[]{ "mask", new NBTTagInt(0) }, 8, new AspectList().add(Aspect.MIND, 64).add(Aspect.HEAL, 64) + .add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemShadowFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.dye, 1, 0), new ItemStack(Items.iron_ingot), + new ItemStack(Items.leather), ItemApi.getBlock("blockCustomPlant", 2), ItemApi.getItem("itemZombieBrain", 0), new ItemStack(Items.iron_ingot) })); - ResearchRegistry.recipes.put("ItemThaumicDisassembler", ThaumcraftApi.addInfusionCraftingRecipe("THAUMICDISASSEMBLER", new ItemStack(ItemRegistry.ItemThaumicDisassembler), 3, new AspectList().add(Aspect.METAL, 22).add(Aspect.TOOL, 24).add(Aspect.WEAPON, 14).add(Aspect.MECHANISM, 12), new ItemStack(ItemRegistry.ItemMaterial, 1, 6), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 11), ItemApi.getItem("itemPickVoid", 0), ItemApi.getItem("itemResource", 2), ItemApi.getItem("itemShovelVoid", 0), ItemApi.getItem("itemResource", 2), ItemApi.getItem("itemSwordVoid", 0), ItemApi.getItem("itemResource", 2), ItemApi.getItem("itemAxeVoid", 0) })); + ResearchRegistry.recipes.put("ItemShadowFortressHelmet:mask1", ThaumcraftApi.addInfusionCraftingRecipe("MASKANGRYGHOST", new Object[]{ "mask", new NBTTagInt(1) }, 8, new AspectList() + .add(Aspect.ENTROPY, 64).add(Aspect.DEATH, 64).add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemShadowFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.dye, 1, 15), + new ItemStack(Items.iron_ingot), new ItemStack(Items.leather), new ItemStack(Items.poisonous_potato), new ItemStack(Items.skull, 1, 1), new ItemStack(Items.iron_ingot) })); - ResearchRegistry.recipes.put("ItemShadowFortressHelmet:goggles", ThaumcraftApi.addInfusionCraftingRecipe("HELMGOGGLES", new Object[]{ "goggles", new NBTTagByte((byte) 1) }, 5, new AspectList().add(Aspect.SENSES, 32).add(Aspect.AURA, 16).add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemShadowFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.slime_ball), ItemApi.getItem("itemGoggles", 0) })); + ResearchRegistry.recipes.put("ItemShadowFortressHelmet:mask2", ThaumcraftApi.addInfusionCraftingRecipe("MASKSIPPINGFIEND", new Object[]{ "mask", new NBTTagInt(2) }, 8, new AspectList() + .add(Aspect.UNDEAD, 64).add(Aspect.LIFE, 64).add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemShadowFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.dye, 1, 1), + new ItemStack(Items.iron_ingot), new ItemStack(Items.leather), new ItemStack(Items.ghast_tear), new ItemStack(Items.milk_bucket), new ItemStack(Items.iron_ingot) })); - ResearchRegistry.recipes.put("ItemShadowFortressHelmet:mask0", ThaumcraftApi.addInfusionCraftingRecipe("MASKGRINNINGDEVIL", new Object[]{ "mask", new NBTTagInt(0) }, 8, new AspectList().add(Aspect.MIND, 64).add(Aspect.HEAL, 64).add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemShadowFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.dye, 1, 0), new ItemStack(Items.iron_ingot), new ItemStack(Items.leather), ItemApi.getBlock("blockCustomPlant", 2), ItemApi.getItem("itemZombieBrain", 0), new ItemStack(Items.iron_ingot) })); + ResearchRegistry.recipes.put("ItemShadowFortressHelmet", ThaumcraftApi + .addInfusionCraftingRecipe("SHADOWFORTRESSARMOR", new ItemStack(ItemRegistry.ItemShadowFortressHelmet), 7, new AspectList().add(Aspect.METAL, 28).add(Aspect.ARMOR, 20) + .add(Aspect.MAGIC, 12).add(Aspect.DARKNESS, 30).add(Aspect.VOID, 22), ItemApi.getItem("itemHelmetVoid", 0), new ItemStack[]{ new ItemStack(BlockRegistry.BlockShadowmetal), + new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(Items.gold_ingot), new ItemStack(Items.gold_ingot), new ItemStack(Items.emerald) })); - ResearchRegistry.recipes.put("ItemShadowFortressHelmet:mask1", ThaumcraftApi.addInfusionCraftingRecipe("MASKANGRYGHOST", new Object[]{ "mask", new NBTTagInt(1) }, 8, new AspectList().add(Aspect.ENTROPY, 64).add(Aspect.DEATH, 64).add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemShadowFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.dye, 1, 15), new ItemStack(Items.iron_ingot), new ItemStack(Items.leather), new ItemStack(Items.poisonous_potato), new ItemStack(Items.skull, 1, 1), new ItemStack(Items.iron_ingot) })); + ResearchRegistry.recipes + .put("ItemShadowFortressChestplate", ThaumcraftApi.addInfusionCraftingRecipe("SHADOWFORTRESSARMOR", new ItemStack(ItemRegistry.ItemShadowFortressChestplate), 7, new AspectList() + .add(Aspect.METAL, 38).add(Aspect.ARMOR, 26).add(Aspect.MAGIC, 18).add(Aspect.DARKNESS, 34) + .add(Aspect.VOID, 26), ItemApi.getItem("itemChestVoid", 0), new ItemStack[]{ new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(BlockRegistry.BlockShadowmetal), + new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(Items.gold_ingot), new ItemStack(Items.leather) })); - ResearchRegistry.recipes.put("ItemShadowFortressHelmet:mask2", ThaumcraftApi.addInfusionCraftingRecipe("MASKSIPPINGFIEND", new Object[]{ "mask", new NBTTagInt(2) }, 8, new AspectList().add(Aspect.UNDEAD, 64).add(Aspect.LIFE, 64).add(Aspect.ARMOR, 16), new ItemStack(ItemRegistry.ItemShadowFortressHelmet, 1, 32767), new ItemStack[]{ new ItemStack(Items.dye, 1, 1), new ItemStack(Items.iron_ingot), new ItemStack(Items.leather), new ItemStack(Items.ghast_tear), new ItemStack(Items.milk_bucket), new ItemStack(Items.iron_ingot) })); + ResearchRegistry.recipes.put("ItemShadowFortressLeggings", ThaumcraftApi + .addInfusionCraftingRecipe("SHADOWFORTRESSARMOR", new ItemStack(ItemRegistry.ItemShadowFortressLeggings), 7, new AspectList().add(Aspect.METAL, 32).add(Aspect.ARMOR, 24) + .add(Aspect.MAGIC, 16).add(Aspect.DARKNESS, 32).add(Aspect.VOID, 24), ItemApi.getItem("itemLegsVoid", 0), new ItemStack[]{ new ItemStack(BlockRegistry.BlockShadowmetal), + new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(Items.gold_ingot), new ItemStack(Items.leather) })); - ResearchRegistry.recipes.put("ItemShadowFortressHelmet", ThaumcraftApi.addInfusionCraftingRecipe("SHADOWFORTRESSARMOR", new ItemStack(ItemRegistry.ItemShadowFortressHelmet), 7, new AspectList().add(Aspect.METAL, 28).add(Aspect.ARMOR, 20).add(Aspect.MAGIC, 12).add(Aspect.DARKNESS, 30).add(Aspect.VOID, 22), ItemApi.getItem("itemHelmetVoid", 0), new ItemStack[]{ new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(Items.gold_ingot), new ItemStack(Items.gold_ingot), new ItemStack(Items.emerald) })); + ResearchRegistry.recipes.put("ItemKatana:0", ThaumcraftApi + .addInfusionCraftingRecipe("THAUMIUMKATANA", new ItemStack(ItemRegistry.ItemKatana, 1, 0), 3, new AspectList().add(Aspect.METAL, 42).add(Aspect.WEAPON, 45) + .add(Aspect.MAGIC, 22), new ItemStack(ConfigItems.itemSwordThaumium), new ItemStack[]{ new ItemStack(Blocks.obsidian), new ItemStack(ConfigItems.itemResource, 1, 2), + new ItemStack(Items.gold_ingot), new ItemStack(Items.emerald), new ItemStack(Items.iron_ingot), new ItemStack(ConfigItems.itemResource, 1, 2), + new ItemStack(Blocks.obsidian), new ItemStack(ConfigItems.itemResource, 1, 2), new ItemStack(Items.gold_ingot), new ItemStack(Items.emerald), + new ItemStack(Items.iron_ingot), new ItemStack(ConfigItems.itemResource, 1, 2) })); - ResearchRegistry.recipes.put("ItemShadowFortressChestplate", ThaumcraftApi.addInfusionCraftingRecipe("SHADOWFORTRESSARMOR", new ItemStack(ItemRegistry.ItemShadowFortressChestplate), 7, new AspectList().add(Aspect.METAL, 38).add(Aspect.ARMOR, 26).add(Aspect.MAGIC, 18).add(Aspect.DARKNESS, 34).add(Aspect.VOID, 26), ItemApi.getItem("itemChestVoid", 0), new ItemStack[]{ new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(Items.gold_ingot), new ItemStack(Items.leather) })); + ResearchRegistry.recipes.put("ItemKatana:1", ThaumcraftApi.addInfusionCraftingRecipe("VOIDMETALKATANA", new ItemStack(ItemRegistry.ItemKatana, 1, 1), 6, new AspectList().add(Aspect.METAL, 52) + .add(Aspect.WEAPON, 55).add(Aspect.MAGIC, 32).add(Aspect.VOID, 46) + .add(Aspect.ELDRITCH, 12), new ItemStack(ConfigItems.itemSwordVoid), new ItemStack[]{ new ItemStack(Blocks.obsidian), new ItemStack(ConfigItems.itemResource, 1, 16), + new ItemStack(Items.gold_ingot), new ItemStack(Items.emerald), new ItemStack(Items.iron_ingot), new ItemStack(ConfigItems.itemResource, 1, 16), new ItemStack(Blocks.obsidian), + new ItemStack(ConfigItems.itemResource, 1, 16), new ItemStack(Items.gold_ingot), new ItemStack(Items.emerald), new ItemStack(Items.iron_ingot), + new ItemStack(ConfigItems.itemResource, 1, 16) })); - ResearchRegistry.recipes.put("ItemShadowFortressLeggings", ThaumcraftApi.addInfusionCraftingRecipe("SHADOWFORTRESSARMOR", new ItemStack(ItemRegistry.ItemShadowFortressLeggings), 7, new AspectList().add(Aspect.METAL, 32).add(Aspect.ARMOR, 24).add(Aspect.MAGIC, 16).add(Aspect.DARKNESS, 32).add(Aspect.VOID, 24), ItemApi.getItem("itemLegsVoid", 0), new ItemStack[]{ new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(BlockRegistry.BlockShadowmetal), new ItemStack(Items.gold_ingot), new ItemStack(Items.leather) })); + ResearchRegistry.recipes.put("ItemKatana:2", ThaumcraftApi.addInfusionCraftingRecipe("SHADOWMETALKATANA", new ItemStack(ItemRegistry.ItemKatana, 1, 2), 7, new AspectList() + .add(Aspect.METAL, 62).add(Aspect.WEAPON, 65).add(Aspect.MAGIC, 42).add(Aspect.VOID, 16) + .add(Aspect.DARKNESS, 46), new ItemStack(ItemRegistry.ItemShadowmetalSword), new ItemStack[]{ new ItemStack(Blocks.obsidian), new ItemStack(ItemRegistry.ItemMaterial, 1, 0), + new ItemStack(Items.iron_ingot), new ItemStack(Items.emerald), new ItemStack(Items.iron_ingot), new ItemStack(ItemRegistry.ItemMaterial, 1, 0), new ItemStack(Blocks.obsidian), + new ItemStack(ItemRegistry.ItemMaterial, 1, 0), new ItemStack(Items.iron_ingot), new ItemStack(Items.emerald), new ItemStack(Items.iron_ingot), + new ItemStack(ItemRegistry.ItemMaterial, 1, 0) })); - ResearchRegistry.recipes.put("ItemKatana:0", ThaumcraftApi.addInfusionCraftingRecipe("THAUMIUMKATANA", new ItemStack(ItemRegistry.ItemKatana, 1, 0), 3, new AspectList().add(Aspect.METAL, 42).add(Aspect.WEAPON, 45).add(Aspect.MAGIC, 22), new ItemStack(ConfigItems.itemSwordThaumium), new ItemStack[]{ new ItemStack(Blocks.obsidian), new ItemStack(ConfigItems.itemResource, 1, 2), new ItemStack(Items.gold_ingot), new ItemStack(Items.emerald), new ItemStack(Items.iron_ingot), new ItemStack(ConfigItems.itemResource, 1, 2), new ItemStack(Blocks.obsidian), new ItemStack(ConfigItems.itemResource, 1, 2), new ItemStack(Items.gold_ingot), new ItemStack(Items.emerald), new ItemStack(Items.iron_ingot), new ItemStack(ConfigItems.itemResource, 1, 2) })); - - ResearchRegistry.recipes.put("ItemKatana:1", ThaumcraftApi.addInfusionCraftingRecipe("VOIDMETALKATANA", new ItemStack(ItemRegistry.ItemKatana, 1, 1), 6, new AspectList().add(Aspect.METAL, 52).add(Aspect.WEAPON, 55).add(Aspect.MAGIC, 32).add(Aspect.VOID, 46).add(Aspect.ELDRITCH, 12), new ItemStack(ConfigItems.itemSwordVoid), new ItemStack[]{ new ItemStack(Blocks.obsidian), new ItemStack(ConfigItems.itemResource, 1, 16), new ItemStack(Items.gold_ingot), new ItemStack(Items.emerald), new ItemStack(Items.iron_ingot), new ItemStack(ConfigItems.itemResource, 1, 16), new ItemStack(Blocks.obsidian), new ItemStack(ConfigItems.itemResource, 1, 16), new ItemStack(Items.gold_ingot), new ItemStack(Items.emerald), new ItemStack(Items.iron_ingot), new ItemStack(ConfigItems.itemResource, 1, 16) })); - - ResearchRegistry.recipes.put("ItemKatana:2", ThaumcraftApi.addInfusionCraftingRecipe("SHADOWMETALKATANA", new ItemStack(ItemRegistry.ItemKatana, 1, 2), 7, new AspectList().add(Aspect.METAL, 62).add(Aspect.WEAPON, 65).add(Aspect.MAGIC, 42).add(Aspect.VOID, 16).add(Aspect.DARKNESS, 46), new ItemStack(ItemRegistry.ItemShadowmetalSword), new ItemStack[]{ new ItemStack(Blocks.obsidian), new ItemStack(ItemRegistry.ItemMaterial, 1, 0), new ItemStack(Items.iron_ingot), new ItemStack(Items.emerald), new ItemStack(Items.iron_ingot), new ItemStack(ItemRegistry.ItemMaterial, 1, 0), new ItemStack(Blocks.obsidian), new ItemStack(ItemRegistry.ItemMaterial, 1, 0), new ItemStack(Items.iron_ingot), new ItemStack(Items.emerald), new ItemStack(Items.iron_ingot), new ItemStack(ItemRegistry.ItemMaterial, 1, 0) })); - - ResearchRegistry.recipes.put("ItemFlyteCharm", ThaumcraftApi.addInfusionCraftingRecipe("FLYTECHARM", new ItemStack(ItemRegistry.ItemFlyteCharm, 1, 0), 7, new AspectList().add(Aspect.FLIGHT, 86).add(Aspect.AURA, 56).add(Aspect.SENSES, 25).add(Aspect.MAGIC, 48).add(Aspect.ENERGY, 65), new ItemStack(ConfigItems.itemPrimalArrow, 1, 0), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 10), new ItemStack(Items.gold_ingot), new ItemStack(ConfigItems.itemShard, 1, 0), new ItemStack(Items.iron_ingot), new ItemStack(ItemRegistry.ItemMaterial, 1, 5), new ItemStack(Items.gold_ingot), new ItemStack(ConfigItems.itemShard, 1, 0), new ItemStack(Items.iron_ingot) })); + ResearchRegistry.recipes.put("ItemFlyteCharm", ThaumcraftApi.addInfusionCraftingRecipe("FLYTECHARM", new ItemStack(ItemRegistry.ItemFlyteCharm, 1, 0), 7, new AspectList() + .add(Aspect.FLIGHT, 86).add(Aspect.AURA, 56).add(Aspect.SENSES, 25).add(Aspect.MAGIC, 48).add(Aspect.ENERGY, 65), new ItemStack(ConfigItems.itemPrimalArrow, 1, + 0), new ItemStack[]{ new ItemStack(ItemRegistry.ItemMaterial, 1, 10), new ItemStack(Items.gold_ingot), new ItemStack(ConfigItems.itemShard, 1, 0), + new ItemStack(Items.iron_ingot), new ItemStack(ItemRegistry.ItemMaterial, 1, 5), new ItemStack(Items.gold_ingot), new ItemStack(ConfigItems.itemShard, 1, 0), + new ItemStack(Items.iron_ingot) })); /** * The ItemKatanaThaumium recipes are for the thaumonomicon */ - ResearchRegistry.recipes.put("ItemKatanaThaumium:inscription0", ThaumcraftApi.addInfusionCraftingRecipe("INSCRIPTIONFIRE", new Object[]{ "inscription", new NBTTagInt(0) }, 8, new AspectList().add(Aspect.FIRE, 64).add(Aspect.LIGHT, 64).add(Aspect.METAL, 16), new ItemStack(ItemRegistry.ItemKatana, 1, 0), new ItemStack[]{ ItemApi.getItem("itemFocusFire", 0), new ItemStack(Items.coal), new ItemStack(Blocks.netherrack), new ItemStack(Items.fire_charge), new ItemStack(Items.blaze_powder), ItemApi.getItem("itemResource", 1) })); + ResearchRegistry.recipes.put("ItemKatanaThaumium:inscription0", ThaumcraftApi.addInfusionCraftingRecipe("INSCRIPTIONFIRE", new Object[]{ "inscription", new NBTTagInt(0) }, 8, new AspectList() + .add(Aspect.FIRE, 64).add(Aspect.LIGHT, 64).add(Aspect.METAL, 16), new ItemStack(ItemRegistry.ItemKatana, 1, 0), new ItemStack[]{ ItemApi.getItem("itemFocusFire", 0), + new ItemStack(Items.coal), new ItemStack(Blocks.netherrack), new ItemStack(Items.fire_charge), new ItemStack(Items.blaze_powder), ItemApi.getItem("itemResource", 1) })); - ResearchRegistry.recipes.put("ItemKatanaThaumium:inscription1", ThaumcraftApi.addInfusionCraftingRecipe("INSCRIPTIONTAINT", new Object[]{ "inscription", new NBTTagInt(1) }, 8, new AspectList().add(Aspect.TAINT, 64).add(Aspect.FLESH, 64).add(Aspect.METAL, 16), new ItemStack(ItemRegistry.ItemKatana, 1, 0), new ItemStack[]{ new ItemStack(ItemRegistry.ItemFocusTaint), new ItemStack(ItemRegistry.ItemMaterial, 1, 4), ItemApi.getBlock("blockJar", 1), ItemApi.getBlock("blockCustomPlant", 5), ItemApi.getItem("itemBottleTaint", 0), ItemApi.getItem("itemResource", 11) })); + ResearchRegistry.recipes.put("ItemKatanaThaumium:inscription1", ThaumcraftApi.addInfusionCraftingRecipe("INSCRIPTIONTAINT", new Object[]{ "inscription", new NBTTagInt(1) }, 8, new AspectList() + .add(Aspect.TAINT, 64).add(Aspect.FLESH, 64) + .add(Aspect.METAL, 16), new ItemStack(ItemRegistry.ItemKatana, 1, 0), new ItemStack[]{ new ItemStack(ItemRegistry.ItemFocusTaintSwarm), new ItemStack(ItemRegistry.ItemMaterial, 1, 4), + ItemApi.getBlock("blockJar", 1), ItemApi.getBlock("blockCustomPlant", 5), ItemApi.getItem("itemBottleTaint", 0), ItemApi.getItem("itemResource", 11) })); - ResearchRegistry.recipes.put("ItemKatanaThaumium:inscription2", ThaumcraftApi.addInfusionCraftingRecipe("INSCRIPTIONUNDEAD", new Object[]{ "inscription", new NBTTagInt(2) }, 8, new AspectList().add(Aspect.HEAL, 64).add(Aspect.UNDEAD, 64).add(Aspect.METAL, 16), new ItemStack(ItemRegistry.ItemKatana, 1, 0), new ItemStack[]{ new ItemStack(ConfigItems.itemZombieBrain), new ItemStack(Items.bone), new ItemStack(Items.rotten_flesh), new ItemStack(Items.fermented_spider_eye), new ItemStack(ConfigItems.itemFocusPech), new ItemStack(ConfigItems.itemBathSalts) })); + ResearchRegistry.recipes.put("ItemKatanaThaumium:inscription2", ThaumcraftApi + .addInfusionCraftingRecipe("INSCRIPTIONUNDEAD", new Object[]{ "inscription", new NBTTagInt(2) }, 8, new AspectList().add(Aspect.HEAL, 64).add(Aspect.UNDEAD, 64) + .add(Aspect.METAL, 16), new ItemStack(ItemRegistry.ItemKatana, 1, 0), new ItemStack[]{ new ItemStack(ConfigItems.itemZombieBrain), new ItemStack(Items.bone), + new ItemStack(Items.rotten_flesh), new ItemStack(Items.fermented_spider_eye), new ItemStack(ConfigItems.itemFocusPech), new ItemStack(ConfigItems.itemBathSalts) })); - ResearchRegistry.recipes.put("ItemKatana:inscription0", ThaumcraftApi.addInfusionCraftingRecipe("INSCRIPTIONFIRE", new Object[]{ "inscription", new NBTTagInt(0) }, 8, new AspectList().add(Aspect.FIRE, 64).add(Aspect.LIGHT, 64).add(Aspect.METAL, 16), new ItemStack(ItemRegistry.ItemKatana, 1, 32767), new ItemStack[]{ ItemApi.getItem("itemFocusFire", 0), new ItemStack(Items.coal), new ItemStack(Blocks.netherrack), new ItemStack(Items.fire_charge), new ItemStack(Items.blaze_powder), ItemApi.getItem("itemResource", 1) })); + ResearchRegistry.recipes.put("ItemKatana:inscription0", ThaumcraftApi.addInfusionCraftingRecipe("INSCRIPTIONFIRE", new Object[]{ "inscription", new NBTTagInt(0) }, 8, new AspectList() + .add(Aspect.FIRE, 64).add(Aspect.ENERGY, 64).add(Aspect.MAGIC, 16), new ItemStack(ItemRegistry.ItemKatana, 1, 32767), new ItemStack[]{ ItemApi.getItem("itemFocusFire", 0), + new ItemStack(Items.coal), new ItemStack(Blocks.netherrack), new ItemStack(Items.fire_charge), new ItemStack(Items.blaze_powder), ItemApi.getItem("itemResource", 1) })); - ResearchRegistry.recipes.put("ItemKatana:inscription1", ThaumcraftApi.addInfusionCraftingRecipe("INSCRIPTIONTAINT", new Object[]{ "inscription", new NBTTagInt(1) }, 8, new AspectList().add(Aspect.TAINT, 64).add(Aspect.FLESH, 64).add(Aspect.METAL, 16), new ItemStack(ItemRegistry.ItemKatana, 1, 32767), new ItemStack[]{ new ItemStack(ItemRegistry.ItemFocusTaint), new ItemStack(ItemRegistry.ItemMaterial, 1, 4), ItemApi.getBlock("blockJar", 1), ItemApi.getBlock("blockCustomPlant", 5), ItemApi.getItem("itemBottleTaint", 0), ItemApi.getItem("itemResource", 11) })); + ResearchRegistry.recipes.put("ItemKatana:inscription1", ThaumcraftApi.addInfusionCraftingRecipe("INSCRIPTIONTAINT", new Object[]{ "inscription", new NBTTagInt(1) }, 8, new AspectList() + .add(Aspect.TAINT, 64).add(Aspect.POISON, 64).add(Aspect.MAGIC, 16), new ItemStack(ItemRegistry.ItemKatana, 1, + 32767), new ItemStack[]{ new ItemStack(ItemRegistry.ItemFocusTaintSwarm), new ItemStack(ItemRegistry.ItemMaterial, 1, 4), ItemApi.getBlock("blockJar", 1), + ItemApi.getBlock("blockCustomPlant", 5), ItemApi.getItem("itemBottleTaint", 0), ItemApi.getItem("itemResource", 11) })); - ResearchRegistry.recipes.put("ItemKatana:inscription2", ThaumcraftApi.addInfusionCraftingRecipe("INSCRIPTIONUNDEAD", new Object[]{ "inscription", new NBTTagInt(2) }, 8, new AspectList().add(Aspect.HEAL, 64).add(Aspect.UNDEAD, 64).add(Aspect.METAL, 16), new ItemStack(ItemRegistry.ItemKatana, 1, 32767), new ItemStack[]{ new ItemStack(ConfigItems.itemZombieBrain), new ItemStack(Items.bone), new ItemStack(Items.rotten_flesh), new ItemStack(Items.fermented_spider_eye), new ItemStack(ConfigItems.itemFocusPech), new ItemStack(ConfigItems.itemBathSalts) })); + ResearchRegistry.recipes.put("ItemKatana:inscription2", ThaumcraftApi + .addInfusionCraftingRecipe("INSCRIPTIONUNDEAD", new Object[]{ "inscription", new NBTTagInt(2) }, 8, new AspectList().add(Aspect.HEAL, 64).add(Aspect.UNDEAD, 64) + .add(Aspect.METAL, 16), new ItemStack(ItemRegistry.ItemKatana, 1, 32767), new ItemStack[]{ new ItemStack(ConfigItems.itemZombieBrain), new ItemStack(Items.bone), + new ItemStack(Items.rotten_flesh), new ItemStack(Items.fermented_spider_eye), new ItemStack(ConfigItems.itemFocusPech), new ItemStack(ConfigItems.itemBathSalts) })); - ResearchRegistry.recipes.put("ItemVoidmetalGoggles", ThaumcraftApi.addInfusionCraftingRecipe("VOIDGOGGLES", new ItemStack(ItemRegistry.ItemVoidmetalGoggles), 5, new AspectList().add(Aspect.VOID, 42).add(Aspect.SENSES, 38).add(Aspect.DARKNESS, 16).add(Aspect.CRYSTAL, 6).add(Aspect.ARMOR, 24), new ItemStack(ItemRegistry.ItemWarpedGoggles, 1, 32767), new ItemStack[]{ new ItemStack(ConfigItems.itemResource, 1, 16), new ItemStack(ConfigItems.itemResource, 1, 16), new ItemStack(ConfigItems.itemResource, 1, 7), new ItemStack(ConfigItems.itemResource, 1, 7), new ItemStack(ConfigItems.itemShard, 1, 6) })); + ResearchRegistry.recipes.put("ItemVoidmetalGoggles", ThaumcraftApi.addInfusionCraftingRecipe("VOIDGOGGLES", new ItemStack(ItemRegistry.ItemVoidmetalGoggles), 5, new AspectList() + .add(Aspect.VOID, 40).add(Aspect.SENSES, 35).add(Aspect.ARMOR, 20), new ItemStack(ItemRegistry.ItemWarpedGoggles, 1, + 32767), new ItemStack[]{ new ItemStack(ConfigItems.itemResource, 1, 16), new ItemStack(ConfigItems.itemResource, 1, 16) })); + + ResearchRegistry.recipes.put("ItemLumosRing", ThaumcraftApi + .addInfusionCraftingRecipe("LUMOSRING", new ItemStack(ItemRegistry.ItemLumosRing), 1, new AspectList().add(Aspect.LIGHT, 35).add(Aspect.SENSES, 25).add(Aspect.AURA, 10), new ItemStack( + ConfigItems.itemBaubleBlanks, 1, 1), new ItemStack[]{ new ItemStack(ItemRegistry.ItemFocusLumos), new ItemStack(ConfigItems.itemResource, 1, 6), + new ItemStack(Items.gold_ingot), new ItemStack(ConfigItems.itemResource, 1, 14), new ItemStack(ConfigItems.itemResource, 1, 6), new ItemStack(Items.gold_ingot) })); } + /** + * Arcane worktable recipes + */ public static void initArcane () { - ResearchRegistry.recipes.put("ItemMaterial:2", ThaumcraftApi.addArcaneCraftingRecipe("CRIMSONROBES", new ItemStack(ItemRegistry.ItemMaterial, 1, 2), new AspectList().add(Aspect.ORDER, 5).add(Aspect.WATER, 5).add(Aspect.EARTH, 5).add(Aspect.AIR, 5).add(Aspect.FIRE, 5).add(Aspect.ENTROPY, 5), new Object[]{ " A ", "ABA", " A ", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 7), Character.valueOf('B'), ItemApi.getItem("itemResource", 7) })); + ResearchRegistry.recipes.put("ItemMaterial:2", ThaumcraftApi + .addShapelessArcaneCraftingRecipe("CRIMSONROBES", new ItemStack(ItemRegistry.ItemMaterial, 1, 2), new AspectList().add(Aspect.FIRE, 5).add(Aspect.ENTROPY, 5), new Object[]{ + new ItemStack(ItemRegistry.ItemMaterial.setContainerItem(ConfigItems.itemEssence), 1, 7), ItemApi.getItem("itemResource", 7), Items.gold_nugget })); - ResearchRegistry.recipes.put("ItemMaterial:6", ThaumcraftApi.addArcaneCraftingRecipe("THAUMICDISASSEMBLER", new ItemStack(ItemRegistry.ItemMaterial, 1, 6), new AspectList().add(Aspect.ORDER, 50).add(Aspect.ENTROPY, 50), new Object[]{ "BAB", "ACA", "BAB", Character.valueOf('A'), ItemApi.getItem("itemResource", 2), Character.valueOf('B'), ItemApi.getItem("itemResource", 16), Character.valueOf('C'), new ItemStack(Items.diamond) })); + ResearchRegistry.recipes.put("ItemMaterial:6", ThaumcraftApi.addArcaneCraftingRecipe("THAUMICDISASSEMBLER", new ItemStack(ItemRegistry.ItemMaterial, 1, 6), new AspectList() + .add(Aspect.ORDER, 50).add(Aspect.ENTROPY, 50), new Object[]{ "BAB", "ACA", "BAB", Character.valueOf('A'), ItemApi.getItem("itemResource", 2), Character.valueOf('B'), + ItemApi.getItem("itemResource", 16), Character.valueOf('C'), new ItemStack(Items.diamond) })); - ResearchRegistry.recipes.put("ItemHelmetCultistRobe", ThaumcraftApi.addArcaneCraftingRecipe("CRIMSONROBES", ItemApi.getItem("itemHelmetCultistRobe", 0), new AspectList().add(Aspect.ORDER, 5).add(Aspect.WATER, 5).add(Aspect.EARTH, 5).add(Aspect.AIR, 5).add(Aspect.FIRE, 5).add(Aspect.ENTROPY, 5), new Object[]{ "AAA", "ABA", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), Character.valueOf('B'), new ItemStack(Items.iron_ingot) })); + ResearchRegistry.recipes.put("ItemHelmetCultistRobe", ThaumcraftApi.addArcaneCraftingRecipe("CRIMSONROBES", ItemApi.getItem("itemHelmetCultistRobe", 0), new AspectList().add(Aspect.FIRE, 5) + .add(Aspect.ENTROPY, 5), new Object[]{ "AAA", "A A", 'A', new ItemStack(ItemRegistry.ItemMaterial, 1, 2) })); - ResearchRegistry.recipes.put("ItemChestCultistRobe", ThaumcraftApi.addArcaneCraftingRecipe("CRIMSONROBES", ItemApi.getItem("itemChestCultistRobe", 0), new AspectList().add(Aspect.ORDER, 5).add(Aspect.WATER, 5).add(Aspect.EARTH, 5).add(Aspect.AIR, 5).add(Aspect.FIRE, 5).add(Aspect.ENTROPY, 5), new Object[]{ "A A", "AAA", "ABA", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), Character.valueOf('B'), new ItemStack(Items.gold_ingot) })); + ResearchRegistry.recipes.put("ItemChestCultistRobe", ThaumcraftApi + .addArcaneCraftingRecipe("CRIMSONROBES", ItemApi.getItem("itemChestCultistRobe", 0), new AspectList().add(Aspect.FIRE, 10).add(Aspect.ENTROPY, 10), new Object[]{ "A A", "CAC", "ABA", + 'A', new ItemStack(ItemRegistry.ItemMaterial, 1, 2), 'B', new ItemStack(Items.gold_ingot), 'C', new ItemStack(Items.iron_ingot) })); - ResearchRegistry.recipes.put("ItemLegsCultistRobe", ThaumcraftApi.addArcaneCraftingRecipe("CRIMSONROBES", ItemApi.getItem("itemLegsCultistRobe", 0), new AspectList().add(Aspect.ORDER, 5).add(Aspect.WATER, 5).add(Aspect.EARTH, 5).add(Aspect.AIR, 5).add(Aspect.FIRE, 5).add(Aspect.ENTROPY, 5), new Object[]{ "ABA", "ACA", "A A", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), Character.valueOf('B'), new ItemStack(Items.gold_ingot), Character.valueOf('C'), new ItemStack(Items.iron_ingot) })); + ResearchRegistry.recipes.put("ItemLegsCultistRobe", ThaumcraftApi.addArcaneCraftingRecipe("CRIMSONROBES", ItemApi.getItem("itemLegsCultistRobe", 0), new AspectList().add(Aspect.FIRE, 8) + .add(Aspect.ENTROPY, 8), new Object[]{ "ABA", "ACA", "A A", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), Character.valueOf('B'), + new ItemStack(Items.gold_ingot), Character.valueOf('C'), new ItemStack(Items.iron_ingot) })); - ResearchRegistry.recipes.put("ItemBootsCultist", ThaumcraftApi.addArcaneCraftingRecipe("CRIMSONROBES", ItemApi.getItem("itemBootsCultist", 0), new AspectList().add(Aspect.ORDER, 5).add(Aspect.WATER, 5).add(Aspect.EARTH, 5).add(Aspect.AIR, 5).add(Aspect.FIRE, 5).add(Aspect.ENTROPY, 5), new Object[]{ "A A", "A A", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 2) })); + ResearchRegistry.recipes.put("ItemBootsCultist", ThaumcraftApi.addArcaneCraftingRecipe("CRIMSONROBES", ItemApi.getItem("itemBootsCultist", 0), new AspectList().add(Aspect.FIRE, 5) + .add(Aspect.ENTROPY, 5), new Object[]{ "A A", "A A", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 2) })); - ResearchRegistry.recipes.put("ItemWandRod:1", ThaumcraftApi.addArcaneCraftingRecipe("ROD_warpwood_staff", new ItemStack(ItemRegistry.ItemWandRod, 1, 1), new AspectList().add(Aspect.ORDER, 120).add(Aspect.WATER, 120).add(Aspect.EARTH, 120).add(Aspect.AIR, 120).add(Aspect.FIRE, 120).add(Aspect.ENTROPY, 120), new Object[]{ " A", " B ", "B ", Character.valueOf('A'), new ItemStack(ConfigItems.itemEldritchObject, 1, 3), Character.valueOf('B'), new ItemStack(ItemRegistry.ItemWandRod, 1, 0) })); + ResearchRegistry.recipes.put("ItemWandRod:1", ThaumcraftApi.addArcaneCraftingRecipe("ROD_warpwood_staff", new ItemStack(ItemRegistry.ItemWandRod, 1, 1), new AspectList().add(Aspect.ORDER, 120) + .add(Aspect.WATER, 120).add(Aspect.EARTH, 120).add(Aspect.AIR, 120).add(Aspect.FIRE, 120).add(Aspect.ENTROPY, 120), new Object[]{ " A", " B ", "B ", Character.valueOf('A'), + new ItemStack(ConfigItems.itemEldritchObject, 1, 3), Character.valueOf('B'), new ItemStack(ItemRegistry.ItemWandRod, 1, 0) })); - ResearchRegistry.recipes.put("ItemHelmetCultistPlate", ThaumcraftApi.addArcaneCraftingRecipe("KNIGHTROBES", ItemApi.getItem("itemHelmetCultistPlate", 0), new AspectList().add(Aspect.ORDER, 5).add(Aspect.WATER, 5).add(Aspect.EARTH, 5).add(Aspect.AIR, 5).add(Aspect.FIRE, 5).add(Aspect.ENTROPY, 5), new Object[]{ "ABA", "A A", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), Character.valueOf('B'), new ItemStack(ItemRegistry.ItemMaterial, 1, 2) })); + ResearchRegistry.recipes.put("ItemHelmetCultistPlate", ThaumcraftApi + .addArcaneCraftingRecipe("KNIGHTROBES", ItemApi.getItem("itemHelmetCultistPlate", 0), new AspectList().add(Aspect.EARTH, 5).add(Aspect.FIRE, 5).add(Aspect.ENTROPY, 5), new Object[]{ + "ABA", "C C", 'A', new ItemStack(ItemRegistry.ItemMaterial, 1, 8), 'B', new ItemStack(Items.gold_ingot), 'C', new ItemStack(Items.iron_ingot) })); - ResearchRegistry.recipes.put("ItemChestCultistPlate", ThaumcraftApi.addArcaneCraftingRecipe("KNIGHTROBES", ItemApi.getItem("itemChestCultistPlate", 0), new AspectList().add(Aspect.ORDER, 5).add(Aspect.WATER, 5).add(Aspect.EARTH, 5).add(Aspect.AIR, 5).add(Aspect.FIRE, 5).add(Aspect.ENTROPY, 5), new Object[]{ "A A", "ABA", "ABA", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), Character.valueOf('B'), new ItemStack(ItemRegistry.ItemMaterial, 1, 2) })); + ResearchRegistry.recipes.put("ItemChestCultistPlate", ThaumcraftApi.addArcaneCraftingRecipe("KNIGHTROBES", ItemApi.getItem("itemChestCultistPlate", 0), new AspectList().add(Aspect.EARTH, 10) + .add(Aspect.FIRE, 10).add(Aspect.ENTROPY, 10), new Object[]{ "A A", "ABA", "BBB", 'A', new ItemStack(Items.iron_ingot), 'B', new ItemStack(ItemRegistry.ItemMaterial, 1, 8) })); - ResearchRegistry.recipes.put("ItemLegsCultistPlate", ThaumcraftApi.addArcaneCraftingRecipe("KNIGHTROBES", ItemApi.getItem("itemLegsCultistPlate", 0), new AspectList().add(Aspect.ORDER, 5).add(Aspect.WATER, 5).add(Aspect.EARTH, 5).add(Aspect.AIR, 5).add(Aspect.FIRE, 5).add(Aspect.ENTROPY, 5), new Object[]{ "AAA", "A A", "B B", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 8), Character.valueOf('B'), new ItemStack(ItemRegistry.ItemMaterial, 1, 2) })); + ResearchRegistry.recipes.put("ItemLegsCultistPlate", ThaumcraftApi + .addArcaneCraftingRecipe("KNIGHTROBES", ItemApi.getItem("itemLegsCultistPlate", 0), new AspectList().add(Aspect.EARTH, 8).add(Aspect.FIRE, 8).add(Aspect.ENTROPY, 8), new Object[]{ + "ABA", "ACA", " C ", 'A', new ItemStack(Items.iron_ingot), 'B', new ItemStack(Items.gold_ingot), 'C', new ItemStack(ItemRegistry.ItemMaterial, 1, 8) })); - ResearchRegistry.recipes.put("ItemMaterial:1", ThaumcraftApi.addArcaneCraftingRecipe("SHADOWCLOTH", new ItemStack(ItemRegistry.ItemMaterial, 1, 1), new AspectList().add(Aspect.ORDER, 1).add(Aspect.WATER, 1).add(Aspect.EARTH, 1).add(Aspect.AIR, 1).add(Aspect.FIRE, 1).add(Aspect.ENTROPY, 1), new Object[]{ " A ", "BBB", " A ", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial), Character.valueOf('B'), ItemApi.getItem("itemResource", 7) })); + ResearchRegistry.recipes.put("ItemHelmetCultistLeaderPlate", ThaumcraftApi.addArcaneCraftingRecipe("PRAETORARMOR", new ItemStack(ConfigItems.itemHelmetCultistLeaderPlate), new AspectList() + .add(Aspect.ORDER, 15).add(Aspect.ENTROPY, 15).add(Aspect.FIRE, 15), new Object[]{ "BCB", "DAD", "BCB", 'A', new ItemStack(ConfigItems.itemHelmetCultistPlate), 'B', + new ItemStack(Items.iron_ingot), 'C', new ItemStack(ItemRegistry.ItemMaterial, 1, 8), 'D', new ItemStack(Items.gold_ingot) })); - ResearchRegistry.recipes.put("ItemMagicFunguar", ThaumcraftApi.addShapelessArcaneCraftingRecipe("MAGICFUNGUAR", new ItemStack(ItemRegistry.ItemMagicFunguar), new AspectList().add(Aspect.ORDER, 1).add(Aspect.WATER, 1).add(Aspect.EARTH, 1).add(Aspect.AIR, 1).add(Aspect.FIRE, 1).add(Aspect.ENTROPY, 1), new Object[]{ new ItemStack(ConfigBlocks.blockCustomPlant, 1, 5), new ItemStack(ConfigItems.itemShard, 1, 32767), new ItemStack(Blocks.brown_mushroom), new ItemStack(Blocks.red_mushroom), new ItemStack(Items.blaze_powder) })); + ResearchRegistry.recipes.put("ItemChestCultistLeaderPlate", ThaumcraftApi.addArcaneCraftingRecipe("PRAETORARMOR", new ItemStack(ConfigItems.itemChestCultistLeaderPlate), new AspectList() + .add(Aspect.ORDER, 25).add(Aspect.ENTROPY, 25).add(Aspect.FIRE, 25), new Object[]{ "BBB", "CAC", "CDC", 'A', new ItemStack(ConfigItems.itemChestCultistPlate), 'B', + new ItemStack(Items.iron_ingot), 'C', new ItemStack(ItemRegistry.ItemMaterial, 1, 8), 'D', new ItemStack(Items.gold_ingot) })); - ResearchRegistry.recipes.put("ItemCrystalDagger", ThaumcraftApi.addArcaneCraftingRecipe("CRYSTALDAGGER", new ItemStack(ItemRegistry.ItemCrystalDagger), new AspectList().add(Aspect.EARTH, 85).add(Aspect.FIRE, 85).add(Aspect.ENTROPY, 85), new Object[]{ " A", " B ", "C ", Character.valueOf('A'), new ItemStack(Items.iron_ingot), Character.valueOf('B'), ItemApi.getBlock("blockTube", 7), Character.valueOf('C'), "logWood" })); + ResearchRegistry.recipes.put("ItemLegsCultistLeaderPlate", ThaumcraftApi.addArcaneCraftingRecipe("PRAETORARMOR", new ItemStack(ConfigItems.itemLegsCultistLeaderPlate), new AspectList() + .add(Aspect.ORDER, 20).add(Aspect.ENTROPY, 20).add(Aspect.FIRE, 20), new Object[]{ "CDC", "BAB", "BCB", 'A', new ItemStack(ConfigItems.itemLegsCultistPlate), 'B', + new ItemStack(Items.iron_ingot), 'C', new ItemStack(ItemRegistry.ItemMaterial, 1, 8), 'D', new ItemStack(Items.gold_ingot) })); - ResearchRegistry.recipes.put("ItemWandCap:1", ThaumcraftApi.addArcaneCraftingRecipe("CAP_cloth", new ItemStack(ItemRegistry.ItemWandCap, 1, 1), new AspectList().add(Aspect.EARTH, 10).add(Aspect.FIRE, 10).add(Aspect.ENTROPY, 10).add(Aspect.ORDER, 10), new Object[]{ "AAA", "A A", Character.valueOf('A'), ItemApi.getItem("itemResource", 7) })); + ResearchRegistry.recipes.put("ItemMaterial:1", ThaumcraftApi + .addArcaneCraftingRecipe("SHADOWCLOTH", new ItemStack(ItemRegistry.ItemMaterial, 1, 1), new AspectList().add(Aspect.ORDER, 1).add(Aspect.WATER, 1).add(Aspect.EARTH, 1) + .add(Aspect.AIR, 1).add(Aspect.FIRE, 1).add(Aspect.ENTROPY, 1), new Object[]{ "CAC", "ABA", "CAC", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial), + Character.valueOf('B'), ItemApi.getItem("itemResource", 7), Character.valueOf('C'), new ItemStack(ItemRegistry.ItemMaterial, 1, 9) })); - ResearchRegistry.recipes.put("ItemWandCap:2", ThaumcraftApi.addArcaneCraftingRecipe("CAP_crimsoncloth", new ItemStack(ItemRegistry.ItemWandCap, 1, 2), new AspectList().add(Aspect.EARTH, 25).add(Aspect.FIRE, 25).add(Aspect.ENTROPY, 25).add(Aspect.ORDER, 25), new Object[]{ "AAA", "ABA", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), Character.valueOf('B'), ItemApi.getItem("itemResource", 14) })); + ResearchRegistry.recipes.put("ItemMagicFunguar", ThaumcraftApi.addShapelessArcaneCraftingRecipe("MAGICFUNGUAR", new ItemStack(ItemRegistry.ItemMagicFunguar), TaintedMagicHelper + .getPrimals(1), new Object[]{ new ItemStack(ConfigBlocks.blockCustomPlant, 1, 5), new ItemStack(ConfigItems.itemShard, 1, 32767), Items.glowstone_dust })); - ResearchRegistry.recipes.put("ItemWandCap:3", ThaumcraftApi.addArcaneCraftingRecipe("CAP_shadowcloth", new ItemStack(ItemRegistry.ItemWandCap, 1, 3), new AspectList().add(Aspect.EARTH, 55).add(Aspect.FIRE, 55).add(Aspect.ENTROPY, 55).add(Aspect.ORDER, 55), new Object[]{ "AAA", "ABA", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 1), Character.valueOf('B'), ItemApi.getItem("itemResource", 14) })); + ResearchRegistry.recipes + .put("ItemHollowDagger", ThaumcraftApi.addArcaneCraftingRecipe("CRYSTALDAGGER", new ItemStack(ItemRegistry.ItemHollowDagger), new AspectList().add(Aspect.ENTROPY, 85), new Object[]{ + " A", "EBD", "C ", Character.valueOf('A'), new ItemStack(ConfigItems.itemWandRod, 1, 7), Character.valueOf('B'), new ItemStack(ConfigBlocks.blockMagicalLog, 1, 0), + Character.valueOf('C'), Items.stick, Character.valueOf('D'), ConfigItems.itemNugget, Character.valueOf('E'), Items.string })); - ResearchRegistry.recipes.put("ItemFocusVisShard", ThaumcraftApi.addArcaneCraftingRecipe("FOCUSSHARD", new ItemStack(ItemRegistry.ItemFocusVisShard), new AspectList().add(Aspect.AIR, 46).add(Aspect.ENTROPY, 38).add(Aspect.ORDER, 22), new Object[]{ "BDC", "DAD", "CDB", 'A', new ItemStack(ConfigItems.itemResource, 1, 3), 'B', new ItemStack(ConfigItems.itemShard, 1, 6), 'C', new ItemStack(ItemRegistry.ItemMaterial, 1, 4), 'D', new ItemStack(ConfigItems.itemWispEssence, 1, 32767) })); + ResearchRegistry.recipes.put("ItemWandCap:1", ThaumcraftApi.addArcaneCraftingRecipe("CAP_cloth", new ItemStack(ItemRegistry.ItemWandCap, 1, 1), new AspectList().add(Aspect.EARTH, 10) + .add(Aspect.FIRE, 10).add(Aspect.ENTROPY, 10).add(Aspect.ORDER, 10), new Object[]{ "AAA", "A A", Character.valueOf('A'), ItemApi.getItem("itemResource", 7) })); - ResearchRegistry.recipes.put("ItemFocusLumos", ThaumcraftApi.addArcaneCraftingRecipe("FOCUSLUMOS", new ItemStack(ItemRegistry.ItemFocusLumos), new AspectList().add(Aspect.AIR, 52).add(Aspect.FIRE, 56).add(Aspect.ORDER, 28), new Object[]{ "BEC", "DAD", "CEB", 'A', new ItemStack(ConfigItems.itemFocusFire), 'B', new ItemStack(ConfigItems.itemNugget, 1, 5), 'C', new ItemStack(Items.blaze_powder), 'D', new ItemStack(ConfigItems.itemShard, 1, 1), 'E', new ItemStack(ConfigItems.itemShard, 1, 0) })); + ResearchRegistry.recipes.put("ItemWandCap:2", ThaumcraftApi.addArcaneCraftingRecipe("CAP_crimsoncloth", new ItemStack(ItemRegistry.ItemWandCap, 1, 2), new AspectList().add(Aspect.FIRE, 25) + .add(Aspect.ENTROPY, 25).add(Aspect.ORDER, 25), new Object[]{ "AAA", "ABA", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 2), Character.valueOf('B'), + ItemApi.getItem("itemResource", 14) })); - ResearchRegistry.recipes.put("ItemMaterial:10", ThaumcraftApi.addShapelessArcaneCraftingRecipe("PRIMPEARL", new ItemStack(ItemRegistry.ItemMaterial, 3, 10), new AspectList().add(Aspect.ENTROPY, 25), new ItemStack(ConfigItems.itemEldritchObject, 1, 3))); + ResearchRegistry.recipes.put("ItemWandCap:3", ThaumcraftApi.addArcaneCraftingRecipe("CAP_shadowcloth", new ItemStack(ItemRegistry.ItemWandCap, 1, 3), new AspectList().add(Aspect.EARTH, 55) + .add(Aspect.FIRE, 55).add(Aspect.ENTROPY, 55).add(Aspect.ORDER, 55), new Object[]{ "AAA", "ABA", Character.valueOf('A'), new ItemStack(ItemRegistry.ItemMaterial, 1, 1), + Character.valueOf('B'), ItemApi.getItem("itemResource", 14) })); - ResearchRegistry.recipes.put("ItemMaterial:11", ThaumcraftApi.addShapelessArcaneCraftingRecipe("PRIMPEARL", new ItemStack(ItemRegistry.ItemMaterial, 3, 11), new AspectList().add(Aspect.ENTROPY, 15), new ItemStack(ItemRegistry.ItemMaterial, 1, 10))); + ResearchRegistry.recipes.put("ItemFocusVisShard", ThaumcraftApi.addArcaneCraftingRecipe("FOCUSSHARD", new ItemStack(ItemRegistry.ItemFocusVisShard), new AspectList().add(Aspect.AIR, 46) + .add(Aspect.ENTROPY, 38).add(Aspect.ORDER, 22), new Object[]{ "BDC", "DAD", "CDB", 'A', new ItemStack(ConfigItems.itemResource, 1, 3), 'B', new ItemStack(ConfigItems.itemShard, 1, 6), + 'C', new ItemStack(ItemRegistry.ItemMaterial, 1, 4), 'D', new ItemStack(ConfigItems.itemWispEssence, 1, 32767) })); + + ResearchRegistry.recipes.put("ItemFocusLumos", ThaumcraftApi.addArcaneCraftingRecipe("FOCUSLUMOS", new ItemStack(ItemRegistry.ItemFocusLumos), new AspectList().add(Aspect.AIR, 52) + .add(Aspect.FIRE, 56).add(Aspect.ORDER, 28), new Object[]{ "BDC", "DAD", "CDB", 'A', new ItemStack(ConfigItems.itemResource, 1, 3), 'B', new ItemStack(ConfigItems.itemResource, 1, 1), + 'C', new ItemStack(ConfigItems.itemShard, 1, 6), 'D', new ItemStack(Items.glowstone_dust) })); + + ResearchRegistry.recipes.put("ItemMaterial:10", ThaumcraftApi.addShapelessArcaneCraftingRecipe("PRIMPEARL", new ItemStack(ItemRegistry.ItemMaterial, 3, 10), new AspectList() + .add(Aspect.ENTROPY, 25), new ItemStack(ConfigItems.itemEldritchObject, 1, 3))); + + ResearchRegistry.recipes.put("ItemMaterial:11", ThaumcraftApi.addShapelessArcaneCraftingRecipe("PRIMPEARL", new ItemStack(ItemRegistry.ItemMaterial, 3, 11), new AspectList() + .add(Aspect.ENTROPY, 15), new ItemStack(ItemRegistry.ItemMaterial, 1, 10))); + + ResearchRegistry.recipes.put("ItemMaterial:12", ThaumcraftApi.addShapelessArcaneCraftingRecipe("CREATIONSHARD", new ItemStack(ItemRegistry.ItemMaterial, 9, 12), new AspectList() + .add(Aspect.ENTROPY, 99), new ItemStack(ItemRegistry.ItemMaterial, 1, 5))); + + ResearchRegistry.recipes.put("ItemVoidsentBlood", ThaumcraftApi.addArcaneCraftingRecipe("VOIDSENTBLOOD", new ItemStack(ItemRegistry.ItemVoidsentBlood), new AspectList().add(Aspect.ORDER, 35) + .add(Aspect.ENTROPY, 25), new Object[]{ "BDB", "CAC", "BCB", 'A', new ItemStack(ItemRegistry.ItemMaterial, 1, 7), 'B', new ItemStack(ConfigItems.itemResource, 1, 17), 'C', + new ItemStack(ConfigItems.itemResource, 1, 14), 'D', new ItemStack(ItemRegistry.ItemMaterial, 1, 11) })); } public static void initCrucible () { - ResearchRegistry.recipes.put("ItemMaterial:3", ThaumcraftApi.addCrucibleRecipe("EVILSHARDS", new ItemStack(ItemRegistry.ItemMaterial, 1, 3), ItemApi.getItem("itemShard", 6), new AspectList().merge(Aspect.ELDRITCH, 4))); - ResearchRegistry.recipes.put("ItemMaterial:4", ThaumcraftApi.addCrucibleRecipe("EVILSHARDS", new ItemStack(ItemRegistry.ItemMaterial, 1, 4), ItemApi.getItem("itemShard", 6), new AspectList().merge(Aspect.TAINT, 4))); - ResearchRegistry.recipes.put("BlockShadowOre", ThaumcraftApi.addCrucibleRecipe("SHADOWMETAL", new ItemStack(BlockRegistry.BlockShadowOre), new ItemStack(Blocks.stone), new AspectList().merge(Aspect.VOID, 2).merge(Aspect.DARKNESS, 4).merge(Aspect.METAL, 6).merge(Aspect.MAGIC, 8))); - ResearchRegistry.recipes.put("ItemVoidsentBlood", ThaumcraftApi.addCrucibleRecipe("VOIDSENTBLOOD", new ItemStack(ItemRegistry.ItemVoidsentBlood), new ItemStack(ItemRegistry.ItemMaterial, 1, 7), new AspectList().merge(Aspect.VOID, 12).merge(Aspect.DARKNESS, 4).merge(Aspect.AURA, 6).merge(Aspect.ARMOR, 8))); + ResearchRegistry.recipes.put("ItemMaterial:3", ThaumcraftApi + .addCrucibleRecipe("EVILSHARDS", new ItemStack(ItemRegistry.ItemMaterial, 1, 3), ItemApi.getItem("itemShard", 6), new AspectList().merge(Aspect.ELDRITCH, 4))); + ResearchRegistry.recipes.put("ItemMaterial:4", ThaumcraftApi + .addCrucibleRecipe("EVILSHARDS", new ItemStack(ItemRegistry.ItemMaterial, 1, 4), ItemApi.getItem("itemShard", 6), new AspectList().merge(Aspect.TAINT, 4))); + ResearchRegistry.recipes.put("BlockShadowOre", ThaumcraftApi.addCrucibleRecipe("SHADOWMETAL", new ItemStack(BlockRegistry.BlockShadowOre), new ItemStack(Blocks.stone), new AspectList() + .merge(Aspect.DARKNESS, 1).merge(Aspect.METAL, 3).merge(Aspect.MAGIC, 1))); + ResearchRegistry.recipes.put("Vishroom_brown", ThaumcraftApi.addCrucibleRecipe("VISHROOMCRAFT", new ItemStack(ConfigBlocks.blockCustomPlant, 1, + 5), new ItemStack(Blocks.brown_mushroom), new AspectList().merge(Aspect.MAGIC, 3).merge(Aspect.POISON, 1))); + ResearchRegistry.recipes.put("Vishroom_red", ThaumcraftApi.addCrucibleRecipe("VISHROOMCRAFT", new ItemStack(ConfigBlocks.blockCustomPlant, 1, + 5), new ItemStack(Blocks.red_mushroom), new AspectList().merge(Aspect.MAGIC, 3).merge(Aspect.POISON, 1))); } } \ No newline at end of file diff --git a/src/main/java/taintedmagic/common/registry/ResearchRegistry.java b/src/main/java/taintedmagic/common/registry/ResearchRegistry.java index ee8b32e..13482d4 100644 --- a/src/main/java/taintedmagic/common/registry/ResearchRegistry.java +++ b/src/main/java/taintedmagic/common/registry/ResearchRegistry.java @@ -18,6 +18,7 @@ import thaumcraft.api.crafting.IArcaneRecipe; import thaumcraft.api.crafting.InfusionRecipe; import thaumcraft.api.research.ResearchCategories; import thaumcraft.api.research.ResearchPage; +import thaumcraft.common.config.ConfigBlocks; import thaumcraft.common.config.ConfigItems; public class ResearchRegistry @@ -27,124 +28,246 @@ public class ResearchRegistry public static void initResearch () { - ResearchCategories.registerCategory(TM, new ResourceLocation("taintedmagic:textures/misc/IconThaumonomiconTab.png"), TaintedMagic.configHandler.useCustomResearchTabBackground ? new ResourceLocation("taintedmagic:textures/gui/GUIThaumonomiconTab.png") : new ResourceLocation("thaumcraft:textures/gui/gui_researchback.png")); + ResearchCategories.registerCategory(TM, new ResourceLocation("taintedmagic:textures/misc/IconThaumonomiconTab.png"), TaintedMagic.configHandler.useCustomResearchTabBackground + ? new ResourceLocation("taintedmagic:textures/gui/GUIThaumonomiconTab.png") + : new ResourceLocation("thaumcraft:textures/gui/gui_researchback.png")); /** * Thaumcraft research items */ - new ThaumcraftResearchItem("TMELDRITCHMAJOR", TM, "ELDRITCHMAJOR", "ELDRITCH", 7, -7, new ResourceLocation("thaumcraft:textures/misc/r_eldritchmajor.png")).setSpecial().setConcealed().setRound().registerResearchItem(); + new ThaumcraftResearchItem("TMELDRITCHMAJOR", TM, "ELDRITCHMAJOR", "ELDRITCH", 7, -7, new ResourceLocation("thaumcraft:textures/misc/r_eldritchmajor.png")).setSpecial().setConcealed() + .setRound().registerResearchItem(); new ThaumcraftResearchItem("TMFOCUSFIRE", TM, "FOCUSFIRE", "THAUMATURGY", 7, 3, new ItemStack(ConfigItems.itemFocusFire)).setConcealed().registerResearchItem(); - new ThaumcraftResearchItem("TMARMORFORTRESS", TM, "ARMORFORTRESS", "ARTIFICE", 11, 1, new ItemStack(ConfigItems.itemHelmetFortress)).setConcealed().registerResearchItem(); + new ThaumcraftResearchItem("TMARMORFORTRESS", TM, "ARMORFORTRESS", "ARTIFICE", 11, 3, new ItemStack(ConfigItems.itemHelmetFortress)).setConcealed().registerResearchItem(); /** * Tainted Magic research items */ - new TaintedMagicResearchItem("TAINTEDMAGIC", TM, new AspectList(), 2, -1, 0, new ItemStack(ConfigItems.itemResource, 1, 13)).setRound().setAutoUnlock().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage("2") }).registerResearchItem(); + new TaintedMagicResearchItem("TAINTEDMAGIC", TM, new AspectList(), 2, -1, 0, new ItemStack(ConfigItems.itemResource, 1, 13)).setRound().setAutoUnlock() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage("2") }).registerResearchItem(); - new TaintedMagicResearchItem("SHADOWMETAL", TM, new AspectList().add(Aspect.METAL, 1).add(Aspect.DARKNESS, 1).add(Aspect.MAGIC, 1), 0, 1, 0, new ItemStack(BlockRegistry.BlockShadowOre)).setParents("TAINTEDMAGIC").setConcealed().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((CrucibleRecipe) recipes.get("BlockShadowOre")), new ResearchPage(new ItemStack(BlockRegistry.BlockShadowOre)), new ResearchPage((IRecipe) recipes.get("ItemShadowmetalPick")), new ResearchPage((IRecipe) recipes.get("ItemShadowmetalSpade")), new ResearchPage((IRecipe) recipes.get("ItemShadowmetalAxe")), new ResearchPage((IRecipe) recipes.get("ItemShadowmetalHoe")), new ResearchPage((IRecipe) recipes.get("ItemShadowmetalSword")) }).registerResearchItem(); + new TaintedMagicResearchItem("SHADOWMETAL", TM, new AspectList().add(Aspect.METAL, 1).add(Aspect.DARKNESS, 1).add(Aspect.MAGIC, 1), 0, 1, 0, new ItemStack(BlockRegistry.BlockShadowOre)) + .setParents("TAINTEDMAGIC").setConcealed() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((CrucibleRecipe) recipes.get("BlockShadowOre")), new ResearchPage(new ItemStack(BlockRegistry.BlockShadowOre)), + new ResearchPage((IRecipe) recipes.get("ItemShadowmetalPick")), new ResearchPage((IRecipe) recipes.get("ItemShadowmetalSpade")), + new ResearchPage((IRecipe) recipes.get("ItemShadowmetalAxe")), new ResearchPage((IRecipe) recipes.get("ItemShadowmetalHoe")), + new ResearchPage((IRecipe) recipes.get("ItemShadowmetalSword")) }) + .registerResearchItem(); - new TaintedMagicResearchItem("CAP_shadowmetal", TM, new AspectList().add(Aspect.METAL, 4).add(Aspect.DARKNESS, 4).add(Aspect.ELDRITCH, 4).add(Aspect.MAGIC, 4), -3, 2, 0, new ItemStack(ItemRegistry.ItemWandCap, 1, 0)).setParents(new String[]{ "SHADOWMETAL", "CAP_void", "PRIMPEARL" }).setComplexity(2).setParentsHidden("SHADOWCLOTH").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemWandCap:0")) }).setConcealed().registerResearchItem(); + new TaintedMagicResearchItem("CAP_shadowmetal", TM, new AspectList().add(Aspect.METAL, 4).add(Aspect.DARKNESS, 4).add(Aspect.ELDRITCH, 4).add(Aspect.MAGIC, 4), -3, 2, 0, + new ItemStack(ItemRegistry.ItemWandCap, 1, 0)).setParents(new String[]{ "SHADOWMETAL", "CAP_void", "PRIMPEARL" }).setComplexity(2).setParentsHidden("SHADOWCLOTH") + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemWandCap:0")) }).setConcealed().registerResearchItem(); ThaumcraftApi.addWarpToResearch("CAP_shadowmetal", 4); - new TaintedMagicResearchItem("SHADOWCLOTH", TM, new AspectList().add(Aspect.CLOTH, 1).add(Aspect.DARKNESS, 1), -1, 4, 0, new ItemStack(ItemRegistry.ItemMaterial, 1, 1)).setConcealed().setSecondary().setParents(new String[]{ "ENCHFABRIC", "SHADOWMETAL" }).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemMaterial:1")) }).registerResearchItem(); + new TaintedMagicResearchItem("SHADOWCLOTH", TM, new AspectList().add(Aspect.CLOTH, 1).add(Aspect.DARKNESS, 1), -1, 4, 0, new ItemStack(ItemRegistry.ItemMaterial, 1, 1)).setConcealed() + .setSecondary().setParents(new String[]{ "ENCHFABRIC", "SHADOWMETAL" }) + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemMaterial:1")) }).registerResearchItem(); - new TaintedMagicResearchItem("ROD_warpwood", TM, new AspectList().add(Aspect.TREE, 4).add(Aspect.DARKNESS, 4).add(Aspect.ELDRITCH, 4), 8, 0, 0, new ItemStack(ItemRegistry.ItemWandRod, 1, 0)).setParents(new String[]{ "WARPTREE", "VOIDMETAL", "PRIMPEARL", "ROD_primal_staff" }).setParentsHidden("SHADOWMETAL").setConcealed().setComplexity(3).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemWandRod:0")), new ResearchPage("2") }).registerResearchItem(); + new TaintedMagicResearchItem("ROD_warpwood", TM, new AspectList().add(Aspect.TREE, 4).add(Aspect.DARKNESS, 4).add(Aspect.ELDRITCH, 4), 8, 0, 0, new ItemStack(ItemRegistry.ItemWandRod, 1, 0)) + .setParents(new String[]{ "WARPTREE", "VOIDMETAL", "PRIMPEARL", "ROD_primal_staff" }).setParentsHidden("SHADOWMETAL").setConcealed().setComplexity(3) + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemWandRod:0")), new ResearchPage("2") }).registerResearchItem(); ThaumcraftApi.addWarpToResearch("ROD_warpwood", 5); - new TaintedMagicResearchItem("ROD_warpwood_staff", TM, new AspectList().add(Aspect.TREE, 4).add(Aspect.DARKNESS, 4).add(Aspect.ELDRITCH, 4), 10, -1, 0, new ItemStack(ItemRegistry.ItemWandRod, 1, 1)).setConcealed().setParents("ROD_warpwood").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemWandRod:1")) }).setSecondary().registerResearchItem(); + new TaintedMagicResearchItem("ROD_warpwood_staff", TM, new AspectList().add(Aspect.TREE, 4).add(Aspect.DARKNESS, 4).add(Aspect.ELDRITCH, 4), 10, -1, 0, + new ItemStack(ItemRegistry.ItemWandRod, 1, 1)).setConcealed().setParents("ROD_warpwood") + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemWandRod:1")) }).setSecondary().registerResearchItem(); - new TaintedMagicResearchItem("EVILSHARDS", TM, new AspectList().add(Aspect.CRYSTAL, 4).add(Aspect.DARKNESS, 4), 4, -1, 0, new ItemStack(ItemRegistry.ItemMaterial, 1, 4)).setParents("TAINTEDMAGIC").setConcealed().setSecondary().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((CrucibleRecipe) recipes.get("ItemMaterial:3")), new ResearchPage((CrucibleRecipe) recipes.get("ItemMaterial:4")) }).registerResearchItem(); + new TaintedMagicResearchItem("EVILSHARDS", TM, new AspectList().add(Aspect.CRYSTAL, 4).add(Aspect.DARKNESS, 4), 4, -1, 0, new ItemStack(ItemRegistry.ItemMaterial, 1, 4)) + .setParents("TAINTEDMAGIC").setConcealed().setSecondary().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((CrucibleRecipe) recipes.get("ItemMaterial:3")), + new ResearchPage((CrucibleRecipe) recipes.get("ItemMaterial:4")) }) + .registerResearchItem(); - new TaintedMagicResearchItem("WARPTREE", TM, new AspectList().add(Aspect.ELDRITCH, 4).add(Aspect.DARKNESS, 4).add(Aspect.TAINT, 4).add(Aspect.TREE, 4), 6, -2, 0, new ItemStack(BlockRegistry.BlockWarpwoodSapling)).setParentsHidden("SHADOWMETAL").setParents("EVILSHARDS").setConcealed().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("BlockWarpwoodSapling")), new ResearchPage((IRecipe) recipes.get("BlockWarpwoodPlanks")) }).registerResearchItem(); + new TaintedMagicResearchItem("WARPTREE", TM, new AspectList().add(Aspect.ELDRITCH, 4).add(Aspect.DARKNESS, 4).add(Aspect.TAINT, 4).add(Aspect.TREE, 4), 6, -2, 0, + new ItemStack(BlockRegistry.BlockWarpwoodSapling)).setParentsHidden("SHADOWMETAL").setParents("EVILSHARDS").setConcealed() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("BlockWarpwoodSapling")), + new ResearchPage((IRecipe) recipes.get("BlockWarpwoodPlanks")) }) + .registerResearchItem(); - new TaintedMagicResearchItem("CRIMSONROBES", TM, new AspectList().add(Aspect.CLOTH, 4).add(Aspect.EXCHANGE, 4).add(Aspect.ARMOR, 4), -2, -1, 0, new ItemStack(ItemRegistry.ItemMaterial, 1, 2)).setParents("CRYSTALDAGGER").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemMaterial:2")), new ResearchPage((IArcaneRecipe) recipes.get("ItemHelmetCultistRobe")), new ResearchPage((IArcaneRecipe) recipes.get("ItemChestCultistRobe")), new ResearchPage((IArcaneRecipe) recipes.get("ItemLegsCultistRobe")), new ResearchPage((IArcaneRecipe) recipes.get("ItemBootsCultist")) }).setConcealed().registerResearchItem(); + new TaintedMagicResearchItem("CRIMSONROBES", TM, new AspectList().add(Aspect.CLOTH, 4).add(Aspect.EXCHANGE, 4).add(Aspect.ARMOR, 4), -2, -1, 0, new ItemStack(ItemRegistry.ItemMaterial, 1, 2)) + .setParents("CRYSTALDAGGER") + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemMaterial:2")), + new ResearchPage((IArcaneRecipe) recipes.get("ItemHelmetCultistRobe")), new ResearchPage((IArcaneRecipe) recipes.get("ItemChestCultistRobe")), + new ResearchPage((IArcaneRecipe) recipes.get("ItemLegsCultistRobe")), new ResearchPage((IArcaneRecipe) recipes.get("ItemBootsCultist")) }) + .setConcealed().registerResearchItem(); - new TaintedMagicResearchItem("VOIDFORTRESS", TM, new AspectList().add(Aspect.ARMOR, 5).add(Aspect.ELDRITCH, 3).add(Aspect.DARKNESS, 3).add(Aspect.VOID, 5), 8, -9, 0, new ItemStack(ItemRegistry.ItemVoidFortressHelmet)).setParentsHidden(new String[]{ "ARMORVOIDFORTRESS", "ARMORFORTRESS", }).setParents(new String[]{ "TMELDRITCHMAJOR" }).setConcealed().setSecondary().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemVoidFortressHelmet")), new ResearchPage((InfusionRecipe) recipes.get("ItemVoidFortressChestplate")), new ResearchPage((InfusionRecipe) recipes.get("ItemVoidFortressLeggings")) }).registerResearchItem(); + new TaintedMagicResearchItem("VOIDFORTRESS", TM, new AspectList().add(Aspect.ARMOR, 5).add(Aspect.ELDRITCH, 3).add(Aspect.DARKNESS, 3).add(Aspect.VOID, 5), 8, -9, 0, + new ItemStack(ItemRegistry.ItemVoidFortressHelmet)).setParentsHidden(new String[]{ "ARMORVOIDFORTRESS", "ARMORFORTRESS", }).setParents(new String[]{ "TMELDRITCHMAJOR" }).setConcealed() + .setSecondary() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemVoidFortressHelmet")), + new ResearchPage((InfusionRecipe) recipes.get("ItemVoidFortressChestplate")), new ResearchPage((InfusionRecipe) recipes.get("ItemVoidFortressLeggings")) }) + .registerResearchItem(); ThaumcraftApi.addWarpToResearch("VOIDFORTRESS", 2); - new TaintedMagicResearchItem("WARPEDGOGGLES", TM, new AspectList().add(Aspect.ARMOR, 4).add(Aspect.ELDRITCH, 4).add(Aspect.DARKNESS, 4).add(Aspect.ARMOR, 4), 1, 4, 0, new ItemStack(ItemRegistry.ItemWarpedGoggles)).setParentsHidden(new String[]{ "TAINTEDMAGIC", "GOGGLES", }).setConcealed().setSecondary().setParents("SHADOWMETAL").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemWarpedGoggles")) }).registerResearchItem(); + new TaintedMagicResearchItem("WARPEDGOGGLES", TM, new AspectList().add(Aspect.ARMOR, 4).add(Aspect.ELDRITCH, 4).add(Aspect.DARKNESS, 4).add(Aspect.ARMOR, 4), 1, 4, 0, + new ItemStack(ItemRegistry.ItemWarpedGoggles)).setParentsHidden(new String[]{ "TAINTEDMAGIC", "GOGGLES", }).setConcealed().setSecondary().setParents("SHADOWMETAL") + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemWarpedGoggles")) }).registerResearchItem(); - new TaintedMagicResearchItem("TAINTFOCUS", TM, new AspectList().add(Aspect.TAINT, 4).add(Aspect.WATER, 4).add(Aspect.SLIME, 4).add(Aspect.AIR, 4), 9, 4, 0, new ItemStack(ItemRegistry.ItemFocusTaint)).setParentsHidden(new String[]{ "SHADOWMETAL", "INFUSION", "BOTTLETAINT", "FOCUSFIRE", "EVILSHARDS" }).setParents(new String[]{ "TMFOCUSFIRE" }).setConcealed().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemFocusTaint")) }).registerResearchItem(); - ThaumcraftApi.addWarpToResearch("TAINTFOCUS", 3); - - new TaintedMagicResearchItem("ELDRITCHFOCUS", TM, new AspectList().add(Aspect.ELDRITCH, 22).add(Aspect.ENTROPY, 14).add(Aspect.AIR, 4).add(Aspect.DARKNESS, 6), 7, 5, 0, new ItemStack(ItemRegistry.ItemFocusDarkMatter)).setParentsHidden(new String[]{ "OUTERREV" }).setParents(new String[]{ "TMFOCUSFIRE", "TAINTFOCUS", "FOCUSSHARD", "FOCUSLUMOS", "MACEFOCUS", "FOCUSTAINTEDBLAST", "BLOODLUSTUPGRADE" }).setConcealed().setSecondary().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemFocusDarkMatter")) }).registerResearchItem(); + new TaintedMagicResearchItem("ELDRITCHFOCUS", TM, new AspectList().add(Aspect.ELDRITCH, 22).add(Aspect.ENTROPY, 14).add(Aspect.AIR, 4).add(Aspect.DARKNESS, 6), 7, 7, 0, + new ItemStack(ItemRegistry.ItemFocusDarkMatter)).setParentsHidden(new String[]{ "OUTERREV" }) + .setParents(new String[]{ "TMFOCUSFIRE", "TAINTFOCUS", "FOCUSSHARD", "FOCUSLUMOS", "MACEFOCUS", "FOCUSSHOCKWAVE" }).setConcealed().setSecondary() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemFocusDarkMatter")) }).registerResearchItem(); ThaumcraftApi.addWarpToResearch("ELDRITCHFOCUS", 7); - new TaintedMagicResearchItem("KNIGHTROBES", TM, new AspectList().add(Aspect.CLOTH, 4).add(Aspect.DARKNESS, 4).add(Aspect.ARMOR, 4), -4, -2, 0, new ItemStack(ItemRegistry.ItemMaterial, 1, 8)).setParentsHidden("ELDRITCHMINOR").setParents("CRIMSONROBES").setConcealed().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemMaterial:8")), new ResearchPage((IArcaneRecipe) recipes.get("ItemHelmetCultistPlate")), new ResearchPage((IArcaneRecipe) recipes.get("ItemChestCultistPlate")), new ResearchPage((IArcaneRecipe) recipes.get("ItemLegsCultistPlate")) }).registerResearchItem(); + new TaintedMagicResearchItem("KNIGHTROBES", TM, new AspectList().add(Aspect.CLOTH, 4).add(Aspect.DARKNESS, 4).add(Aspect.ARMOR, 4), -4, -2, 0, new ItemStack(ItemRegistry.ItemMaterial, 1, 8)) + .setParentsHidden("ELDRITCHMINOR").setParents("CRIMSONROBES").setConcealed() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemMaterial:8")), + new ResearchPage((IArcaneRecipe) recipes.get("ItemHelmetCultistPlate")), new ResearchPage((IArcaneRecipe) recipes.get("ItemChestCultistPlate")), + new ResearchPage((IArcaneRecipe) recipes.get("ItemLegsCultistPlate")) }) + .registerResearchItem(); - new TaintedMagicResearchItem("PRAETORARMOR", TM, new AspectList().add(Aspect.CLOTH, 4).add(Aspect.DARKNESS, 4).add(Aspect.ARMOR, 4).add(Aspect.ELDRITCH, 4), -6, 0, 0, ItemApi.getItem("itemHelmetCultistLeaderPlate", 0)).setParents("KNIGHTROBES").setParentsHidden(new String[]{ "CRIMSONROBES", "TMELDRITCHMAJOR", "VOIDMETAL" }).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemHelmetCultistLeaderPlate")), new ResearchPage((InfusionRecipe) recipes.get("ItemChestCultistLeaderPlate")), new ResearchPage((InfusionRecipe) recipes.get("ItemLegsCultistLeaderPlate")) }).setConcealed().registerResearchItem(); + new TaintedMagicResearchItem("PRAETORARMOR", TM, new AspectList().add(Aspect.CLOTH, 4).add(Aspect.DARKNESS, 4).add(Aspect.ARMOR, 4).add(Aspect.ELDRITCH, 4), -6, 0, 0, + ItemApi.getItem("itemHelmetCultistLeaderPlate", 0)) + .setParents("KNIGHTROBES").setParentsHidden(new String[]{ "CRIMSONROBES", "TMELDRITCHMAJOR", "VOIDMETAL" }) + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemHelmetCultistLeaderPlate")), + new ResearchPage((IArcaneRecipe) recipes.get("ItemChestCultistLeaderPlate")), new ResearchPage((IArcaneRecipe) recipes.get("ItemLegsCultistLeaderPlate")) }) + .setConcealed().registerResearchItem(); - new TaintedMagicResearchItem("VOIDSENTBLOOD", TM, new AspectList().add(Aspect.VOID, 14).add(Aspect.DARKNESS, 8).add(Aspect.ARMOR, 18).add(Aspect.AURA, 4), -7, -1, 0, new ItemStack(ItemRegistry.ItemVoidsentBlood)).setSecondary().setParents("PRAETORARMOR").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((CrucibleRecipe) recipes.get("ItemVoidsentBlood")) }).setConcealed().registerResearchItem(); + new TaintedMagicResearchItem("VOIDSENTBLOOD", TM, new AspectList().add(Aspect.VOID, 14).add(Aspect.DARKNESS, 8).add(Aspect.ARMOR, 18).add(Aspect.AURA, 4), -2, -5, 0, + new ItemStack(ItemRegistry.ItemVoidsentBlood)).setSecondary().setParents("CRYSTALDAGGER").setParentsHidden("ELDRITCHMAJOR", "PRIMPEARL") + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemVoidsentBlood")) }).setConcealed().registerResearchItem(); ThaumcraftApi.addWarpToResearch("VOIDSENTBLOOD", 1); - new TaintedMagicResearchItem("VOIDWALKERBOOTS", TM, new AspectList().add(Aspect.MAGIC, 4).add(Aspect.DARKNESS, 8).add(Aspect.ARMOR, 8).add(Aspect.ELDRITCH, 8), 5, -5, 0, new ItemStack(ItemRegistry.ItemVoidwalkerBoots)).setParentsHidden(new String[]{ "PRIMPEARL", "BOOTSTRAVELLER", "SHADOWCLOTH", "ARMORVOIDFORTRESS" }).setConcealed().setParents(new String[]{ "TMELDRITCHMAJOR" }).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemVoidwalkerBoots")) }).registerResearchItem(); + new TaintedMagicResearchItem("VOIDWALKERBOOTS", TM, new AspectList().add(Aspect.MAGIC, 4).add(Aspect.DARKNESS, 8).add(Aspect.ARMOR, 8).add(Aspect.ELDRITCH, 8), 5, -5, 0, + new ItemStack(ItemRegistry.ItemVoidwalkerBoots)).setParentsHidden(new String[]{ "PRIMPEARL", "BOOTSTRAVELLER", "SHADOWCLOTH", "ARMORVOIDFORTRESS" }).setConcealed() + .setParents(new String[]{ "TMELDRITCHMAJOR" }).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemVoidwalkerBoots")) }) + .registerResearchItem(); - new TaintedMagicResearchItem("CREATIONSHARD", TM, TaintedMagicHelper.getPrimals(16), 9, -7, 0, new ItemStack(ItemRegistry.ItemMaterial, 1, 5)).setConcealed().setParents("TMELDRITCHMAJOR").setParentsHidden("PRIMPEARL").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemMaterial:5")) }).setSecondary().registerResearchItem(); + new TaintedMagicResearchItem("CREATIONSHARD", TM, TaintedMagicHelper.getPrimals(16), 9, -7, 0, new ItemStack(ItemRegistry.ItemMaterial, 1, 5)).setConcealed().setParents("TMELDRITCHMAJOR") + .setParentsHidden("PRIMPEARL").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemMaterial:5")), + new ResearchPage((IArcaneRecipe) recipes.get("ItemMaterial:12")) }) + .setSecondary().registerResearchItem(); ThaumcraftApi.addWarpToResearch("CREATIONSHARD", 9); - new TaintedMagicResearchItem("CREATION", TM, new AspectList().add(Aspect.MAGIC, 4), 11, -5, 0, new ResourceLocation("taintedmagic:textures/misc/IconCREATION.png")).setParents("CREATIONSHARD").setConcealed().setRound().setSpecial().setHidden().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage("2"), new ResearchPage("3"), new ResearchPage("4"), new ResearchPage("5") }).registerResearchItem(); + new TaintedMagicResearchItem("CREATION", TM, new AspectList().add(Aspect.MAGIC, 4), 11, -5, 0, new ResourceLocation("taintedmagic:textures/misc/IconCREATION.png")).setParents("CREATIONSHARD") + .setConcealed().setRound().setSpecial().setHidden() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage("2"), new ResearchPage("3"), new ResearchPage("4"), new ResearchPage("5") }).registerResearchItem(); - new TaintedMagicResearchItem("FOCUSTIME", TM, new AspectList().add(Aspect.FIRE, 4).add(Aspect.WATER, 8).add(Aspect.EARTH, 4).add(Aspect.AIR, 4).add(Aspect.ORDER, 4).add(Aspect.ENTROPY, 4).add(Aspect.EXCHANGE, 4), 13, -6, 0, new ItemStack(ItemRegistry.ItemFocusTime)).setConcealed().setParents("CREATION").setParentsHidden("FOCUSPORTABLEHOLE", "FOCUSFIRE").setComplexity(3).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemFocusTime")) }).setSecondary().registerResearchItem(); + new TaintedMagicResearchItem("SKYSALT", TM, new AspectList().add(TaintedMagicHelper.getPrimals(4)).add(Aspect.WEATHER, 4), 12, -7, 0, new ItemStack(ItemRegistry.ItemSalis, 1, 0)) + .setConcealed().setParents("CREATION").setComplexity(3).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemSalis:0")) }) + .setSecondary().registerResearchItem(); - new TaintedMagicResearchItem("FOCUSWEATHER", TM, new AspectList().add(Aspect.FIRE, 4).add(Aspect.WATER, 8).add(Aspect.EARTH, 4).add(Aspect.AIR, 4).add(Aspect.ORDER, 4).add(Aspect.ENTROPY, 4).add(Aspect.WEATHER, 4), 13, -4, 0, new ItemStack(ItemRegistry.ItemFocusMeteorology)).setParentsHidden(new String[]{ "FOCUSFROST", "FOCUSSHOCK" }).setConcealed().setParents("CREATION").setComplexity(3).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemFocusMeteorology")) }).setSecondary().registerResearchItem(); + new TaintedMagicResearchItem("TIMESALT", TM, new AspectList().add(TaintedMagicHelper.getPrimals(4)).add(Aspect.EXCHANGE, 4), 13, -6, 0, new ItemStack(ItemRegistry.ItemSalis, 1, 1)) + .setConcealed().setParents("CREATION").setComplexity(3).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemSalis:1")) }) + .setSecondary().registerResearchItem(); - new TaintedMagicResearchItem("THAUMICDISASSEMBLER", TM, new AspectList().add(Aspect.METAL, 4).add(Aspect.WEAPON, 8).add(Aspect.TOOL, 4), 6, -9, 0, new ItemStack(ItemRegistry.ItemThaumicDisassembler)).setParentsHidden(new String[]{ "THAUMIUM", "VOIDMETAL", "PRIMPEARL" }).setConcealed().setParents("TMELDRITCHMAJOR").setComplexity(2).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemThaumicDisassembler")), new ResearchPage((IArcaneRecipe) recipes.get("ItemMaterial:6")), new ResearchPage("2") }).registerResearchItem(); + new TaintedMagicResearchItem("THAUMICDISASSEMBLER", TM, new AspectList().add(Aspect.METAL, 4).add(Aspect.WEAPON, 8).add(Aspect.TOOL, 4), 6, -9, 0, + new ItemStack(ItemRegistry.ItemThaumicDisassembler)).setParentsHidden(new String[]{ "THAUMIUM", "VOIDMETAL", "PRIMPEARL" }).setConcealed().setParents("TMELDRITCHMAJOR") + .setComplexity(2).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemThaumicDisassembler")), + new ResearchPage((IArcaneRecipe) recipes.get("ItemMaterial:6")), new ResearchPage("2") }) + .registerResearchItem(); - new TaintedMagicResearchItem("VOIDSASH", TM, new AspectList().add(Aspect.VOID, 4).add(Aspect.METAL, 8).add(Aspect.ARMOR, 4), 3, -6, 0, new ItemStack(ItemRegistry.ItemVoidwalkerSash)).setParentsHidden("PRIMPEARL").setParents("VOIDWALKERBOOTS").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemVoidwalkerSash")) }).setConcealed().setSecondary().registerResearchItem(); + new TaintedMagicResearchItem("VOIDSASH", TM, new AspectList().add(Aspect.VOID, 4).add(Aspect.METAL, 8).add(Aspect.ARMOR, 4), 3, -6, 0, new ItemStack(ItemRegistry.ItemVoidwalkerSash)) + .setParentsHidden("PRIMPEARL").setParents("VOIDWALKERBOOTS").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemVoidwalkerSash")) }) + .setConcealed().setSecondary().registerResearchItem(); ThaumcraftApi.addWarpToResearch("VOIDSASH", 4); - new TaintedMagicResearchItem("MAGICFUNGUAR", TM, new AspectList().add(Aspect.MAGIC, 2).add(Aspect.HUNGER, 4).add(Aspect.PLANT, 2), 3, -3, 0, new ItemStack(ItemRegistry.ItemMagicFunguar)).setSecondary().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemMagicFunguar")) }).setConcealed().registerResearchItem(); + new TaintedMagicResearchItem("MAGICFUNGUAR", TM, new AspectList().add(Aspect.MAGIC, 2).add(Aspect.HUNGER, 4).add(Aspect.PLANT, 2), 2, -4, 0, new ItemStack(ItemRegistry.ItemMagicFunguar)) + .setSecondary().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemMagicFunguar")) }).setParents("VISHROOMCRAFT").setConcealed() + .registerResearchItem(); - new TaintedMagicResearchItem("CRYSTALDAGGER", TM, new AspectList().add(Aspect.WEAPON, 4).add(Aspect.FIRE, 4).add(Aspect.HEAL, 4), 0, -3, 0, new ItemStack(ItemRegistry.ItemCrystalDagger, 1, 7)).setParentsHidden("ENCHFABRIC", "ESSENTIACRYSTAL", "ELDRITCHMINOR").setParents("TAINTEDMAGIC").setComplexity(2).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemCrystalDagger")) }).registerResearchItem(); + new TaintedMagicResearchItem("VISHROOMCRAFT", TM, new AspectList().add(Aspect.MAGIC, 4).add(Aspect.CRAFT, 2).add(Aspect.PLANT, 3), 3, -3, 0, + new ItemStack(ConfigBlocks.blockCustomPlant, 1, 5)).setSecondary() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((CrucibleRecipe) recipes.get("Vishroom_red")), + new ResearchPage((CrucibleRecipe) recipes.get("Vishroom_brown")) }) + .setConcealed().registerResearchItem(); + + new TaintedMagicResearchItem("CRYSTALDAGGER", TM, new AspectList().add(Aspect.WEAPON, 4).add(Aspect.FIRE, 4).add(Aspect.HEAL, 4), 0, -3, 0, new ItemStack(ItemRegistry.ItemHollowDagger, 1, 7)) + .setParentsHidden("ENCHFABRIC", "ESSENTIACRYSTAL", "ELDRITCHMINOR").setParents("TAINTEDMAGIC").setComplexity(2) + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemHollowDagger")) }).registerResearchItem(); ThaumcraftApi.addWarpToResearch("CRYSTALDAGGER", 2); - new TaintedMagicResearchItem("MACEFOCUS", TM, new AspectList().add(Aspect.ENTROPY, 10).add(Aspect.EARTH, 4).add(Aspect.WEAPON, 6).add(Aspect.MAGIC, 8), 5, 4, 0, new ItemStack(ItemRegistry.ItemFocusMageMace)).setParents("TMFOCUSFIRE").setConcealed().setComplexity(2).setParentsHidden("THAUMIUM").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemFocusMageMace")) }).registerResearchItem(); + new TaintedMagicResearchItem("MACEFOCUS", TM, new AspectList().add(Aspect.ENTROPY, 10).add(Aspect.EARTH, 4).add(Aspect.WEAPON, 6).add(Aspect.MAGIC, 8), 6, 5, 0, + new ItemStack(ItemRegistry.ItemFocusMageMace)).setParents("TMFOCUSFIRE").setConcealed().setComplexity(2).setParentsHidden("THAUMIUM") + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemFocusMageMace")) }).registerResearchItem(); - new TaintedMagicResearchItem("CRIMSONBLADE", TM, new AspectList().add(Aspect.ENTROPY, 8).add(Aspect.ELDRITCH, 2).add(Aspect.WEAPON, 16).add(Aspect.VOID, 6), -7, 1, 0, ItemApi.getItem("itemSwordCrimson", 0)).setParents("PRAETORARMOR").setConcealed().setComplexity(3).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemSwordCrimson")) }).setSecondary().registerResearchItem(); + new TaintedMagicResearchItem("CRIMSONBLADE", TM, new AspectList().add(Aspect.ENTROPY, 8).add(Aspect.ELDRITCH, 2).add(Aspect.WEAPON, 16).add(Aspect.VOID, 6), -6, 2, 0, + ItemApi.getItem("itemSwordCrimson", 0)).setParents("PRAETORARMOR").setConcealed().setComplexity(3) + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemSwordCrimson")) }).setSecondary().registerResearchItem(); ThaumcraftApi.addWarpToResearch("CRIMSONBLADE", 3); - new TaintedMagicResearchItem("SHADOWFORTRESSARMOR", TM, new AspectList().add(Aspect.METAL, 4).add(Aspect.DARKNESS, 8).add(Aspect.ARMOR, 8).add(Aspect.VOID, 2), 0, 3, 0, new ItemStack(ItemRegistry.ItemShadowFortressHelmet)).setParents("SHADOWMETAL").setConcealed().setComplexity(3).setParentsHidden("VOIDFORTRESS", "TMELDRITCHMAJOR", "EVILSHARDS").setSecondary().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemShadowFortressHelmet")), new ResearchPage((InfusionRecipe) recipes.get("ItemShadowFortressChestplate")), new ResearchPage((InfusionRecipe) recipes.get("ItemShadowFortressLeggings")) }).registerResearchItem(); + new TaintedMagicResearchItem("SHADOWFORTRESSARMOR", TM, new AspectList().add(Aspect.METAL, 4).add(Aspect.DARKNESS, 8).add(Aspect.ARMOR, 8).add(Aspect.VOID, 2), 0, 3, 0, + new ItemStack(ItemRegistry.ItemShadowFortressHelmet)).setParents("SHADOWMETAL").setConcealed().setComplexity(3).setParentsHidden("VOIDFORTRESS", "TMELDRITCHMAJOR", "EVILSHARDS") + .setSecondary() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemShadowFortressHelmet")), + new ResearchPage((InfusionRecipe) recipes.get("ItemShadowFortressChestplate")), new ResearchPage((InfusionRecipe) recipes.get("ItemShadowFortressLeggings")) }) + .registerResearchItem(); ThaumcraftApi.addWarpToResearch("SHADOWFORTRESSARMOR", 3); - new TaintedMagicResearchItem("CAP_cloth", TM, new AspectList().add(Aspect.MAGIC, 4).add(Aspect.CLOTH, 4), 3, 1, 0, new ItemStack(ItemRegistry.ItemWandCap, 1, 1)).setParentsHidden("CAP_gold", "ENCHFABRIC").setConcealed().setSecondary().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemWandCap:1")) }).registerResearchItem(); + new TaintedMagicResearchItem("CAP_cloth", TM, new AspectList().add(Aspect.MAGIC, 4).add(Aspect.CLOTH, 4), 3, 1, 0, new ItemStack(ItemRegistry.ItemWandCap, 1, 1)) + .setParentsHidden("CAP_gold", "ENCHFABRIC").setConcealed().setSecondary() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemWandCap:1")) }).registerResearchItem(); - new TaintedMagicResearchItem("CAP_crimsoncloth", TM, new AspectList().add(Aspect.MAGIC, 8).add(Aspect.CLOTH, 4).add(Aspect.HEAL, 8), -2, 0, 0, new ItemStack(ItemRegistry.ItemWandCap, 1, 2)).setParentsHidden("CAP_cloth").setSecondary().setConcealed().setParents("CRIMSONROBES").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemWandCap:2")) }).registerResearchItem(); + new TaintedMagicResearchItem("CAP_crimsoncloth", TM, new AspectList().add(Aspect.MAGIC, 8).add(Aspect.CLOTH, 4).add(Aspect.HEAL, 8), -1, -1, 0, new ItemStack(ItemRegistry.ItemWandCap, 1, 2)) + .setParentsHidden("CAP_cloth").setSecondary().setConcealed().setParents("CRIMSONROBES") + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemWandCap:2")) }).registerResearchItem(); - new TaintedMagicResearchItem("CAP_shadowcloth", TM, new AspectList().add(Aspect.MAGIC, 16).add(Aspect.CLOTH, 8).add(Aspect.VOID, 16).add(Aspect.DARKNESS, 8), -2, 3, 0, new ItemStack(ItemRegistry.ItemWandCap, 1, 3)).setParentsHidden("CAP_cloth", "CAP_thaumium").setSecondary().setConcealed().setParents("SHADOWCLOTH").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemWandCap:3")) }).registerResearchItem(); + new TaintedMagicResearchItem("CAP_shadowcloth", TM, new AspectList().add(Aspect.MAGIC, 16).add(Aspect.CLOTH, 8).add(Aspect.VOID, 16).add(Aspect.DARKNESS, 8), -2, 3, 0, + new ItemStack(ItemRegistry.ItemWandCap, 1, 3)).setParentsHidden("CAP_cloth", "CAP_thaumium").setSecondary().setConcealed().setParents("SHADOWCLOTH") + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemWandCap:3")) }).registerResearchItem(); ThaumcraftApi.addWarpToResearch("CAPSHADOWCLOTH", 1); - new TaintedMagicResearchItem("FOCUSTAINTEDBLAST", TM, new AspectList().add(Aspect.MAGIC, 20).add(Aspect.TAINT, 12).add(Aspect.AIR, 6).add(Aspect.MOTION, 12), 10, 4, 0, new ItemStack(ItemRegistry.ItemFocusTaintedShockwave)).setParentsHidden("FOCUSFIRE", "ELDRITCHMINOR", "FOCUSSHOCK").setConcealed().setParents("TAINTFOCUS").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemFocusTaintedShockwave")) }).setSecondary().registerResearchItem(); - ThaumcraftApi.addWarpToResearch("FOCUSTAINTEDBLAST", 4); + new TaintedMagicResearchItem("FOCUSSHOCKWAVE", TM, new AspectList().add(Aspect.MAGIC, 20).add(Aspect.TAINT, 12).add(Aspect.AIR, 6).add(Aspect.MOTION, 12), 8, 5, 0, + new ItemStack(ItemRegistry.ItemFocusShockwave)).setParentsHidden("FOCUSSHOCK").setConcealed().setParents("TMFOCUSFIRE") + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemFocusShockwave")) }).setSecondary().registerResearchItem(); + ThaumcraftApi.addWarpToResearch("FOCUSSHOCKWAVE", 4); - new TaintedMagicResearchItem("PRIMALBLADE", TM, new AspectList().add(Aspect.MAGIC, 1).add(Aspect.ELDRITCH, 1).add(Aspect.WEAPON, 1).add(Aspect.VOID, 1).add(Aspect.AURA, 1), 11, -3, 0, new ItemStack(ItemRegistry.ItemPrimordialEdge)).setParentsHidden("VOIDMETAL", "PRIMALCRUSHER", "EVILSHARDS", "CRYSTALDAGGER").setConcealed().setParents("CREATION").setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemPrimordialEdge")) }).registerResearchItem(); + new TaintedMagicResearchItem("PRIMALBLADE", TM, new AspectList().add(Aspect.MAGIC, 1).add(Aspect.ELDRITCH, 1).add(Aspect.WEAPON, 1).add(Aspect.VOID, 1).add(Aspect.AURA, 1), 11, -3, 0, + new ItemStack(ItemRegistry.ItemPrimordialEdge)).setParentsHidden("VOIDMETAL", "PRIMALCRUSHER", "EVILSHARDS", "CRYSTALDAGGER").setConcealed().setParents("CREATION") + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemPrimordialEdge")) }).registerResearchItem(); ThaumcraftApi.addWarpToResearch("PRIMALBLADE", 4); - new TaintedMagicResearchItem("BLOODLUSTUPGRADE", TM, new AspectList().add(Aspect.MAGIC, 4).add(Aspect.HEAL, 8).add(Aspect.WEAPON, 8), 4, 4, 0, new ResourceLocation("taintedmagic:textures/foci/IconBloodlust.png")).setParentsHidden("CRYSTALDAGGER", "FOCALMANIPULATION").setConcealed().setParents("MACEFOCUS").setSecondary().setPages(new ResearchPage[]{ new ResearchPage("1") }).registerResearchItem(); - ThaumcraftApi.addWarpToResearch("BLOODLUSTUPGRADE", 3); + new TaintedMagicResearchItem("THAUMIUMKATANA", TM, new AspectList().add(Aspect.METAL, 8).add(Aspect.MAGIC, 4).add(Aspect.WEAPON, 6), 13, 3, 0, new ItemStack(ItemRegistry.ItemKatana, 1, 0)) + .setParents("TMARMORFORTRESS").setParentsHidden("ARMORFORTRESS").setConcealed() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemKatana:0")) }).registerResearchItem(); - new TaintedMagicResearchItem("THAUMIUMKATANA", TM, new AspectList().add(Aspect.METAL, 8).add(Aspect.MAGIC, 4).add(Aspect.WEAPON, 6), 13, 1, 0, new ItemStack(ItemRegistry.ItemKatana, 1, 0)).setParents("TMARMORFORTRESS").setParentsHidden("ARMORFORTRESS").setConcealed().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemKatana:0")) }).registerResearchItem(); - - new TaintedMagicResearchItem("VOIDMETALKATANA", TM, new AspectList().add(Aspect.METAL, 16).add(Aspect.MAGIC, 8).add(Aspect.WEAPON, 12).add(Aspect.VOID, 12), 7, -10, 0, new ItemStack(ItemRegistry.ItemKatana, 1, 1)).setParentsHidden("THAUMIUMKATANA").setParents("VOIDFORTRESS").setConcealed().setSecondary().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemKatana:1")) }).registerResearchItem(); + new TaintedMagicResearchItem("VOIDMETALKATANA", TM, new AspectList().add(Aspect.METAL, 16).add(Aspect.MAGIC, 8).add(Aspect.WEAPON, 12).add(Aspect.VOID, 12), 7, -10, 0, + new ItemStack(ItemRegistry.ItemKatana, 1, 1)).setParentsHidden("THAUMIUMKATANA").setParents("VOIDFORTRESS").setConcealed().setSecondary() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemKatana:1")) }).registerResearchItem(); ThaumcraftApi.addWarpToResearch("VOIDMETALKATANA", 4); - new TaintedMagicResearchItem("SHADOWMETALKATANA", TM, new AspectList().add(Aspect.METAL, 16).add(Aspect.MAGIC, 8).add(Aspect.WEAPON, 12).add(Aspect.VOID, 12).add(Aspect.DARKNESS, 14), 0, 6, 0, new ItemStack(ItemRegistry.ItemKatana, 1, 2)).setParentsHidden("VOIDMETALKATANA").setParents("SHADOWFORTRESSARMOR").setConcealed().setSecondary().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemKatana:2")) }).registerResearchItem(); + new TaintedMagicResearchItem("SHADOWMETALKATANA", TM, new AspectList().add(Aspect.METAL, 16).add(Aspect.MAGIC, 8).add(Aspect.WEAPON, 12).add(Aspect.VOID, 12).add(Aspect.DARKNESS, 14), 0, 6, 0, + new ItemStack(ItemRegistry.ItemKatana, 1, 2)).setParentsHidden("VOIDMETALKATANA").setParents("SHADOWFORTRESSARMOR").setConcealed().setSecondary() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemKatana:2")) }).registerResearchItem(); ThaumcraftApi.addWarpToResearch("SHADOWMETALKATANA", 6); - new TaintedMagicResearchItem("INSCRIPTIONFIRE", TM, new AspectList().add(Aspect.FIRE, 8).add(Aspect.LIGHT, 4).add(Aspect.METAL, 6), 14, -1, 0, new ResourceLocation("taintedmagic:textures/misc/IconINSCRIPTIONFIRE.png")).setParents("THAUMIUMKATANA").setParentsHidden("FOCUSFIRE").setConcealed().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemKatanaThaumium:inscription0")) }).setSecondary().registerResearchItem(); + new TaintedMagicResearchItem("INSCRIPTIONFIRE", TM, new AspectList().add(Aspect.FIRE, 8).add(Aspect.LIGHT, 4).add(Aspect.METAL, 6), 14, 1, 0, + new ResourceLocation("taintedmagic:textures/misc/IconINSCRIPTIONFIRE.png")).setParents("THAUMIUMKATANA").setParentsHidden("FOCUSFIRE").setConcealed() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemKatanaThaumium:inscription0")) }).setSecondary().registerResearchItem(); - new TaintedMagicResearchItem("INSCRIPTIONTAINT", TM, new AspectList().add(Aspect.TAINT, 8).add(Aspect.FLESH, 4).add(Aspect.METAL, 6), 15, 1, 0, new ResourceLocation("taintedmagic:textures/misc/IconINSCRIPTIONTAINT.png")).setParents("THAUMIUMKATANA").setParentsHidden("TAINTFOCUS").setConcealed().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemKatanaThaumium:inscription1")) }).setSecondary().registerResearchItem(); + new TaintedMagicResearchItem("INSCRIPTIONTAINT", TM, new AspectList().add(Aspect.TAINT, 8).add(Aspect.FLESH, 4).add(Aspect.METAL, 6), 15, 3, 0, + new ResourceLocation("taintedmagic:textures/misc/IconINSCRIPTIONTAINT.png")).setParents("THAUMIUMKATANA").setParentsHidden("TAINTFOCUS").setConcealed() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemKatanaThaumium:inscription1")) }).setSecondary().registerResearchItem(); ThaumcraftApi.addWarpToResearch("INSCRIPTIONTAINT", 2); - new TaintedMagicResearchItem("INSCRIPTIONUNDEAD", TM, new AspectList().add(Aspect.HEAL, 8).add(Aspect.UNDEAD, 4).add(Aspect.METAL, 6), 14, 3, 0, new ResourceLocation("taintedmagic:textures/misc/IconINSCRIPTIONUNDEAD.png")).setParents("THAUMIUMKATANA").setParentsHidden("BATHSALTS").setConcealed().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemKatanaThaumium:inscription2")) }).setSecondary().registerResearchItem(); + new TaintedMagicResearchItem("INSCRIPTIONUNDEAD", TM, new AspectList().add(Aspect.HEAL, 8).add(Aspect.UNDEAD, 4).add(Aspect.METAL, 6), 14, 5, 0, + new ResourceLocation("taintedmagic:textures/misc/IconINSCRIPTIONUNDEAD.png")).setParents("THAUMIUMKATANA").setParentsHidden("BATHSALTS").setConcealed() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemKatanaThaumium:inscription2")) }).setSecondary().registerResearchItem(); ThaumcraftApi.addWarpToResearch("INSCRIPTIONUNDEAD", 4); - new TaintedMagicResearchItem("VOIDGOGGLES", TM, new AspectList().add(Aspect.VOID, 8).add(Aspect.DARKNESS, 4).add(Aspect.MAGIC, 6).add(Aspect.SENSES, 12).add(Aspect.CRYSTAL, 2), 2, 3, 0, new ItemStack(ItemRegistry.ItemVoidmetalGoggles)).setParents("WARPEDGOGGLES").setParentsHidden("VOIDMETAL").setConcealed().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemVoidmetalGoggles")) }).setSecondary().registerResearchItem(); + new TaintedMagicResearchItem("VOIDGOGGLES", TM, new AspectList().add(Aspect.VOID, 8).add(Aspect.DARKNESS, 4).add(Aspect.MAGIC, 6).add(Aspect.SENSES, 12).add(Aspect.CRYSTAL, 2), 2, 3, 0, + new ItemStack(ItemRegistry.ItemVoidmetalGoggles)).setParents("WARPEDGOGGLES").setParentsHidden("VOIDMETAL").setConcealed() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemVoidmetalGoggles")) }).setSecondary().registerResearchItem(); ThaumcraftApi.addWarpToResearch("VOIDGOGGLES", 2); - new TaintedMagicResearchItem("FOCUSSHARD", TM, new AspectList().add(Aspect.CRYSTAL, 2).add(Aspect.MAGIC, 4).add(Aspect.MOTION, 6), 6, 6, 0, new ItemStack(ItemRegistry.ItemFocusVisShard)).setParents("TMFOCUSFIRE").setParentsHidden("FOCUSFIRE", "EVILSHARDS").setConcealed().setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemFocusVisShard")) }).setSecondary().registerResearchItem(); + new TaintedMagicResearchItem("FOCUSSHARD", TM, new AspectList().add(Aspect.CRYSTAL, 2).add(Aspect.MAGIC, 4).add(Aspect.MOTION, 6), 9, 6, 0, new ItemStack(ItemRegistry.ItemFocusVisShard)) + .setParents("TMFOCUSFIRE").setParentsHidden("FOCUSFIRE", "EVILSHARDS").setConcealed() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemFocusVisShard")) }).setSecondary().registerResearchItem(); - new TaintedMagicResearchItem("FOCUSLUMOS", TM, new AspectList().add(Aspect.FIRE, 16).add(Aspect.LIGHT, 24).add(Aspect.ENERGY, 8), 8, 6, 0, new ItemStack(ItemRegistry.ItemFocusLumos)).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemFocusLumos")) }).setParents("TMFOCUSFIRE").setParentsHidden("FOCUSFIRE").setConcealed().setSecondary().registerResearchItem(); + new TaintedMagicResearchItem("TAINTFOCUS", TM, new AspectList().add(Aspect.TAINT, 4).add(Aspect.LIFE, 4).add(Aspect.MOTION, 4), 10, 6, 0, new ItemStack(ItemRegistry.ItemFocusTaintSwarm)) + .setParentsHidden(new String[]{ "INFUSION", "BOTTLETAINT" }).setParents(new String[]{ "FOCUSSHARD" }).setConcealed() + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemFocusTaintSwarm")) }).registerResearchItem(); + ThaumcraftApi.addWarpToResearch("TAINTFOCUS", 3); - new TaintedMagicResearchItem("FLYTECHARM", TM, new AspectList().add(Aspect.FLIGHT, 15).add(Aspect.AIR, 20).add(Aspect.SENSES, 8).add(Aspect.MAGIC, 12), 9, -4, 0, new ItemStack(ItemRegistry.ItemFlyteCharm)).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemFlyteCharm")) }).setParents("CREATION").setParentsHidden("VOIDSASH", "PRIMALARROW").setConcealed().registerResearchItem(); + new TaintedMagicResearchItem("FOCUSLUMOS", TM, new AspectList().add(Aspect.FIRE, 16).add(Aspect.LIGHT, 24).add(Aspect.ENERGY, 8), 5, 6, 0, new ItemStack(ItemRegistry.ItemFocusLumos)) + .setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((IArcaneRecipe) recipes.get("ItemFocusLumos")) }).setParents("TMFOCUSFIRE").setParentsHidden("FOCUSFIRE") + .setConcealed().setSecondary().registerResearchItem(); + + new TaintedMagicResearchItem("LUMOSRING", TM, new AspectList().add(Aspect.ARMOR, 16).add(Aspect.AURA, 12).add(Aspect.LIGHT, 24).add(Aspect.ENERGY, 8), 4, 5, 0, + new ItemStack(ItemRegistry.ItemLumosRing)).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemLumosRing")) }) + .setParents("FOCUSLUMOS").setParentsHidden("RUNICARMOR").setConcealed().setComplexity(2).registerResearchItem(); + + new TaintedMagicResearchItem("FLYTECHARM", TM, new AspectList().add(Aspect.FLIGHT, 15).add(Aspect.AIR, 20).add(Aspect.SENSES, 8).add(Aspect.MAGIC, 12), 13, -4, 0, + new ItemStack(ItemRegistry.ItemFlyteCharm)).setPages(new ResearchPage[]{ new ResearchPage("1"), new ResearchPage((InfusionRecipe) recipes.get("ItemFlyteCharm")) }) + .setParents("CREATION").setParentsHidden("VOIDSASH", "PRIMALARROW").setConcealed().registerResearchItem(); } } diff --git a/src/main/java/taintedmagic/common/research/TaintedMagicResearchItem.java b/src/main/java/taintedmagic/common/research/TaintedMagicResearchItem.java index 9a849c7..92ed19f 100644 --- a/src/main/java/taintedmagic/common/research/TaintedMagicResearchItem.java +++ b/src/main/java/taintedmagic/common/research/TaintedMagicResearchItem.java @@ -1,5 +1,7 @@ package taintedmagic.common.research; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraft.util.StatCollector; @@ -7,8 +9,6 @@ import taintedmagic.common.TaintedMagic; import thaumcraft.api.aspects.AspectList; import thaumcraft.api.research.ResearchItem; import thaumcraft.api.research.ResearchPage; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class TaintedMagicResearchItem extends ResearchItem { diff --git a/src/main/java/taintedmagic/common/research/ThaumcraftResearchItem.java b/src/main/java/taintedmagic/common/research/ThaumcraftResearchItem.java index b7ff5e5..c1b3209 100644 --- a/src/main/java/taintedmagic/common/research/ThaumcraftResearchItem.java +++ b/src/main/java/taintedmagic/common/research/ThaumcraftResearchItem.java @@ -6,9 +6,9 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import thaumcraft.api.aspects.AspectList; import thaumcraft.api.research.ResearchCategories; +import thaumcraft.api.research.ResearchCategoryList; import thaumcraft.api.research.ResearchItem; import thaumcraft.api.research.ResearchPage; -import thaumcraft.api.research.ResearchCategoryList; /** * This class was created by as part of the Thaumic Exploration mod. diff --git a/src/main/java/taintedmagic/common/world/WorldGenWarpwoodTree.java b/src/main/java/taintedmagic/common/world/WorldGenWarpwoodTree.java index 4ebe542..d4f97ce 100644 --- a/src/main/java/taintedmagic/common/world/WorldGenWarpwoodTree.java +++ b/src/main/java/taintedmagic/common/world/WorldGenWarpwoodTree.java @@ -1,18 +1,13 @@ package taintedmagic.common.world; -import net.minecraft.block.Block; -import net.minecraft.block.BlockSapling; -import net.minecraft.init.Blocks; -import net.minecraft.util.Direction; -import net.minecraft.util.MathHelper; -import net.minecraft.world.World; -import net.minecraft.world.gen.feature.WorldGenAbstractTree; -import net.minecraft.world.gen.feature.WorldGenBigTree; -import net.minecraftforge.common.IPlantable; -import net.minecraftforge.common.util.ForgeDirection; - import java.util.Random; +import net.minecraft.block.Block; +import net.minecraft.block.BlockSapling; +import net.minecraft.util.MathHelper; +import net.minecraft.world.World; +import net.minecraft.world.gen.feature.WorldGenAbstractTree; +import net.minecraftforge.common.util.ForgeDirection; import taintedmagic.common.registry.BlockRegistry; /** diff --git a/src/main/resources/assets/taintedmagic/lang/en_US.lang b/src/main/resources/assets/taintedmagic/lang/en_US.lang index da40685..2829554 100644 --- a/src/main/resources/assets/taintedmagic/lang/en_US.lang +++ b/src/main/resources/assets/taintedmagic/lang/en_US.lang @@ -12,16 +12,13 @@ text.radius=Block Radius text.burnTime=Burn Time text.eldritchsapping=Eldritch Sapping -text.bloodlust=Bloodlust #FOCI -item.ItemFocusTaintedShockwave.name=Wand Focus: Tainted Shockwave +item.ItemFocusShockwave.name=Wand Focus: Shockwave item.ItemFocusMageMace.name=Wand Focus: Mage's Mace -item.ItemFocusTaint.name=Wand Focus: Tainted Storm +item.ItemFocusTaintSwarm.name=Wand Focus: Taint Swarm item.ItemFocusDarkMatter.name=Wand Focus: Dark Matter -item.ItemFocusMeteorology.name=Wand Focus: Meteorology -item.ItemFocusTime.name=Wand Focus: Time item.ItemFocusVisShard.name=Wand Focus: Vis Shard item.ItemFocusLumos.name=Wand Focus: Lumos @@ -36,18 +33,9 @@ focus.upgrade.corrosive.text=This upgrade will cause the focus to inflict a with focus.upgrade.sanity.name=Sanity focus.upgrade.sanity.text=This upgrade will render you immune to gaining warp while using the focus. -focus.upgrade.bloodlust.name=Bloodlust -focus.upgrade.bloodlust.text=This upgrade will apply the Bloodlust trait to your staff while using the focus. - focus.upgrade.persistent.name=Persistent focus.upgrade.persistent.text=This upgrade will direct the shard to seek a new target nearby if the current target dies, or mysteriously disappears. -focus.upgrade.maxima.name=Lumos Maxima -focus.upgrade.maxima.text=This upgrade will cause the focus to briefly light up all dark spots nearby. The enlarge upgrade will increase the affected radius. - -focus.upgrade.glowpet.name=Glowpet -focus.upgrade.glowpet.text=This upgrade will cause the focus to spawn a floating ball of light which will follow you around until it burns out. The extend upgrade will prolong the light source's burn time. - focus.upgrade.diffusion.name=Diffusion focus.upgrade.diffusion.text=This upgrade will allow the focus to conjure a consistent cloud of harmful Dark Matter rather than a concentrated projectile. @@ -69,18 +57,24 @@ item.ItemMaterial.2.name=Crimson-Stained Cloth item.ItemMaterial.3.name=Warped Shard item.ItemMaterial.4.name=Fluxed Shard item.ItemMaterial.5.name=Shard of Creation -text.shard=The very fabric of magic will bend at your will +text.shard.1=The veil between worlds wavers as +text.shard.2=you look into its crystalline surface. item.ItemMaterial.6.name=Thaumic Alloy -item.ItemMaterial.7.name=Phial of Crystal Blood +item.ItemMaterial.7.name=Phial of Crimson Blood item.ItemMaterial.8.name=Crimson Plating item.ItemMaterial.9.name=Shadowmetal Nugget item.ItemMaterial.10.name=Primordial Nodule item.ItemMaterial.11.name=Primordial Mote +item.ItemMaterial.12.name=Fragment of Creation item.ItemVoidsentBlood.name=Phial of Voidsent Blood -item.ItemCrystalDagger.name=Crystal Dagger +item.ItemHollowDagger.name=Hollow Dagger item.ItemMagicFunguar.name=Magic Funguar item.ItemFlyteCharm.name=Flyte Charm +item.ItemLumosRing.name=Ring of Lumos + +item.ItemSalis.0.name=Salis Tempestas +item.ItemSalis.1.name=Salis Aevus item.ItemVoidwalkerSash.name=Voidwalker's Sash of Runic Shielding text.sash.on=ENABLED @@ -147,15 +141,15 @@ tc.research_category.TM=Maleficia #TAINTEDMAGIC tm.name.TAINTEDMAGIC=A Disturbing Find -tm.tag.TAINTEDMAGIC=The song of the shifting sea -tm.text.TAINTEDMAGIC.1=While you were out and about gathering magical knowledge, you came across something rather disturbing - a blood-stained, ripped page from another Thaumaturge’s Thaumonomicon. From your understanding, it gives an ideal for a darker side of magic...
The darkness intrigues you, even though it ensues a dangerous path. But what have you got to lose? The thought of an adventure into the unknown excites you!
The page is still rendered unclear, you could only make out bits and pieces... But one day, you will decipher this page and have a newfound mastery...one day! +tm.tag.TAINTEDMAGIC=Who wrote this? +tm.text.TAINTEDMAGIC.1=While you were out and about gathering magical knowledge, you came across something rather disturbing: a blood-stained, ripped page from another Thaumaturge’s Thaumonomicon. From your understanding, it gives an ideal for a darker side of magic...
The darkness intrigues you, even though it ensues a dangerous path. But what have you got to lose? The thought of an adventure into the unknown excites you!
The page is still rendered unclear, you could only make out bits and pieces... But one day, you will decipher this page and have a newfound mastery...one day! tm.text.TAINTEDMAGIC.2=taintedmagic:textures/misc/PageTAINTEDMAGIC.png:0:255:255:255:.5

Who wrote this? #SHADOWMETAL tm.name.SHADOWMETAL=Shadowmetal -tm.tag.SHADOWMETAL=When a door closes a window opens -tm.text.SHADOWMETAL.1=Once upon a time you were transmuting §osomething§r in your crucible. After screwing up a recipe, in panic, you accidentally dropped a block of stone into the bubbling mess. The result was Shadowmetal Ore.
All it takes is a mundane furnace to smelt it, resulting in a Shadowmetal Ingot. It is extremely heavy and very durable. You think you will need to research some more before it is usable.
§oYou listen closely and hear a dull, incomprehensible whisper coming from within this strange substance. Are you crazy? Who knows. +tm.tag.SHADOWMETAL=An accidental discovery +tm.text.SHADOWMETAL.1=Once upon a time you were transmuting §osomething§r in your crucible. After screwing up a recipe, in panic, you accidentally dropped a stone into the bubbling mess. The result was Shadowmetal Ore.
All it took was a mundane furnace to smelt it, resulting in a Shadowmetal Ingot. It is extremely heavy and seems very durable. Nonetheless, you think you will need to research some more to find out if it will be useful.
§oYou listen closely and hear a dull, incomprehensible whisper coming from within this strange substance. Are you crazy? Who knows. #CAP_shadowmetal @@ -167,15 +161,15 @@ tm.text.CAP_shadowmetal.1=With the discovery of Void Metal Wand Caps you wondere tm.name.ROD_warpwood=Warpwood Wand Rod tm.tag.ROD_warpwood=The wand chooses the wizard... -tm.text.ROD_warpwood.1=Ever since you discovered Warpwood, you have wondered if it would be possible to forge this wood into a wand. The Primordial Pearl has given you the answer to this question.
Since this is Warpwood we're speaking of, you think it's only logical to use a Zombie Brain as a conduit for the corrupt energies. Using the power of the Primordial Pearl as the core of this rod, the power is incomparable.
The wood is perfect for wandcraft. Warpwood has a high density meaning it's capable of storing huge amounts of vis - 250 of each, that is.
(Continued) +tm.text.ROD_warpwood.1=Ever since you discovered Warpwood, you have wondered if it would be possible to forge this wood into a wand. The Primordial Pearl has given you the answer to this question.
Using the Pearl as a source of power, a Zombie Brain to contain the warp, and some other magical materials, you have created the most powerful wand rod.
The wood proves to be perfect for Wandcraft as it very dense, meaning it's capable of storing huge amounts of Vis. 250 of each, that is.
(Continued) -tm.text.ROD_warpwood.2=It would also seem that the user's warped energy has a sort of... reaction with the organic warp levels from within the rod. It would seem that as this reaction between the two energies happens, vis is created as a byproduct and is stored within your wand. The more warp you amass, the greater the reactivity.
Seeing as it wards off all warp, The Warp Ward buff seems to negate the reaction completely.§oToday my wand started whispering strangely to me. My wand grows stronger...stronger as if it were an extension of myself. +tm.text.ROD_warpwood.2=It would also seem that the user's own warp reacts with this rod. Vis is created from this reaction and is stored within your wand. The more warp you amass, the greater the reactivity, and the faster your wand recharges.
Seeing as it wards off all warp effects, The Warp Ward buff seems to negate the reaction completely.
§oToday my wand started whispering strangely to me. My wand grows stronger...as if it is an extension of myself. #ROD_warpwood_staff tm.name.ROD_warpwood_staff=Warpwood Staff Core -tm.tag.ROD_warpwood_staff=It's not quite clear why... -tm.text.ROD_warpwood_staff.1=After having become quite familiar with your Warpwood Wand, you pondered how you could fortify the wand as a staff.
Unlike most staves, simply adding a primal charm was not enough. The answer lied once more...with the Primordial Pearl.
The same vis-generating traits seem to apply as well, and on top everything, this staff core offers enough space to store 500 primal vis. +tm.tag.ROD_warpwood_staff=it's not always clear why. +tm.text.ROD_warpwood_staff.1=After having become quite acquainted with your Warpwood Wand, it was no struggle to create a staff from Warpwood as well.
The same vis-generating traits apply, and this staff core offers enough space to store 500 primal vis. #EVILSHARDS @@ -186,7 +180,7 @@ tm.text.EVILSHARDS.1=Applying certain aspects to a Balanced Shard proved to have #CRIMSONROBES tm.name.CRIMSONROBES=Crimson Seamstry -tm.tag.CRIMSONROBES=The warm of her silken dress... +tm.tag.CRIMSONROBES=Red like roses tm.text.CRIMSONROBES.1=By comparing Crystal Blood and various cultist artifacts, you noticed similarities. It would seem that the cult stains nearly everything with a substance very similar to Crystal Blood.
By staining Enchanted Fabric with Crystal Blood, you were able to perfectly replicate the imperative material used by the Crimson Cult to produce their attire.
Using Crimson-stained Cloth (see right) you were able to replicate all of the various robe pieces. Their recipes are inscribed on the following pages. #VOIDFORTRESS @@ -203,20 +197,20 @@ tm.text.WARPEDGOGGLES.1=By infusing your Goggles of Revealing with Shadowmetal a #TAINTFOCUS -tm.name.TAINTFOCUS=Wand Focus: Tainted Storm -tm.tag.TAINTFOCUS=Sickness must be purged -tm.text.TAINTFOCUS.1=After having noticed the destructive properties of flux, you thought it would be interesting to create a wand focus using flux offensively. The result is the Tainted Storm focus.
This focus will conjure an AoE storm of harmful Taint Bubbles that poison and damage anything they hit.
Take necessary precautions when using this focus, for it isn't uncommon to be infected with the Flux Flu while using it. +tm.name.TAINTFOCUS=Wand Focus: Taint Swarm +tm.tag.TAINTFOCUS=A curious familiar +tm.text.TAINTFOCUS.1=Using your knowledge of tainted creatures, you have created a wand focus to summon a Taint Swarm to fight alongside you. The swarm will be bound to and will attack whichever enemy you are looking at when you cast the focus. If the target dies, or mysteriously disappears, the swarm will die as well.
Take necessary precautions when using this focus, as it isn't uncommon to contract various taint-related ailments while using it. #ELDRITCHFOCUS tm.name.ELDRITCHFOCUS=Wand Focus: Dark Matter -tm.tag.ELDRITCHFOCUS=Avada kedavra +tm.tag.ELDRITCHFOCUS=Avada Kedavra tm.text.ELDRITCHFOCUS.1=With the ever complex primordial pearl and your pre-existing knowledge of wand foci, you have finally designed the perfect wand focus.
Using the pearl as a powerful catalyst, you have constructed a crystal of raw power. Using the very fabric of magic, you created the perfect weapon to wield dark matter as the eldritch once did.
§oI stare into the glossy surface of the focus and wonder - what has become of myself? Nothing can stop me... §r§lNOTHING! #KNIGHTROBES tm.name.KNIGHTROBES=Crimson Forgery -tm.tag.KNIGHTROBES=The song of ringing steel +tm.tag.KNIGHTROBES=Knights of the Round tm.text.KNIGHTROBES.1=With a will, there is a way...
It seems that it wasn't quite as easy to replicate the Crimson Knight armor as it was to replicate the Robes. But, as usual, you found a solution.
Crimson Plating was just the material you needed. This strong, bloodstained metal is identical to the plating used by the cult.
The recipes for the plating and the armor are transcribed on the following pages. #PRAETORARMOR @@ -233,13 +227,13 @@ tm.text.WARPTREE.1=Whilst studying magical trees in the Tainted Lands, you have #SHADOWCLOTH tm.name.SHADOWCLOTH=Shadow-Imbued Cloth -tm.tag.SHADOWCLOTH=The black veil +tm.tag.SHADOWCLOTH=Black Veil Cloth tm.text.SHADOWCLOTH.1=When you first discovered Shadowmetal, you experimented to see how it would react with different magical materials. Shadow-Imbued Cloth was one of many results.
Shadow-Imbued Cloth has similar properties to Enchanted Fabric though it is quite dark in colour, and has some interesting magical properties... It is soft, thin, light, and incredibly strong. You are certain that it will be of many uses. #VOIDWALKERBOOTS tm.name.VOIDWALKERBOOTS=Boots of the Voidwalker -tm.tag.VOIDWALKERBOOTS=Her mother sits eyes downcast +tm.tag.VOIDWALKERBOOTS=Cloud of Darkness tm.text.VOIDWALKERBOOTS.1=You have been searching, searching very hard for a set of boots to complete your Void Thaumaturge attire. After a long, rainy night of research, you finally designed the perfect pair of boots to complete the set.
The Boots of the Voidwalker offer outstanding protection, as well as an incomparable speed boost while walking or flying. You will also be immune to fall damage while wearing the boots. #CREATIONSHARD @@ -269,35 +263,41 @@ tm.tag.THAUMICDISASSEMBLER=Innovation tm.text.THAUMICDISASSEMBLER.1=It was rumored that in the world of modern technology, a tool exists called the Atomic Disassembler.
This tool is said to be perfect - you can break any block with impeccable precision. All it costs is a little bit of energy.
You became jealous hearing about these technological advancements and honestly, you considered delving into the world of technology.
But, you are a Thaumaturge. You will NOT dabble in technology. You must create a tool that is an equal to the Atomic Disassembler using the power of Thaumaturgy. (continued) tm.text.THAUMICDISASSEMBLER.2=The Thaumic Disassembler is just that, you can break any block with precision and speed.
Shift+Right-click to change how fast you break through blocks.
Due to the Thaumium in the alloy, the repairing proprieties of Void Metal did not apply. To compensate, a small amount of Perditio Vis is required to keep this tool charged. -#FOCUSTIME +#SKYSALT -tm.name.FOCUSTIME=Wand Focus: Time -tm.tag.FOCUSTIME=That once a certainty, lost in grief -tm.text.FOCUSTIME.1=Using the basic principals of creation, you have created a focus to modify the world slightly.
The Time focus is simple. Using the Shard of Creation to tap into the world's creational formula, you are able to shift the time from night to day and vice versa.
The only problem is the immensely long cooldown time of 30 seconds.
This focus will not accept upgrades from the Focal Manipulator. +tm.name.SKYSALT=Salis Tempestas +tm.tag.SKYSALT=Salt of the Sky +tm.text.SKYSALT.1=By combining a fragment of the Shard of Creation with some other magical items, you have created a fine magical salt.
When this salt is thrown into the air, it instantly interacts with the primal aspects of the atmosphere. In the event of a storm, it will be instantly brought to a halt. If the skies are clear, they will promptly begin to rain down. -#FOCUSWEATHER +#TIMESALT -tm.name.FOCUSWEATHER=Wand Focus: Meteorology -tm.tag.FOCUSWEATHER=A prayer passes from her lips -tm.text.FOCUSWEATHER.1=Using the basic principals of creation, it wasn't hard to create a focus to modify the current weather in the world.
The weather focus will stop a storm if one exists, or start one if no storm is present.
The only problem is the rather long cooldown of 30 seconds.
This focus will not accept upgrades from the Focal Manipulator. +tm.name.TIMESALT=Salis Aevus +tm.tag.TIMESALT=Salt of Time +tm.text.TIMESALT.1=By combining a fragment of the Shard of Creation with some other magical items, you have created a fine magical salt.
When this salt is thrown into the air, it instantly interacts with the primal aspects of the space-time continuum. If the time is night, it will become day, and vice-versa. #VOIDSASH tm.name.VOIDSASH=Voidwalker's Sash of Runic Shielding -tm.tag.VOIDSASH=Farewells unsaid +tm.tag.VOIDSASH=Lightspeed tm.text.VOIDSASH.1=With extensive study of Runic Shielding, you had a bizarre idea.
Using Void Metal, Shadowmetal, the Primordial Pearl, a little Shadow Cloth and a fine mixture of essentia; a sash of runic shielding more powerful than you had ever believed possible was created. The Voidwalker's Sash of Runic Shielding offers §6Runic Shield +20§0 and can be equipped in the belt slot.
If you are wearing the sash alongside the Boots of the Voidwalker, your speed and jump height will be increased greatly. One would Shift+Right-click with the sash to toggle this effect. +#VISHROOMCRAFT + +tm.name.VISHROOMCRAFT=Vishroom Transmutation +tm.tag.VISHROOMCRAFT=Pesky 'shrooms +tm.text.VISHROOMCRAFT.1=Vishrooms: the bane of every Thaumaturge's existence. Every time you walk through a magical forest you somehow end up stepping on one of these pesky mushrooms, leaving you feeling sick.
After stepping on one-too-many of these mushrooms, you had a (likely mushroom-induced) vision. This short-lived epiphany led to you to discover a way to create Vishrooms from ordinary, mundane mushrooms. Why you might ever want to transmute Vishrooms? You have no idea. + #MAGICFUNGUAR tm.name.MAGICFUNGUAR=Magic Funguar -tm.tag.MAGICFUNGUAR=Flambé -tm.text.MAGICFUNGUAR.1=Vis Shrooms. The bane of every Thaumaturge's existence. Every time you walk through a magical forest, you somehow end up stepping on one of these pesky mushrooms and start to feel sick.
One day, you had had enough with these mushrooms. You plucked one from the ground and took it home with you.
You have discovered that that after combining it with some mundane ingredients and a magical shard, the mushroom had become §oedible.§r
Furthermore, when eaten, you will gain research points at random. +tm.tag.MAGICFUNGUAR=Edibles +tm.text.MAGICFUNGUAR.1=You have been experimenting with Vishrooms lately and you have come to believe that the effects they induce are not all that bad.
After combining a Vishroom with some mundane ingredients, and a magical shard, the mushroom had become §oedible.§r When eaten, you will gain research points at random, and a short burst of beneficial effects. #CRYSTALDAGGER -tm.name.CRYSTALDAGGER=Crystal Blood -tm.tag.CRYSTALDAGGER=Zwerchhau -tm.text.CRYSTALDAGGER.1=Using the Essentia Crystallizer, you have managed to forge a dagger that crystallizes the blood of your enemies as you kill them.
Using this blade allows you to obtain Crystal Blood when killing your foes. Any weapon that possesses the Bloodlust trait has a similar effect.
This newfound substance is particularly interesting because artifacts retrieved from the Crimson Cult seem to have similar properties. +tm.name.CRYSTALDAGGER=Hollow Dagger +tm.tag.CRYSTALDAGGER=Type O- +tm.text.CRYSTALDAGGER.1=By fashioning a dagger from a hollow Bone Rod, and some other materials, you now have an efficient way to collect blood from your enemies. If you posses an empty Glass Phial in your inventory, a phial will fill with blood upon stabbing a foe with this blade.
Upon closer inspection, you notice that this blood is not ordinary. The blood is the deepest of crimson like none you have ever seen. What is even more interesting is that this blood has similar properties to the artifacts you have previously retrieved from the Crimson Cult. #MACEFOCUS @@ -314,32 +314,32 @@ tm.text.CRIMSONBLADE.1=This seems to be the conclusion of your studies on the Cr #SHADOWFORTRESSARMOR tm.name.SHADOWFORTRESSARMOR=Shadow Fortress Armor -tm.tag.SHADOWFORTRESSARMOR=A torn uniform in hand +tm.tag.SHADOWFORTRESSARMOR=Samurai of the night tm.text.SHADOWFORTRESSARMOR.1=After having discovered Thaumium and Void Fortress Armor, you thought to yourself that Shadowmetal would be the perfect candidate to be made into Fortress Armor.
It worked perfectly. While this suit of armor did not inherit the auto-repair ability, it is drastically more protective than the Void Fortress Armor. It also seems that wearing multiple pieces of this armor will increase its protection significantly.
Like normal fortress armor, this armor can be enhanced by various different faceplates and modifications. #CAP_cloth tm.name.CAP_cloth=Cloth Caps -tm.tag.CAP_cloth=Satin and silence +tm.tag.CAP_cloth=Tied with a bow tm.text.CAP_cloth.1=With the immersive study of wandcraft, and the discovery of Enchanted Fabric, you decided to use some to cap a wand.
You are not sure why it worked, seeing as it is just cloth, but it did nonetheless. Using a few pieces of fabric, and a little vis, you have forged a fairly effective and very cheap wand cap.
This cap grants a 5% Vis Discount... Though, you are not quite sure why. #CAP_crimsoncloth tm.name.CAP_crimsoncloth=Crimson-Stained Cloth Caps -tm.tag.CAP_crimsoncloth=Stained in red. +tm.tag.CAP_crimsoncloth=Stained in red tm.text.CAP_crimsoncloth.1=Using the same concept that the Cloth Caps laid down, you created very similar caps from Crimson-Stained Cloth. Though, you needed some Salis Mundus to bind it all together.
It seems that the Crystal Blood from which the cloth was stained helps the caps channel vis at a far more efficient rate. The Crimson Cloth Caps seem to provide a 15% vis discount. #CAP_shadowcloth tm.name.CAP_shadowcloth=Shadow-Imbued Cloth Caps -tm.tag.CAP_shadowcloth=Shadows and secrets +tm.tag.CAP_shadowcloth=Tied with a (black) bow tm.text.CAP_shadowcloth.1=You've created a new type of wand cap using the exact same design as the Cloth Caps, except using Shadow-Imbued Cloth. The idea was definitely a success, though you needed to use a pinch of Salis Mundus to bind it all together.
The Shadow Cloth Caps are exactly the same as the Cloth Caps, but slightly more efficient. They will grant a 10% Vis Discount. -#FOCUSTAINTEDBLAST +#FOCUSSHOCKWAVE -tm.name.FOCUSTAINTEDBLAST=Wand Focus: Tainted Shockwave -tm.tag.FOCUSTAINTEDBLAST=Magical opposition -tm.text.FOCUSTAINTEDBLAST.1=With the study of advanced foci and flux, you felt the need for a focus that is more defensive than offensive.
This focus will send a violent shockwave of energy from your wand (or staff), sending all enemies in flight far away from you. +tm.name.FOCUSSHOCKWAVE=Wand Focus: Shockwave +tm.tag.FOCUSSHOCKWAVE=Magical opposition +tm.text.FOCUSSHOCKWAVE.1=After having designed many foci, you felt the need for a focus that is defensive, rather than offensive or utile.
This focus will hurl a violent bolt of lightning to each nearby enemy, picking them up and knocking them far away from you, as well as dealing a hefty blow of damage. #PRIMALBLADE @@ -347,16 +347,10 @@ tm.name.PRIMALBLADE=Edge of the Primordials tm.tag.PRIMALBLADE=Kamui tm.text.PRIMALBLADE.1=Using many dangerous magics, you've created the other half of your primal tool set.
The Edge of the Primordials is a hazardously sharp blade imbued with primal aspects. When blocking, a strong vortex of energy will be created that will pull all mobs within a 15 block radius towards you, damaging them. The effect is similar to that of a Hungry Node. This blade also possesses Eldritch Sapping - this will cause the blade to inflict strong weakness and hunger effects to your enemy.
Be careful with this blade... You may start hallucinating if you use it too much... -#BLOODLUSTUPGRADE - -tm.name.BLOODLUSTUPGRADE=Tier 5 Upgrade: Bloodlust -tm.tag.BLOODLUSTUPGRADE=Red like roses fill my dreams -tm.text.BLOODLUSTUPGRADE.1=This upgrade can only be applied to the Mage's Mace focus, and will allow your wand (or staff) to inherit Bloodlust trait. - #VOIDSENTBLOOD tm.name.VOIDSENTBLOOD=Voidsent Blood -tm.tag.VOIDSENTBLOOD=Amdapori +tm.tag.VOIDSENTBLOOD=Cthulhu juice tm.text.VOIDSENTBLOOD.1=While you love Crimson Cult robes, they are inferior to any armor made from Voidmetal because they do not repair themselves.
Until now.
Voidsent Blood is a simple concoction: Crystal Blood infused with void aspects.
Applying this elixir to Crimson Cult attire via a crafting grid will cause the armor to repair itself. #THAUMIUMKATANA @@ -410,10 +404,16 @@ tm.text.FOCUSSHARD.1=With the study of different types of shards, an incredible #FOCUSLUMOS tm.name.FOCUSLUMOS=Wand Focus: Lumos -tm.tag.FOCUSLUMOS=It's leviOOOOOSA +tm.tag.FOCUSLUMOS=It's LeviOsa not LevioSA tm.text.FOCUSLUMOS.1=After having studied foci and aspects you had an amazing idea. What if you could create light from the tip of your wand? This focus does just that.
Simply aim your wand (or staff) at a block and watch as a pocket of light appears! The light source can be broken and thus removed with your bare hands. +#LUMOSRING + +tm.name.LUMOSRING=Ring of Lumos +tm.tag.LUMOSRING=Lighting the way +tm.text.LUMOSRING.1=PLACEHOLD + #FLYTECHARM tm.name.FLYTECHARM=Flyte Charm tm.tag.FLYTECHARM=The spiders of Aurum -tm.text.FLYTECHARM.1=By infusing an Air Arrow with a Shard of Creation - and some other magical objects - you have created a powerful charm which allows the user to fly.
While you have the charm stored in your inventory, you will be granted Flyte at the cost of some Aer vis from your inventory. About 0.1 per tick while flying.
Furthermore, while flying, you can press your Sprint key to burst forward every 2 seconds. At the cost of some Ignis vis, that is. While falling, press your Sneak key to glide gently to the ground. +tm.text.FLYTECHARM.1=By infusing an Air Arrow with a Shard of Creation - and some other magical objects - you have created a powerful charm which allows the user to fly.
While you have the charm stored in your inventory, you will be granted Flyte at the cost of some Aer vis from your inventory. About 0.1 per tick while flying.
Furthermore, while flying, you can press your Sprint key to burst forward at the cost of some Ignis vis. While falling, press your Sneak key to glide gently to the ground. diff --git a/src/main/resources/assets/taintedmagic/textures/foci/IconAntibody.png b/src/main/resources/assets/taintedmagic/textures/foci/IconAntibody.png index a23fc9d..b4fc96e 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/foci/IconAntibody.png and b/src/main/resources/assets/taintedmagic/textures/foci/IconAntibody.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/foci/IconBloodlust.png b/src/main/resources/assets/taintedmagic/textures/foci/IconBloodlust.png deleted file mode 100644 index 016983a..0000000 Binary files a/src/main/resources/assets/taintedmagic/textures/foci/IconBloodlust.png and /dev/null differ diff --git a/src/main/resources/assets/taintedmagic/textures/foci/IconCorrosive.png b/src/main/resources/assets/taintedmagic/textures/foci/IconCorrosive.png index 0130a3d..c50998e 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/foci/IconCorrosive.png and b/src/main/resources/assets/taintedmagic/textures/foci/IconCorrosive.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/foci/IconDiffusion.png b/src/main/resources/assets/taintedmagic/textures/foci/IconDiffusion.png index 1c3745d..7c7ac31 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/foci/IconDiffusion.png and b/src/main/resources/assets/taintedmagic/textures/foci/IconDiffusion.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/foci/IconGlowpet.png b/src/main/resources/assets/taintedmagic/textures/foci/IconGlowpet.png deleted file mode 100644 index 0b10447..0000000 Binary files a/src/main/resources/assets/taintedmagic/textures/foci/IconGlowpet.png and /dev/null differ diff --git a/src/main/resources/assets/taintedmagic/textures/foci/IconMaxima.png b/src/main/resources/assets/taintedmagic/textures/foci/IconMaxima.png deleted file mode 100644 index 6730537..0000000 Binary files a/src/main/resources/assets/taintedmagic/textures/foci/IconMaxima.png and /dev/null differ diff --git a/src/main/resources/assets/taintedmagic/textures/foci/IconSanity.png b/src/main/resources/assets/taintedmagic/textures/foci/IconSanity.png index caa353d..c16f78d 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/foci/IconSanity.png and b/src/main/resources/assets/taintedmagic/textures/foci/IconSanity.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusDarkMatter_depth.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusDarkMatter_depth.png index 6ba2981..abf2cdc 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusDarkMatter_depth.png and b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusDarkMatter_depth.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusLumos.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusLumos.png index c103022..7964936 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusLumos.png and b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusLumos.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace.png index 84cbde1..4f220bd 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace.png and b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace_depth.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace_depth.png deleted file mode 100644 index 4b1222b..0000000 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace_depth.png and /dev/null differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace_depth.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace_depth.png.mcmeta deleted file mode 100644 index 08c3a80..0000000 --- a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace_depth.png.mcmeta +++ /dev/null @@ -1,3 +0,0 @@ -{ - "texture": { "blur": true }, "animation": { } -} \ No newline at end of file diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace_orn.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace_orn.png index 1c6766a..4e44464 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace_orn.png and b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMageMace_orn.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMeteorology.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMeteorology.png deleted file mode 100644 index a7d9ef7..0000000 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMeteorology.png and /dev/null differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMeteorology.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMeteorology.png.mcmeta deleted file mode 100644 index 08c3a80..0000000 --- a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMeteorology.png.mcmeta +++ /dev/null @@ -1,3 +0,0 @@ -{ - "texture": { "blur": true }, "animation": { } -} \ No newline at end of file diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMeteorology_depth.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMeteorology_depth.png deleted file mode 100644 index f6e9032..0000000 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMeteorology_depth.png and /dev/null differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMeteorology_depth.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMeteorology_depth.png.mcmeta deleted file mode 100644 index 08c3a80..0000000 --- a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusMeteorology_depth.png.mcmeta +++ /dev/null @@ -1,3 +0,0 @@ -{ - "texture": { "blur": true }, "animation": { } -} \ No newline at end of file diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusShockwave.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusShockwave.png new file mode 100644 index 0000000..12bda0c Binary files /dev/null and b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusShockwave.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusShockwave_depth.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusShockwave_depth.png new file mode 100644 index 0000000..e3a2099 Binary files /dev/null and b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusShockwave_depth.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintedShockwave.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusShockwave_depth.png.mcmeta similarity index 100% rename from src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintedShockwave.png.mcmeta rename to src/main/resources/assets/taintedmagic/textures/items/ItemFocusShockwave_depth.png.mcmeta diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaint.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaint.png deleted file mode 100644 index 7258ee3..0000000 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaint.png and /dev/null differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintSwarm.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintSwarm.png new file mode 100644 index 0000000..3185f8a Binary files /dev/null and b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintSwarm.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusLumos.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintSwarm.png.mcmeta similarity index 100% rename from src/main/resources/assets/taintedmagic/textures/items/ItemFocusLumos.png.mcmeta rename to src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintSwarm.png.mcmeta diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaint_depth.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintSwarm_depth.png similarity index 100% rename from src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaint_depth.png rename to src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintSwarm_depth.png diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaint.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintSwarm_depth.png.mcmeta similarity index 100% rename from src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaint.png.mcmeta rename to src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintSwarm_depth.png.mcmeta diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaint_depth.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaint_depth.png.mcmeta deleted file mode 100644 index 08c3a80..0000000 --- a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaint_depth.png.mcmeta +++ /dev/null @@ -1,3 +0,0 @@ -{ - "texture": { "blur": true }, "animation": { } -} \ No newline at end of file diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintedShockwave.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintedShockwave.png deleted file mode 100644 index cdf2154..0000000 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintedShockwave.png and /dev/null differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintedShockwave_orn.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintedShockwave_orn.png deleted file mode 100644 index 82d0714..0000000 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTaintedShockwave_orn.png and /dev/null differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTime.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTime.png deleted file mode 100644 index 4730849..0000000 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTime.png and /dev/null differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTime.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTime.png.mcmeta deleted file mode 100644 index 08c3a80..0000000 --- a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTime.png.mcmeta +++ /dev/null @@ -1,3 +0,0 @@ -{ - "texture": { "blur": true }, "animation": { } -} \ No newline at end of file diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTime_overlay.png b/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTime_overlay.png deleted file mode 100644 index 7fbef52..0000000 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemFocusTime_overlay.png and /dev/null differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemCrystalDagger.png b/src/main/resources/assets/taintedmagic/textures/items/ItemHollowDagger.png similarity index 100% rename from src/main/resources/assets/taintedmagic/textures/items/ItemCrystalDagger.png rename to src/main/resources/assets/taintedmagic/textures/items/ItemHollowDagger.png diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemLumosRing.png b/src/main/resources/assets/taintedmagic/textures/items/ItemLumosRing.png new file mode 100644 index 0000000..4f8239a Binary files /dev/null and b/src/main/resources/assets/taintedmagic/textures/items/ItemLumosRing.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemLumosRing.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemLumosRing.png.mcmeta new file mode 100644 index 0000000..153310f --- /dev/null +++ b/src/main/resources/assets/taintedmagic/textures/items/ItemLumosRing.png.mcmeta @@ -0,0 +1,3 @@ +{ + "animation": {"frametime": 2} +} \ No newline at end of file diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemMagicFunguar.png b/src/main/resources/assets/taintedmagic/textures/items/ItemMagicFunguar.png index 21e12c4..81b13af 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemMagicFunguar.png and b/src/main/resources/assets/taintedmagic/textures/items/ItemMagicFunguar.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial1.png b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial1.png index 14b13bf..114e7a2 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial1.png and b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial1.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial12.png b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial12.png new file mode 100644 index 0000000..0a4cf6a Binary files /dev/null and b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial12.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial12.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial12.png.mcmeta new file mode 100644 index 0000000..3d7625c --- /dev/null +++ b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial12.png.mcmeta @@ -0,0 +1,6 @@ +{ + "animation": + { + "frametime": 2 + } +} \ No newline at end of file diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial2.png b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial2.png index 200a1c8..23662bb 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial2.png and b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial2.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial7.png b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial7.png index 7ad8143..b2f2c4f 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial7.png and b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial7.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial7.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial7.png.mcmeta deleted file mode 100644 index bd5e709..0000000 --- a/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial7.png.mcmeta +++ /dev/null @@ -1,3 +0,0 @@ -{ -animation: {} -} \ No newline at end of file diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial8.png b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial8.png index 7a86cfd..60a3e8e 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial8.png and b/src/main/resources/assets/taintedmagic/textures/items/ItemMaterial8.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemSalis0.png b/src/main/resources/assets/taintedmagic/textures/items/ItemSalis0.png new file mode 100644 index 0000000..baa2a63 Binary files /dev/null and b/src/main/resources/assets/taintedmagic/textures/items/ItemSalis0.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemSalis0.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemSalis0.png.mcmeta new file mode 100644 index 0000000..d3d6297 --- /dev/null +++ b/src/main/resources/assets/taintedmagic/textures/items/ItemSalis0.png.mcmeta @@ -0,0 +1,4 @@ +{ + "animation": { + "frametime": 2 } +} diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemSalis1.png b/src/main/resources/assets/taintedmagic/textures/items/ItemSalis1.png new file mode 100644 index 0000000..aeb4495 Binary files /dev/null and b/src/main/resources/assets/taintedmagic/textures/items/ItemSalis1.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemSalis1.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemSalis1.png.mcmeta new file mode 100644 index 0000000..d3d6297 --- /dev/null +++ b/src/main/resources/assets/taintedmagic/textures/items/ItemSalis1.png.mcmeta @@ -0,0 +1,4 @@ +{ + "animation": { + "frametime": 2 } +} diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemVoidsentBlood.png b/src/main/resources/assets/taintedmagic/textures/items/ItemVoidsentBlood.png index 99103ea..61f6938 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemVoidsentBlood.png and b/src/main/resources/assets/taintedmagic/textures/items/ItemVoidsentBlood.png differ diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemVoidsentBlood.png.mcmeta b/src/main/resources/assets/taintedmagic/textures/items/ItemVoidsentBlood.png.mcmeta deleted file mode 100644 index bd5e709..0000000 --- a/src/main/resources/assets/taintedmagic/textures/items/ItemVoidsentBlood.png.mcmeta +++ /dev/null @@ -1,3 +0,0 @@ -{ -animation: {} -} \ No newline at end of file diff --git a/src/main/resources/assets/taintedmagic/textures/items/ItemWandCap2.png b/src/main/resources/assets/taintedmagic/textures/items/ItemWandCap2.png index 78721d2..2ca6221 100644 Binary files a/src/main/resources/assets/taintedmagic/textures/items/ItemWandCap2.png and b/src/main/resources/assets/taintedmagic/textures/items/ItemWandCap2.png differ