summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2019-06-19 01:06:08 +0100
committerGitHub <noreply@github.com>2019-06-19 01:06:08 +0100
commit5d4850a7ce1f707af1d85f8553a5adc251a8e916 (patch)
tree93c7caa9df37c84e1cf5e2bd0f1d76401992e7ef /builtin
parent95a37efc31586babadc2f42e310e13e8319158a3 (diff)
downloadminetest-5d4850a7ce1f707af1d85f8553a5adc251a8e916.tar.gz
minetest-5d4850a7ce1f707af1d85f8553a5adc251a8e916.tar.bz2
minetest-5d4850a7ce1f707af1d85f8553a5adc251a8e916.zip
Mapgen Carpathian: Add optional rivers (#7977)
Rivers are disabled by default and will not be added to existing worlds. Rewrite getSpawnLevelAtPoint() to be simpler and more consistent with generateTerrain().
Diffstat (limited to 'builtin')
-rw-r--r--builtin/settingtypes.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt
index 911d247a2..eeb14d7ab 100644
--- a/builtin/settingtypes.txt
+++ b/builtin/settingtypes.txt
@@ -1578,11 +1578,20 @@ mgv7_np_dungeons (Dungeon noise) noise_params_3d 0.9, 0.5, (500, 500, 500), 0, 2
[*Mapgen Carpathian]
# Map generation attributes specific to Mapgen Carpathian.
-mgcarpathian_spflags (Mapgen Carpathian specific flags) flags caverns caverns,nocaverns
+mgcarpathian_spflags (Mapgen Carpathian specific flags) flags caverns,norivers caverns,nocaverns,rivers,norivers
# Defines the base ground level.
mgcarpathian_base_level (Base ground level) float 12.0
+# Defines the width of the river channel.
+mgcarpathian_river_width (River channel width) float 0.05
+
+# Defines the depth of the river channel.
+mgcarpathian_river_depth (River channel depth) float 24.0
+
+# Defines the width of the river valley.
+mgcarpathian_valley_width (River valley width) float 0.25
+
# Controls width of tunnels, a smaller value creates wider tunnels.
mgcarpathian_cave_width (Cave width) float 0.09
@@ -1642,6 +1651,9 @@ mgcarpathian_np_ridge_mnt (Ridged mountain size noise) noise_params_2d 0, 12, (7
# 2D noise that controls the shape/size of step mountains.
mgcarpathian_np_step_mnt (Step mountain size noise) noise_params_2d 0, 8, (509, 509, 509), 2590, 6, 0.6, 2.0, eased
+# 2D noise that locates the river valleys and channels.
+mgcarpathian_np_rivers (River noise) noise_params_2d 0, 1, (1000, 1000, 1000), 85039, 5, 0.6, 2.0, eased
+
# 3D noise for mountain overhangs, cliffs, etc. Usually small variations.
mgcarpathian_np_mnt_var (Mountain variation noise) noise_params_3d 0, 1, (499, 499, 499), 2490, 5, 0.55, 2.0