if (density < 0) {
py = y + 2.10D;
}
if (rand.nextInt(20) == 0 && world.isSideSolid(x, y + densityDir, z, densityDir == -1 ? ForgeDirection.UP : ForgeDirection.DOWN)
&& !world.getBlock(x, y + 2 * densityDir, z).getMaterial().blocksMovement()) {
EntityFX fx = new EntityDropParticleFX(world, px, py, pz, particleRed, particleGreen, particleBlue, densityDir);
FMLClientHandler.instance().getClient().effectRenderer.addEffect(fx);
}
}