Tweaked some settings with the dandelion particles

This commit is contained in:
Matt Caughey 2013-05-16 20:36:06 -04:00
parent 1932613880
commit 1bb2bc96cb
7 changed files with 8 additions and 7 deletions

View File

@ -38,7 +38,7 @@ public class ClientProxy extends CommonProxy {
else if (string == "dart")
entityfx = new EntityBreakingFX(mc.theWorld, x, y, z, Items.dart.get(), mc.renderEngine);
else if (string == "dandelion")
entityfx = new EntityDandelionFX(mc.theWorld, x, y, z, 1.0F);
entityfx = new EntityDandelionFX(mc.theWorld, x, y, z, 2.0F);
mc.effectRenderer.addEffect(entityfx);
}

View File

@ -88,9 +88,9 @@ public class ItemBOPFlower extends ItemBlock
if (par1ItemStack.getItemDamage() == 15) {
Vec3 vec = par3EntityPlayer.getLookVec();
for (int p = 0; p < 20; ++p)
for (int p = 0; p < 32; ++p)
{
BiomesOPlenty.proxy.spawnParticle("dandelion", par3EntityPlayer.posX + vec.xCoord, par3EntityPlayer.posY + vec.yCoord + par3EntityPlayer.getEyeHeight(), par3EntityPlayer.posZ + vec.zCoord);
BiomesOPlenty.proxy.spawnParticle("dandelion", par3EntityPlayer.posX + (vec.xCoord / 2), par3EntityPlayer.posY + (vec.yCoord / 2) + par3EntityPlayer.getEyeHeight(), par3EntityPlayer.posZ + (vec.zCoord / 2));
};
par3EntityPlayer.setItemInUse(par1ItemStack, this.getMaxItemUseDuration(par1ItemStack));

View File

@ -18,12 +18,12 @@ public class EntityDandelionFX extends EntityFX {
public EntityDandelionFX(World par1World, double par2, double par4, double par6, float par8)
{
super(par1World, par2, par4, par6, 0.0D, 0.0D, 0.0D);
this.motionX *= 0.10000000149011612D;
this.motionX *= 0.20000000149011612D;
this.motionY *= 0.10000000149011612D;
this.motionZ *= 0.10000000149011612D;
this.motionZ *= 0.20000000149011612D;
float f4 = (float)Math.random() * 0.4F + 0.6F;
this.particleScale *= 0.75F;
this.particleScale *= 0.25F;
this.particleScale *= par8;
this.particleMaxAge = (int)(8.0D / (Math.random() * 0.8D + 0.2D));
this.particleMaxAge = (int)((float)this.particleMaxAge * par8);
@ -56,7 +56,8 @@ public class EntityDandelionFX extends EntityFX {
float var13 = (float)(this.prevPosX + (this.posX - this.prevPosX) * par2 - EntityFX.interpPosX);
float var14 = (float)(this.prevPosY + (this.posY - this.prevPosY) * par2 - EntityFX.interpPosY);
float var15 = (float)(this.prevPosZ + (this.posZ - this.prevPosZ) * par2 - EntityFX.interpPosZ);
float var16 = 1.2F - (float)Math.random() * 0.5F;
//float var16 = 1.2F - (float)Math.random() * 0.5F;
float var16 = 1.2F * 0.5F;
par1Tessellator.setColorRGBA_F(this.particleRed * var16, this.particleGreen * var16, this.particleBlue * var16, 1.0F);
par1Tessellator.addVertexWithUV(var13 - par3 * sizeFactor - par6 * sizeFactor, var14 - par4 * sizeFactor, var15 - par5 * sizeFactor - par7 * sizeFactor, 0.0D, 1.0D);
par1Tessellator.addVertexWithUV(var13 - par3 * sizeFactor + par6 * sizeFactor, var14 + par4 * sizeFactor, var15 - par5 * sizeFactor + par7 * sizeFactor, 1.0D, 1.0D);

Binary file not shown.

After

Width:  |  Height:  |  Size: 885 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 B

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 330 B

After

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 B

After

Width:  |  Height:  |  Size: 328 B