summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2019-05-18 21:13:14 +0100
committerGitHub <noreply@github.com>2019-05-18 21:13:14 +0100
commitb1b40fef16a17f4a6da7d4268af8f0921dbe829c (patch)
tree5052f3e27b6f0177fe44f18be2c2e36d1623dfe2 /doc
parent6cb6aea969032e43395ddbad09233e7e20830909 (diff)
downloadminetest-b1b40fef16a17f4a6da7d4268af8f0921dbe829c.tar.gz
minetest-b1b40fef16a17f4a6da7d4268af8f0921dbe829c.tar.bz2
minetest-b1b40fef16a17f4a6da7d4268af8f0921dbe829c.zip
Allow multiple cave liquids in a biome definition (#8481)
This allows games to specify biome cave liquids and avoid the old hardcoded behaviour, but preserves the ability to have multiple cave liquids in one biome, such as lava and water. When multiple cave liquids are defined by the biome definition, make each entire cave use a randomly chosen liquid, instead of every small cave segment using a randomly chosen liquid. Plus an optimisation: Don't place nodes if cave liquid is defined as 'air'
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index f72b87625..f29b7d439 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -6510,10 +6510,14 @@ Used by `minetest.register_biome`.
depth_riverbed = 2,
-- Node placed under river water and thickness of this layer
- node_cave_liquid = "default:water_source",
- -- Nodes placed as a blob of liquid in 50% of large caves.
- -- If absent, cave liquids fall back to classic behaviour of lava or
- -- water distributed according to a hardcoded 3D noise.
+ node_cave_liquid = "default:lava_source",
+ node_cave_liquid = {"default:water_source", "default:lava_source"},
+ -- Nodes placed inside 50% of the medium size caves.
+ -- Multiple nodes can be specified, each cave will use a randomly
+ -- chosen node from the list.
+ -- If this field is left out or 'nil', cave liquids fall back to
+ -- classic behaviour of lava and water distributed using 3D noise.
+ -- For no cave liquid, specify "air".
node_dungeon = "default:cobble",
-- Node used for primary dungeon structure.