I am trying to add particles to an entity. I want them to be constant like the redstone particles but I always get errors when recompiling. Note: I am trying to apply them to an entity if that makes any difference.
Here is what I have currently:
-W
Here is what I have currently:
int var9 = 0;
for (int var9 = 0)
{
float var4 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width * 0.5F;
float var5 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width * 0.5F;
this.worldObj.spawnParticle("reddust", this.posX + (double)var4, (double)(var1 + 0.8F), this.posZ + (double)var5, this.motionX, this.motionY, this.motionZ);
}
-W
Create an account or sign in to comment.