Not sure why these particles are not spawning.
public boolean FireParticleEffect(EntityLivingBase target)
{
World world = target.getEntityWorld();
for(int countparticles = 0; countparticles <= 7 * this.level / 2; ++countparticles)
{
Random rand = new Random();
world.spawnParticle(EnumParticleTypes.FLAME, target.posX + (rand.nextDouble() - 0.5D) * (double)target.width, target.posY + rand.nextDouble() * (double)target.height - (double)target.getYOffset(), target.posZ + (rand.nextDouble() - 0.5D) * (double)target.width, 0.0D, 0.0D,0.0D);
}
for(int countparticles = 0; countparticles <= 20 * this.level / 2; ++countparticles)
{
Random rand = new Random();
world.spawnParticle(EnumParticleTypes.LAVA, target.posX + (rand.nextDouble() - 0.5D) * (double)target.width, target.posY + rand.nextDouble() * (double)target.height - (double)target.getYOffset(), target.posZ + (rand.nextDouble() - 0.5D) * (double)target.width, 0.0D, 0.0D,0.0D);
}
return true;
}
Any ideas?