Particle fixes

This commit is contained in:
paulevsGitch 2020-12-29 20:28:33 +03:00
parent 3de7d611df
commit 650b2ba68b
2 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ public class ParticleJungleSpore extends AnimatedParticle {
super(world, x, y, z, sprites, 0);
setSprite(sprites.getSprite(random));
this.maxAge = MHelper.randRange(150, 300, random);
this.scale = MHelper.randRange(0.05F, 0.1F, random);
this.scale = MHelper.randRange(0.05F, 0.15F, random);
this.setTargetColor(15916745);
this.setSpriteForAge(spriteProvider);
this.setColorAlpha(0);
@ -32,13 +32,13 @@ public class ParticleJungleSpore extends AnimatedParticle {
this.velocityZ = random.nextGaussian() * 0.02;
ticks = 0;
}
if (this.age < 30) {
float delta = ticks / 30F;
this.setColorAlpha(delta);
}
else if (this.age > this.maxAge - 30) {
float delta = ticks / 30F;
this.setColorAlpha(1 - delta);
else if (this.age >= this.maxAge - 30) {
this.setColorAlpha((this.maxAge - this.age) / 30F);
}
this.velocityY -= 0.001F;

View file

@ -13,7 +13,7 @@ public class BiomeUmbrellaJungle extends EndBiome {
.setWaterAndFogColor(119, 198, 253)
.setFoliageColor(27, 183, 194)
.setFogDensity(2.3F)
.setParticles(EndParticles.JUNGLE_SPORE, 0.0001F)
.setParticles(EndParticles.JUNGLE_SPORE, 0.0005F)
.setMusic(EndSounds.MUSIC_FOREST)
.setSurface(EndBlocks.JUNGLE_MOSS)
.addFeature(EndFeatures.END_LAKE)