the retexturing, part 1
|
@ -279,7 +279,7 @@ public class PacketParticles implements IMessage {
|
||||||
world.rand.nextGaussian() * 0.01F,
|
world.rand.nextGaussian() * 0.01F,
|
||||||
world.rand.nextFloat() * 0.04F + 0.02F,
|
world.rand.nextFloat() * 0.04F + 0.02F,
|
||||||
world.rand.nextGaussian() * 0.01F,
|
world.rand.nextGaussian() * 0.01F,
|
||||||
0x5ccc30, 1F + world.rand.nextFloat() * 1.5F, 40, 0F, false, true);
|
0xd13308, 1F + world.rand.nextFloat() * 1.5F, 40, 0F, false, true);
|
||||||
break;
|
break;
|
||||||
case 17: // Animal generator consuming
|
case 17: // Animal generator consuming
|
||||||
boolean child = message.data[0] > 0;
|
boolean child = message.data[0] > 0;
|
||||||
|
|
|
@ -48,15 +48,15 @@ public class ParticleMagic extends Particle {
|
||||||
this.prevPosZ = this.posZ;
|
this.prevPosZ = this.posZ;
|
||||||
|
|
||||||
this.particleAge++;
|
this.particleAge++;
|
||||||
if (this.particleAge >= this.particleMaxAge) {
|
if (this.particleAge > this.particleMaxAge) {
|
||||||
this.setExpired();
|
this.setExpired();
|
||||||
} else {
|
} else {
|
||||||
this.motionY -= 0.04D * (double) this.particleGravity;
|
this.motionY -= 0.04D * (double) this.particleGravity;
|
||||||
this.move(this.motionX, this.motionY, this.motionZ);
|
this.move(this.motionX, this.motionY, this.motionZ);
|
||||||
|
|
||||||
float lifeRatio = (float) this.particleAge / (float) this.particleMaxAge;
|
float lifeRatio = (float) this.particleAge / (float) this.particleMaxAge;
|
||||||
if (this.fade)
|
if (this.fade && lifeRatio > 0.75F)
|
||||||
this.particleAlpha = 1F - lifeRatio * 0.75F;
|
this.particleAlpha = 1F - (lifeRatio - 0.75F) / 0.25F;
|
||||||
if (lifeRatio <= 0.25F)
|
if (lifeRatio <= 0.25F)
|
||||||
this.particleScale = this.desiredScale * (lifeRatio / 0.25F);
|
this.particleScale = this.desiredScale * (lifeRatio / 0.25F);
|
||||||
else if (this.fade)
|
else if (this.fade)
|
||||||
|
|
Before Width: | Height: | Size: 587 B After Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 455 B After Width: | Height: | Size: 393 B |
Before Width: | Height: | Size: 440 B After Width: | Height: | Size: 522 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 764 B |
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 790 B |
Before Width: | Height: | Size: 526 B After Width: | Height: | Size: 600 B |
Before Width: | Height: | Size: 625 B After Width: | Height: | Size: 550 B |