Changed default zone size to 2000x600 blocks

This commit is contained in:
kuroppoi 2022-01-28 00:16:57 +01:00
parent a10f2d04b2
commit 2a3c30d777
4 changed files with 5 additions and 5 deletions

View file

@ -19,7 +19,7 @@ public class GenerateZoneCommand extends Command {
public void execute(CommandExecutor executor, String[] args) {
Biome biome = Biome.getRandomBiome();
int width = 2000;
int height = 800;
int height = 600;
int seed = (int)(Math.random() * Integer.MAX_VALUE);
if(args.length > 0 && args.length < 2) {

View file

@ -924,8 +924,8 @@ public class Zone {
earth.add(Arrays.asList(height * 0.9, "ground/earth-deepest"));
}
earth.add(Arrays.asList(height * 0.7, "ground/earth-deeper"));
earth.add(Arrays.asList(height * 0.45, "ground/earth-deep"));
earth.add(Arrays.asList(height * 0.75, "ground/earth-deeper"));
earth.add(Arrays.asList(height * 0.6, "ground/earth-deep"));
depth.put("ground/earth", earth);
} else {
String key = biome == Biome.PLAIN ? "temperate" : biome.getId();

View file

@ -46,7 +46,7 @@ public class ZoneManager {
if(zones.isEmpty()) {
logger.info("No zones were loaded. Generating default zone ...");
Zone zone = StaticZoneGenerator.generateZone(Biome.PLAIN, 2000, 800);
Zone zone = StaticZoneGenerator.generateZone(Biome.PLAIN, 2000, 600);
saveZone(zone);
putZone(zone);
} else {

View file

@ -22,7 +22,7 @@ public class TerrainGenerator implements GeneratorTask {
if(surface) {
PerlinNoise noise = new PerlinNoise(ctx.getSeed());
int surfaceLevel = height < 800 ? height / 4 : 200;
int surfaceLevel = height < 600 ? height / 3 : 200;
double amplitude = ctx.nextDouble() * 40 + (80 - 40);
for(int x = 0; x < width; x++) {