Difference between revisions of "mg flags"

From Minetest Developer Wiki
Jump to navigation Jump to search
(remove outdated info and point to minetest.conf.example instead)
 
Line 2: Line 2:
 
The map generator will generate a world according to the mapgen flags that are set for it.<br>
 
The map generator will generate a world according to the mapgen flags that are set for it.<br>
 
The general flags are shown below, and each generator may have its own special flags.
 
The general flags are shown below, and each generator may have its own special flags.
Currently supported map generators are: v5, v6, v7, valleys, carpathian, fractal, flat, singlenode. The map generator is selected in [[minetest.conf]] by setting mg_name.<br>
+
 
In Mapgen v6 the 'decorations' flag controls all decorations except trees and junglegrass, in all other mapgens this flag controls all decorations.
 
 
Flags that are not enabled are not modified from the default.  
 
Flags that are not enabled are not modified from the default.  
 
Flags starting with 'no' are used to explicitly disable them.
 
Flags starting with 'no' are used to explicitly disable them.
  
This is a list of currently supported general flags:
+
For more information and possible values please see [https://github.com/minetest/minetest/blob/master/minetest.conf.example minetest.conf.example]
 
 
* '''caves''': generate caves
 
* '''dungeons''': generate dungeons
 
* '''light''': generate lighting
 
* '''decorations''': generate decorations
 
* '''biomes''': generate biomes
 
 
 
They are set in [[minetest.conf]] before creating a new world.
 
 
 
An example configuration (the default):
 
* mg_flags = caves,dungeons,light,decorations,biomes
 
For a totally flat world without any holes:
 
* mg_flags = nocaves,nodungeons,light,nodecorations,biomes and use the flat mapgen
 
 
[[Category:Mapgen]]
 
[[Category:Mapgen]]
 
[[Category:Settings and Commands]]
 
[[Category:Settings and Commands]]

Latest revision as of 08:27, 25 October 2022

The map generator will generate a world according to the mapgen flags that are set for it.
The general flags are shown below, and each generator may have its own special flags.

Flags that are not enabled are not modified from the default. Flags starting with 'no' are used to explicitly disable them.

For more information and possible values please see minetest.conf.example