1

Particle help

Willsr71's Avatar Willsr714/24/13 6:13 pm
1 emeralds 84
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's Avatar
Willsr71
Level 53 : Grandmaster Programmer
197

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome