How to emulate mapgen v6 using a customised mapgen v7

From Minetest
Revision as of 08:43, 6 June 2020 by >Wuzzy (Wuzzy moved page How to emulate Mapgen v6 using a customised Mapgen v7 to How to emulate mapgen v6 using a customised mapgen v7: Capitalization)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Some players like aspects of Mapgen v6, but the biomes are hardcoded so it lacks many of the biomes defined in games such as Minetest Game. It is also very different from the other mapgens in how it works and is more difficult to support in games.

It is actually possible to approximately emulate Mapgen v6 in Mapgen v7 using customised settings. This is only possible in Minetest 5.2.0 or later due to the “randomwalk” caves now being more configurable, allowing Mapgen v7 to have caves like in Mapgen v6.

How to emulate mapgen v6

First, copy and paste the lines below into your minetest.conf file before starting a new Mapgen v7 world:

mgv7_spflags = nomountains, noridges, nofloatlands, nocaverns
mgv7_cave_width = 10
mgv7_large_cave_depth = 47
mgv7_small_cave_num_min = 24
mgv7_small_cave_num_max = 24
mgv7_large_cave_num_min = 2
mgv7_large_cave_num_max = 2
mgv7_np_terrain_base = {
  offset = 21.0,
  scale = 16.0,
  spread = (500, 500, 500),
  seed = 85039,
  octaves = 5,
  persistence = 0.6,
  lacunarity = 2.0,
  flags = eased
}
mgv7_np_terrain_alt = {
  offset = -3.0,
  scale = 20.0,
  spread = (250, 250, 250),
  seed = 82341,
  octaves = 5,
  persistence = 0.6,
  lacunarity = 2.0,
  flags = eased
}
mgv7_np_terrain_persist = {
  offset = 0.6,
  scale = 0.0,
  spread = (2000, 2000, 2000),
  seed = 539,
  octaves = 1,
  persistence = 0.6,
  lacunarity = 2.0,
  flags = eased
}
mgv7_np_height_select = {
  offset = -19.5,
  scale = 100.0,
  spread = (250, 250, 250),
  seed = 4213,
  octaves = 5,
  persistence = 0.69,
  lacunarity = 2.0,
  flags = eased
}
mgv7_np_filler_depth = {
  offset = 4.0,
  scale = 2.0,
  spread = (200, 200, 200),
  seed = 91013,
  octaves = 3,
  persistence = 0.55,
  lacunarity = 2.0,
  flags = eased
}

Or you can set these parameters manually in the “All Settings” menu, but that will take much longer to do.

Then just create a new v7 world. Old v7 worlds will not be affected.

If you want to return to normal, just delete these lines from minetest.conf again.

Limitations

The emulation is only approximate, it differs in the following ways:

  • There is no “mudflow” erosion
  • The cliff/slope transitions between the lowland and highland do not have a wide range of steepnesses, they are now all steep cliffs
  • The number of small and large caves per mapchunk is fixed and not varied by noise or biome
  • Using the same world seed as a Mapgen v6 world will probably not result in hills, lakes, cliffs, caves, dungeons etc. being in the same locations, even though the character and elements of the mapgen will be similar
  • When using Minetest Game, lava is found below Y = -256 and ores are deeper, just like all non-v6 mapgens

Note: This page is based on a forum post by paramat.