Re: [0.4.11] Meshnodes, mapgen “v5”, other recent developmen
Posted: Wed Dec 10, 2014 03:55
Two new features for the mgv5, mgv7 biome API (not mgv6):
^ These lines can be used in a mod to clear any previously registered biomes, decorations and ores. Once i create the default set of biomes for mgv5, mgv7 these lines can be used in a mod to clear those just before you register your own, or if you don't register new biomes, decorations and ores this will reduce mgv5, mgv7 to base terrain (stone, air and water only) so you can continue to use paragenv7 or whatever mod requires base terrain.
Of course you can choose which of these lines to use to clear what you choose to clear, for example many players will be happy with the default ores so can leave those as default.
^ These lines can now be added to minetest.conf to set the heat and humidity noise parameters. These are examples of the new superior 'group format' for noise parameters, however the single line format will be supported for a while.
The 3 numbers in brackets are the 'spread' of heat and humidity in nodes (the largest scale structure in the noise variation), these need to be increased if you have a lot of biomes, to avoid tiny biomes and narrow biome stripes.
***** Please note the default heat and humidity noise parameters have now changed, the persistences have been reduced to 0.5. If you are using the biome API and have a set of registered biomes, for biome continuity in your mgv5 or mgv7 world you will need to set the old defaults through minetest.conf:
However the new parameters should create a better pattern of biomes so i recommend using the new defaults if you can, and if starting a new world.
Code: Select all
minetest.clear_registered_biomes()
minetest.clear_registered_decorations()
minetest.clear_registered_ores()
Of course you can choose which of these lines to use to clear what you choose to clear, for example many players will be happy with the default ores so can leave those as default.
Code: Select all
mg_biome_np_heat = {
offset = 50
scale = 50
spread = (500.0, 500.0, 500.0)
seed = 5349
octaves = 3
persistence = 0.5
}
mg_biome_np_humidity = {
offset = 50
scale = 50
spread = (500.0, 500.0, 500.0)
seed = 842
octaves = 3
persistence = 0.5
}
The 3 numbers in brackets are the 'spread' of heat and humidity in nodes (the largest scale structure in the noise variation), these need to be increased if you have a lot of biomes, to avoid tiny biomes and narrow biome stripes.
***** Please note the default heat and humidity noise parameters have now changed, the persistences have been reduced to 0.5. If you are using the biome API and have a set of registered biomes, for biome continuity in your mgv5 or mgv7 world you will need to set the old defaults through minetest.conf:
Code: Select all
mg_biome_np_heat = {
offset = 50
scale = 50
spread = (500.0, 500.0, 500.0)
seed = 5349
octaves = 3
persistence = 0.7
}
mg_biome_np_humidity = {
offset = 50
scale = 50
spread = (500.0, 500.0, 500.0)
seed = 842
octaves = 3
persistence = 0.55
}