Skip to content

Commit 6e7ba36

Browse files
authoredFeb 18, 2019
lua_api.txt, settingtypes.txt: Various improvements (#8252)
1 parent 1875194 commit 6e7ba36

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed
 

Diff for: ‎builtin/settingtypes.txt

+1-11
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ profiler_print_interval (Engine profiling data print interval) int 0
13281328
# Name of map generator to be used when creating a new world.
13291329
# Creating a world in the main menu will override this.
13301330
# Current stable mapgens:
1331-
# v5, v6, v7 (except floatlands), flat, singlenode.
1331+
# v5, v6, v7 (except floatlands), singlenode.
13321332
# 'stable' means the terrain shape in an existing world will not be changed
13331333
# in the future. Note that biomes are defined by games and may still change.
13341334
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
13471347
# Global map generation attributes.
13481348
# In Mapgen v6 the 'decorations' flag controls all decorations except trees
13491349
# and junglegrass, in all other mapgens this flag controls all decorations.
1350-
# Flags that are not enabled are not modified from the default.
1351-
# Flags starting with 'no' are used to explicitly disable them.
13521350
mg_flags (Mapgen flags) flags caves,dungeons,light,decorations,biomes caves,dungeons,light,decorations,biomes,nocaves,nodungeons,nolight,nodecorations,nobiomes
13531351

13541352
# 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.
14291427
# The 'snowbiomes' flag enables the new 5 biome system.
14301428
# When the new biome system is enabled jungles are automatically enabled and
14311429
# the 'jungles' flag is ignored.
1432-
# Flags that are not enabled are not modified from the default.
1433-
# Flags starting with 'no' are used to explicitly disable them.
14341430
mgv6_spflags (Mapgen V6 specific flags) flags jungles,biomeblend,mudflow,snowbiomes,trees jungles,biomeblend,mudflow,snowbiomes,flat,trees,nojungles,nobiomeblend,nomudflow,nosnowbiomes,noflat,notrees
14351431

14361432
# 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
14851481

14861482
# Map generation attributes specific to Mapgen v7.
14871483
# 'ridges' enables the rivers.
1488-
# Flags that are not enabled are not modified from the default.
1489-
# Flags starting with 'no' are used to explicitly disable them.
14901484
mgv7_spflags (Mapgen V7 specific flags) flags mountains,ridges,nofloatlands,caverns mountains,ridges,floatlands,caverns,nomountains,noridges,nofloatlands,nocaverns
14911485

14921486
# 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,
15821576
[*Mapgen Carpathian]
15831577

15841578
# Map generation attributes specific to Mapgen Carpathian.
1585-
# Flags that are not enabled are not modified from the default.
1586-
# Flags starting with 'no' are used to explicitly disable them.
15871579
mgcarpathian_spflags (Mapgen Carpathian specific flags) flags caverns caverns,nocaverns
15881580

15891581
# Defines the base ground level.
@@ -1664,8 +1656,6 @@ mgcarpathian_np_cavern (Cavern noise) noise_params_3d 0, 1, (384, 128, 384), 723
16641656

16651657
# Map generation attributes specific to Mapgen flat.
16661658
# Occasional lakes and hills can be added to the flat world.
1667-
# Flags that are not enabled are not modified from the default.
1668-
# Flags starting with 'no' are used to explicitly disable them.
16691659
mgflat_spflags (Mapgen Flat specific flags) flags nolakes,nohills lakes,hills,nolakes,nohills
16701660

16711661
# Y of flat ground.

Diff for: ‎doc/lua_api.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -3967,7 +3967,7 @@ Environment access
39673967
* Return value: Table with all node positions with a node air above
39683968
* Area volume is limited to 4,096,000 nodes
39693969
* `minetest.get_perlin(noiseparams)`
3970-
* `minetest.get_perlin(seeddiff, octaves, persistence, scale)`
3970+
* `minetest.get_perlin(seeddiff, octaves, persistence, spread)`
39713971
* Return world-specific perlin noise (`int(worldseed)+seeddiff`)
39723972
* `minetest.get_voxel_manip([pos1, pos2])`
39733973
* Return voxel manipulator object.
@@ -5347,9 +5347,9 @@ It can be created via `PcgRandom(seed)` or `PcgRandom(seed, sequence)`.
53475347
-------------
53485348

53495349
A perlin noise generator.
5350-
It can be created via `PerlinNoise(seed, octaves, persistence, scale)`
5350+
It can be created via `PerlinNoise(seed, octaves, persistence, spread)`
53515351
or `PerlinNoise(noiseparams)`.
5352-
Alternatively with `minetest.get_perlin(seeddiff, octaves, persistence, scale)`
5352+
Alternatively with `minetest.get_perlin(seeddiff, octaves, persistence, spread)`
53535353
or `minetest.get_perlin(noiseparams)`.
53545354

53555355
### Methods

0 commit comments

Comments
 (0)