diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-05-01 13:28:58 +0100 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-05-01 13:28:58 +0100 |
| commit | 1bc1ebefb87e2ea3d29780f54f32bf95b24a6d80 (patch) | |
| tree | b00fda04806f17e9a84c515cdbf561ef4fca6e90 /src/main/java/darkknight/jewelrycraft/tileentity/TileEntityShadowEye.java | |
| parent | c19aeae6ae51ca9019f8051f83ab7eb52f4a1608 (diff) | |
- Made the ritual even better
- Fixed a type where the "Thieving Gloves" were named "Thiefing Gloves"
- Fixed the world from crashing when entering one
- Changed Flaming Soul Curse to set players on fire when they attack something, rather than randomly
- Player no longer gets blinded when the ritual starts
- The ritual now creates a sphere of darkness around it
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/tileentity/TileEntityShadowEye.java')
| -rw-r--r-- | src/main/java/darkknight/jewelrycraft/tileentity/TileEntityShadowEye.java | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityShadowEye.java b/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityShadowEye.java index 1e56431..887b17f 100644 --- a/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityShadowEye.java +++ b/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityShadowEye.java @@ -1,6 +1,8 @@ package darkknight.jewelrycraft.tileentity; import java.util.ArrayList; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayer; @@ -11,6 +13,7 @@ import net.minecraft.network.NetworkManager; import net.minecraft.network.Packet; import net.minecraft.network.play.server.S35PacketUpdateTileEntity; import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.ChatComponentText; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.ResourceLocation; @@ -127,13 +130,8 @@ public class TileEntityShadowEye extends TileEntity for(float x = -din; x <= din; x += 0.2F) for(float z = -din; z <= din; z += 0.2F) if (x * x + z * z >= din * din - 1 && x * x + z * z <= din * din + 1) Minecraft.getMinecraft().effectRenderer.addEffect(new EntityShadowsFX(worldObj, xCoord + x + 0.5F, yCoord - 0.5F, zCoord + z + 0.5F, 15F, 0.04F - 0.01F * i, particleTexture)); - for(int l = 0; l <= 2 - i; l++) - worldObj.spawnParticle("depthsuspend", xCoord + 6.5F - worldObj.rand.nextInt(9) - worldObj.rand.nextFloat(), yCoord - 2F + worldObj.rand.nextFloat(), zCoord + 6.5F - worldObj.rand.nextInt(9) - worldObj.rand.nextFloat(), 0, 0, 0); - for(Object player: worldObj.getEntitiesWithinAABB(EntityPlayer.class, getRenderBoundingBox().expand(10D, 10D, 10D))) - if (player != null){ - NBTTagCompound persistTag = PlayerUtils.getModPlayerPersistTag((EntityPlayer)player, Variables.MODID); - persistTag.setBoolean("nearStartedRitual", true); - } + for(int l = 0; l <= 100 - i*45; l++) + worldObj.spawnParticle("depthsuspend", xCoord + 6.5F - worldObj.rand.nextInt(12) - worldObj.rand.nextFloat(), yCoord - 2F + worldObj.rand.nextInt(9) - worldObj.rand.nextFloat(), zCoord + 6.5F - worldObj.rand.nextInt(12) - worldObj.rand.nextFloat(), 0, 0, 0); } } @@ -371,6 +369,13 @@ public class TileEntityShadowEye extends TileEntity }else if (pedestal != null && target != null) JewelrycraftUtil.addCursePoints(target, 20); } + @SideOnly(Side.CLIENT) + public AxisAlignedBB getRenderBoundingBox() + { + AxisAlignedBB bb = AxisAlignedBB.getBoundingBox(xCoord - 5.5D, yCoord - 5.5D, zCoord - 5.5D, xCoord + 5.5D, yCoord + 5.5D, zCoord + 5.5D); + return bb; + } + /** * @return */ |
