This commit is contained in:
paulevsGitch 2020-12-04 16:00:38 +03:00
parent cec37f10d6
commit 31ced5c19d
2 changed files with 2 additions and 7 deletions

View file

@ -18,9 +18,6 @@ public class ParticleGeyser extends SpriteBillboardParticle {
setSprite(sprites); setSprite(sprites);
this.maxAge = MHelper.randRange(600, 1200, random); this.maxAge = MHelper.randRange(600, 1200, random);
this.scale = MHelper.randRange(0.5F, 1.0F, random); this.scale = MHelper.randRange(0.5F, 1.0F, random);
this.velocityX = vx;
this.velocityY = vy;
this.velocityY = vz;
} }
@Override @Override
@ -28,8 +25,6 @@ public class ParticleGeyser extends SpriteBillboardParticle {
if (this.age >= this.maxAge + 40) { if (this.age >= this.maxAge + 40) {
this.setColorAlpha((this.maxAge - this.age) / 40F); this.setColorAlpha((this.maxAge - this.age) / 40F);
} }
//this.velocityX = 0;
//this.velocityZ = 0;
this.velocityY = 0.125; this.velocityY = 0.125;
super.tick(); super.tick();
} }

View file

@ -148,8 +148,8 @@ public class GeyserFeature extends DefaultFeature {
mut.setY(mut.getY() + 1); mut.setY(mut.getY() + 1);
} }
for (int i = 0; i < 30; i++) { for (int i = 0; i < 50; i++) {
mut.set(pos).add(random.nextGaussian() * 2, -halfHeight - 10, random.nextGaussian() * 2); mut.set(pos).add(random.nextGaussian() * 4, -halfHeight - 10, random.nextGaussian() * 4);
int dist = MHelper.floor(6 - MHelper.length(mut.getX() - pos.getX(), mut.getZ() - pos.getZ())) + random.nextInt(2); int dist = MHelper.floor(6 - MHelper.length(mut.getX() - pos.getX(), mut.getZ() - pos.getZ())) + random.nextInt(2);
BlockState state = world.getBlockState(mut); BlockState state = world.getBlockState(mut);
while (state.isOf(Blocks.WATER)) { while (state.isOf(Blocks.WATER)) {