Particle fixes
This commit is contained in:
parent
3de7d611df
commit
650b2ba68b
2 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@ public class ParticleJungleSpore extends AnimatedParticle {
|
||||||
super(world, x, y, z, sprites, 0);
|
super(world, x, y, z, sprites, 0);
|
||||||
setSprite(sprites.getSprite(random));
|
setSprite(sprites.getSprite(random));
|
||||||
this.maxAge = MHelper.randRange(150, 300, 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.setTargetColor(15916745);
|
||||||
this.setSpriteForAge(spriteProvider);
|
this.setSpriteForAge(spriteProvider);
|
||||||
this.setColorAlpha(0);
|
this.setColorAlpha(0);
|
||||||
|
@ -32,13 +32,13 @@ public class ParticleJungleSpore extends AnimatedParticle {
|
||||||
this.velocityZ = random.nextGaussian() * 0.02;
|
this.velocityZ = random.nextGaussian() * 0.02;
|
||||||
ticks = 0;
|
ticks = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.age < 30) {
|
if (this.age < 30) {
|
||||||
float delta = ticks / 30F;
|
float delta = ticks / 30F;
|
||||||
this.setColorAlpha(delta);
|
this.setColorAlpha(delta);
|
||||||
}
|
}
|
||||||
else if (this.age > this.maxAge - 30) {
|
else if (this.age >= this.maxAge - 30) {
|
||||||
float delta = ticks / 30F;
|
this.setColorAlpha((this.maxAge - this.age) / 30F);
|
||||||
this.setColorAlpha(1 - delta);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.velocityY -= 0.001F;
|
this.velocityY -= 0.001F;
|
||||||
|
|
|
@ -13,7 +13,7 @@ public class BiomeUmbrellaJungle extends EndBiome {
|
||||||
.setWaterAndFogColor(119, 198, 253)
|
.setWaterAndFogColor(119, 198, 253)
|
||||||
.setFoliageColor(27, 183, 194)
|
.setFoliageColor(27, 183, 194)
|
||||||
.setFogDensity(2.3F)
|
.setFogDensity(2.3F)
|
||||||
.setParticles(EndParticles.JUNGLE_SPORE, 0.0001F)
|
.setParticles(EndParticles.JUNGLE_SPORE, 0.0005F)
|
||||||
.setMusic(EndSounds.MUSIC_FOREST)
|
.setMusic(EndSounds.MUSIC_FOREST)
|
||||||
.setSurface(EndBlocks.JUNGLE_MOSS)
|
.setSurface(EndBlocks.JUNGLE_MOSS)
|
||||||
.addFeature(EndFeatures.END_LAKE)
|
.addFeature(EndFeatures.END_LAKE)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue