@SideOnly(Side.CLIENT) private void doParticle() { Pos3D pos = new Pos3D(posX + (rand.nextFloat()*.6 - 0.3), posY - 0.8 + (rand.nextFloat()*.6 - 0.3), posZ + (rand.nextFloat()*.6 - 0.3)); EntityFX fx = new EntityReddustFX(worldObj, pos.xPos, pos.yPos, pos.zPos, 1, 0, 0, 0); fx.setRBGColorF(color.getColor(0), color.getColor(1), color.getColor(2)); Minecraft.getMinecraft().effectRenderer.addEffect(fx); }
@Override public void glowRandomDisplayTick(World world, int x, int y, int z, Random rand) { FarragoMod.GLOW.setBlockBoundsBasedOnState(world, x, y, z); float x1 = (float) FarragoMod.GLOW.getBlockBoundsMinX(); float y1 = (float) FarragoMod.GLOW.getBlockBoundsMinY(); float z1 = (float) FarragoMod.GLOW.getBlockBoundsMinZ(); float x2 = (float) FarragoMod.GLOW.getBlockBoundsMaxX(); float y2 = (float) FarragoMod.GLOW.getBlockBoundsMaxY(); float z2 = (float) FarragoMod.GLOW.getBlockBoundsMaxZ(); for (int i = 0; i < rand.nextInt(10)+5; i++) { Minecraft.getMinecraft().effectRenderer.addEffect(new EntityReddustFX(world, x+(x1+(rand.nextFloat()*(x2-x1))), y+(y1+(rand.nextFloat()*(y2-y1))), z+(z1+(rand.nextFloat()*(z2-z1))), 0.6f, 1.0f, 1.0f, 0.0f)); } }