1

Particle help

Willsr71 4/24/13 6:13 pm
109
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:


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
Posted by
Willsr71
Level 53 : Grandmaster Programmer
197

  Have something to say?

JoinSign in

Welcome