mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
lua_api.txt, settingtypes.txt: Various improvements (#8252)
This commit is contained in:
parent
187519407b
commit
6e7ba366fc
@ -1328,7 +1328,7 @@ profiler_print_interval (Engine profiling data print interval) int 0
|
|||||||
# Name of map generator to be used when creating a new world.
|
# Name of map generator to be used when creating a new world.
|
||||||
# Creating a world in the main menu will override this.
|
# Creating a world in the main menu will override this.
|
||||||
# Current stable mapgens:
|
# Current stable mapgens:
|
||||||
# v5, v6, v7 (except floatlands), flat, singlenode.
|
# v5, v6, v7 (except floatlands), singlenode.
|
||||||
# 'stable' means the terrain shape in an existing world will not be changed
|
# 'stable' means the terrain shape in an existing world will not be changed
|
||||||
# in the future. Note that biomes are defined by games and may still change.
|
# in the future. Note that biomes are defined by games and may still change.
|
||||||
mg_name (Mapgen name) enum v7 v5,v6,v7,valleys,carpathian,fractal,flat,singlenode
|
mg_name (Mapgen name) enum v7 v5,v6,v7,valleys,carpathian,fractal,flat,singlenode
|
||||||
@ -1347,8 +1347,6 @@ mapgen_limit (Map generation limit) int 31000 0 31000
|
|||||||
# Global map generation attributes.
|
# Global map generation attributes.
|
||||||
# In Mapgen v6 the 'decorations' flag controls all decorations except trees
|
# In Mapgen v6 the 'decorations' flag controls all decorations except trees
|
||||||
# and junglegrass, in all other mapgens this flag controls all decorations.
|
# 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.
|
|
||||||
mg_flags (Mapgen flags) flags caves,dungeons,light,decorations,biomes caves,dungeons,light,decorations,biomes,nocaves,nodungeons,nolight,nodecorations,nobiomes
|
mg_flags (Mapgen flags) flags caves,dungeons,light,decorations,biomes caves,dungeons,light,decorations,biomes,nocaves,nodungeons,nolight,nodecorations,nobiomes
|
||||||
|
|
||||||
# Whether dungeons occasionally project from the terrain.
|
# Whether dungeons occasionally project from the terrain.
|
||||||
@ -1429,8 +1427,6 @@ mgv5_np_ground (Ground noise) noise_params_3d 0, 40, (80, 80, 80), 983240, 4, 0.
|
|||||||
# The 'snowbiomes' flag enables the new 5 biome system.
|
# The 'snowbiomes' flag enables the new 5 biome system.
|
||||||
# When the new biome system is enabled jungles are automatically enabled and
|
# When the new biome system is enabled jungles are automatically enabled and
|
||||||
# the 'jungles' flag is ignored.
|
# the 'jungles' flag is ignored.
|
||||||
# Flags that are not enabled are not modified from the default.
|
|
||||||
# Flags starting with 'no' are used to explicitly disable them.
|
|
||||||
mgv6_spflags (Mapgen V6 specific flags) flags jungles,biomeblend,mudflow,snowbiomes,trees jungles,biomeblend,mudflow,snowbiomes,flat,trees,nojungles,nobiomeblend,nomudflow,nosnowbiomes,noflat,notrees
|
mgv6_spflags (Mapgen V6 specific flags) flags jungles,biomeblend,mudflow,snowbiomes,trees jungles,biomeblend,mudflow,snowbiomes,flat,trees,nojungles,nobiomeblend,nomudflow,nosnowbiomes,noflat,notrees
|
||||||
|
|
||||||
# Deserts occur when np_biome exceeds this value.
|
# Deserts occur when np_biome exceeds this value.
|
||||||
@ -1485,8 +1481,6 @@ mgv6_np_apple_trees (Apple trees noise) noise_params_2d 0, 1, (100, 100, 100), 3
|
|||||||
|
|
||||||
# Map generation attributes specific to Mapgen v7.
|
# Map generation attributes specific to Mapgen v7.
|
||||||
# 'ridges' enables the rivers.
|
# 'ridges' enables the rivers.
|
||||||
# Flags that are not enabled are not modified from the default.
|
|
||||||
# Flags starting with 'no' are used to explicitly disable them.
|
|
||||||
mgv7_spflags (Mapgen V7 specific flags) flags mountains,ridges,nofloatlands,caverns mountains,ridges,floatlands,caverns,nomountains,noridges,nofloatlands,nocaverns
|
mgv7_spflags (Mapgen V7 specific flags) flags mountains,ridges,nofloatlands,caverns mountains,ridges,floatlands,caverns,nomountains,noridges,nofloatlands,nocaverns
|
||||||
|
|
||||||
# Y of mountain density gradient zero level. Used to shift mountains vertically.
|
# Y of mountain density gradient zero level. Used to shift mountains vertically.
|
||||||
@ -1582,8 +1576,6 @@ mgv7_np_cave2 (Cave2 noise) noise_params_3d 0, 12, (67, 67, 67), 10325, 3, 0.5,
|
|||||||
[*Mapgen Carpathian]
|
[*Mapgen Carpathian]
|
||||||
|
|
||||||
# Map generation attributes specific to Mapgen Carpathian.
|
# Map generation attributes specific to Mapgen Carpathian.
|
||||||
# Flags that are not enabled are not modified from the default.
|
|
||||||
# Flags starting with 'no' are used to explicitly disable them.
|
|
||||||
mgcarpathian_spflags (Mapgen Carpathian specific flags) flags caverns caverns,nocaverns
|
mgcarpathian_spflags (Mapgen Carpathian specific flags) flags caverns caverns,nocaverns
|
||||||
|
|
||||||
# Defines the base ground level.
|
# Defines the base ground level.
|
||||||
@ -1664,8 +1656,6 @@ mgcarpathian_np_cavern (Cavern noise) noise_params_3d 0, 1, (384, 128, 384), 723
|
|||||||
|
|
||||||
# Map generation attributes specific to Mapgen flat.
|
# Map generation attributes specific to Mapgen flat.
|
||||||
# Occasional lakes and hills can be added to the flat world.
|
# Occasional lakes and hills can be added to the flat world.
|
||||||
# Flags that are not enabled are not modified from the default.
|
|
||||||
# Flags starting with 'no' are used to explicitly disable them.
|
|
||||||
mgflat_spflags (Mapgen Flat specific flags) flags nolakes,nohills lakes,hills,nolakes,nohills
|
mgflat_spflags (Mapgen Flat specific flags) flags nolakes,nohills lakes,hills,nolakes,nohills
|
||||||
|
|
||||||
# Y of flat ground.
|
# Y of flat ground.
|
||||||
|
@ -3967,7 +3967,7 @@ Environment access
|
|||||||
* Return value: Table with all node positions with a node air above
|
* Return value: Table with all node positions with a node air above
|
||||||
* Area volume is limited to 4,096,000 nodes
|
* Area volume is limited to 4,096,000 nodes
|
||||||
* `minetest.get_perlin(noiseparams)`
|
* `minetest.get_perlin(noiseparams)`
|
||||||
* `minetest.get_perlin(seeddiff, octaves, persistence, scale)`
|
* `minetest.get_perlin(seeddiff, octaves, persistence, spread)`
|
||||||
* Return world-specific perlin noise (`int(worldseed)+seeddiff`)
|
* Return world-specific perlin noise (`int(worldseed)+seeddiff`)
|
||||||
* `minetest.get_voxel_manip([pos1, pos2])`
|
* `minetest.get_voxel_manip([pos1, pos2])`
|
||||||
* Return voxel manipulator object.
|
* Return voxel manipulator object.
|
||||||
@ -5347,9 +5347,9 @@ It can be created via `PcgRandom(seed)` or `PcgRandom(seed, sequence)`.
|
|||||||
-------------
|
-------------
|
||||||
|
|
||||||
A perlin noise generator.
|
A perlin noise generator.
|
||||||
It can be created via `PerlinNoise(seed, octaves, persistence, scale)`
|
It can be created via `PerlinNoise(seed, octaves, persistence, spread)`
|
||||||
or `PerlinNoise(noiseparams)`.
|
or `PerlinNoise(noiseparams)`.
|
||||||
Alternatively with `minetest.get_perlin(seeddiff, octaves, persistence, scale)`
|
Alternatively with `minetest.get_perlin(seeddiff, octaves, persistence, spread)`
|
||||||
or `minetest.get_perlin(noiseparams)`.
|
or `minetest.get_perlin(noiseparams)`.
|
||||||
|
|
||||||
### Methods
|
### Methods
|
||||||
|
Loading…
Reference in New Issue
Block a user