Difference between revisions of "mg flags"

From Minetest Developer Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
{{DISPLAYTITLE:mg_flags}}
 
{{DISPLAYTITLE:mg_flags}}
The map generator will generate a world according to the mapgen flags that are set for it.
+
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.
 +
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 starting with 'no' are used to explicitly disable them.
  
This is a list of currently supported flags:
+
This is a list of currently supported general flags:
  
* '''trees''': generate trees
 
 
* '''caves''': generate caves
 
* '''caves''': generate caves
* '''v6_biome_blend''': blur out biome edges
 
* '''v6_jungles''': generate jungles
 
 
* '''dungeons''': generate dungeons
 
* '''dungeons''': generate dungeons
* '''flat''': make a completely flat map
+
* '''light''': generate lighting
 +
* '''decorations''': generate decorations
 +
* '''biomes''': generate biomes
  
They are set in minetest.conf before creating a new world.
+
They are set in [[minetest.conf]] before creating a new world.
  
 
An example configuration (the default):
 
An example configuration (the default):
  mg_flags = trees, caves, v6_biome_blend
+
* 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]]

Revision as of 17:58, 13 February 2019

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. 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.
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 starting with 'no' are used to explicitly disable them.

This is a list of currently supported general flags:

  • 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