x += (r.nextBoolean() ? 2 : -2) * r.nextFloat();
y += (r.nextBoolean() ? 2 : -2) * r.nextFloat();
z += (r.nextBoolean() ? 2 : -2) * r.nextFloat();
}
EntityFX particle = Minecraft.getMinecraft().renderGlobal.doSpawnParticle(name, x, y, z, motion.getX(), motion.getY(), motion.getZ());
if (particle != null) {
if (scale > 0) {
particle.particleScale = scale;
}
particle.particleGravity = gravity;