Biomes O' Plenty

Biomes O' Plenty

151M Downloads

[1.12.2] Settings for World Creation

Skaphegor opened this issue ยท 20 comments

commented

Before creating a world the second setting page is completly empty. Where are the options gone, e.g. lake density?

commented

It is mentioned in #623 that it will be implemented and it is currently a placeholder.

Yet the wiki is lacking any information about the currently available settings, I'm trying to figure them out by trial and error and some googling but the Github wiki should definitively be updated with them even if all the pages aren't completed yet.

commented

I try to create a world with less lakes because I think there are to much. If JourneyMap is installed you can a landscape looking like a cheese.

commented

Does anyone know where the world settings are stored? I'm wanting to use them on a server but I'm unsure how to do that. I feel like if I start the world on my local computer with the settings and upload it to the server that might work, if the settings are being stored and respected somewhere within the world's files.

commented

They are stored in the .jar. There is no way changing settings without compiling a new .jar and changing the source code.

commented

You should be able to put the settings into the file config/biomesoplenty/world.json and they will be loaded when you start Minecraft. The file doesn't exist by default, so you will have to create it yourself.

The format is identical to the string you would use in generator-settings in the server.properties file for a dedicated server.

Example:

{
    "landScheme":"vanilla",
    "tempScheme":"medium_zones",
    "rainScheme":"medium_zones",
    "biomeSize":"medium",
    "amplitude":1.0,
    "generateBopOre":true,
    "generatePoisonIvy":true,
    "generateFlax":true,
    "generateBerryBushes":true,
    "generateThorns":true,
    "generateQuicksand":true,
    "generateLiquidPoison":true,
    "generateHotSprings":true,
    "generateNetherHives":true,
    "generateEndFeatures":true
}
commented

I only gave you an example of the settings that are unique to BoP. Most of the vanilla settings should still exist and can be added to the world.json file in the same manner.

You want to use waterLakeChance, which works in the BIOMESOP world type according to:

// add water lakes
if (Biome.getRainfall() > 0.01F && Biome != Biomes.DESERT && Biome != Biomes.DESERT_HILLS && this.settings.useWaterLakes && !hasVillageGenerated && this.rand.nextInt(this.settings.waterLakeChance) == 0 && TerrainGen.populate(this, world, rand, chunkX, chunkZ, hasVillageGenerated, LAKE))
{
target = decorateStart.add(this.rand.nextInt(16), this.rand.nextInt(256), this.rand.nextInt(16));
(new WorldGenLakes(Blocks.WATER)).generate(this.world, this.rand, target);
}

commented

@Sanofus For such fine tuning you better look over Open Terrain Generator which is more suited for tweaking world gen to the last bit.

commented

That are not the settings I am looking for. I seek the settings for lake density like for the custom world type of vanilla minecraft. If that does not exist that should be created as request for adding this.

commented

@srs-bsns That only shows the BOP source code. That did not explain what I have to add to the world.json.

@maxride No, to change only one setting that is available in vanilla no mod should be required.

commented

I will try to add "waterLakeChance":60 to world.json.

commented

That only shows the BOP source code. That did not explain what I have to add to the world.json.

Sorry, I thought I made it clear in my last message. All you need to do is add the vanilla setting to the world.json file and it should work. I only referenced the source to show that it actually used the setting.

This is all you need:

{
    "waterLakeChance":60
}
commented

Does this have to be in a separate section? I added:

"waterLakeChance":70,
"seaLevel":2 // just to test if setting is respected
to the world.json.
Both of them weren't respected as the world was created.
https://pastebin.com/05QUpzTb

commented

@srs-bsns It seems that the world.json is not able to change vanilla settings but if you add the same to the server.properties it will be applied. Is that a bug or hasn't this been a feature?

commented

The settings in server.properties are applied differently on a dedicated server and it is obviously no help on the client for single-player.
Everything is in place to load settings from the world.json file, so I'm not sure why it's not working. I am not a developer of BoP, so you will have to ask them.

commented

@maxiride Unfortunately OTG is compatible with BOP. It shows a warning if BOP is installed.

@Forstride could tell us more maybe?

commented

Unfortunately, by looking at the code, only the height and noise variations are configurable alongside the BOP options in said world.json file.

I'm not sure why they didn't just add the extra few lines to set the other vanilla options.

https://github.com/Glitchfiend/BiomesOPlenty/blob/BOP-1.12.x-7.0.x/src/main/java/biomesoplenty/common/world/BOPWorldSettings.java

commented

// Vanilla properties - not configurable (yet) but included for consistency with vanilla ChunkProviderSettings

This seems to be the responsible line. I will look into the code again but I assume that it has technically reason that there are not a few lines more. Maybe the game prevents changing its values if the world type is not set to CUSTOM. But it might also be that it is just a forgotten task.

commented

i need sealevel for my modpack :/

commented

Duplicate of #623

commented

BoP NEED a good config by Default, this 3 options atm is not enough.