This commit is contained in:
paulevsGitch 2020-11-01 20:01:21 +03:00
parent 6362c2f85a
commit 1fd085b331
2 changed files with 12 additions and 2 deletions

View file

@ -71,7 +71,6 @@ public class MusicTrackerMixin {
if (this.current == null && this.timeUntilNextSong-- <= 0) { if (this.current == null && this.timeUntilNextSong-- <= 0) {
this.play(musicSound); this.play(musicSound);
} }
System.out.println(volume);
info.cancel(); info.cancel();
} }
else { else {

View file

@ -108,8 +108,19 @@ public class LacugroveFeature extends DefaultFeature {
sphere = new SDFDisplacement().setFunction((vec) -> { return (float) noise.eval(vec.getX() * 0.2, vec.getY() * 0.2, vec.getZ() * 0.2) * 3; }).setSource(sphere); sphere = new SDFDisplacement().setFunction((vec) -> { return (float) noise.eval(vec.getX() * 0.2, vec.getY() * 0.2, vec.getZ() * 0.2) * 3; }).setSource(sphere);
sphere = new SDFDisplacement().setFunction((vec) -> { return random.nextFloat() * 3F - 1.5F; }).setSource(sphere); sphere = new SDFDisplacement().setFunction((vec) -> { return random.nextFloat() * 3F - 1.5F; }).setSource(sphere);
sphere = new SDFSubtraction().setSourceA(sphere).setSourceB(new SDFTranslate().setTranslate(0, -radius - 2, 0).setSource(sphere)); sphere = new SDFSubtraction().setSourceA(sphere).setSourceB(new SDFTranslate().setTranslate(0, -radius - 2, 0).setSource(sphere));
sphere.setPostProcess((info) -> {
if (random.nextInt(5) == 0) {
for (Direction dir: Direction.values()) {
BlockState state = info.getState(dir, 2);
if (state.isAir()) {
return info.getState();
}
}
return EndBlocks.LACUGROVE.bark.getDefaultState();
}
return info.getState();
});
sphere.fillRecursiveIgnore(world, pos, IGNORE); sphere.fillRecursiveIgnore(world, pos, IGNORE);
//sphere.fillArea(world, pos, new Box(pos).expand(radius));
if (radius > 5) { if (radius > 5) {
int count = (int) (radius * 2.5F); int count = (int) (radius * 2.5F);