aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-28 22:37:27 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-28 22:37:27 -0500
commit863379a4c68b9862ea6913c1b1e475d022aba100 (patch)
tree00c6089cdf46a1bfaae17bc0c52ed90db47976d2 /doc/lua_api.txt
parentc5faa644056c892ccf5e41cfde87a5b107149951 (diff)
downloadhax-minetest-server-863379a4c68b9862ea6913c1b1e475d022aba100.tar.gz
hax-minetest-server-863379a4c68b9862ea6913c1b1e475d022aba100.zip
Decoration: Add height_min and height_max parameters
Also set default height_min/height_max to -31000 and 31000, respectively, for ore and biomes
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 7474c2bf4..1bfe0a0c2 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2758,6 +2758,10 @@ Decoration definition (register_decoration)
biomes = {"Oceanside", "Hills", "Plains"},
^ List of biomes in which this decoration occurs. Occurs in all biomes if this is omitted,
^ and ignored if the Mapgen being used does not support biomes.
+ height_min = -31000
+ height_max = 31000
+ ^ Minimum and maximum y positions these decorations can be generated at. This parameter refers to the
+ ^ y position of the decoration base, so the actual maximum height would be (height_max + size.Y).
----- Simple-type parameters
decoration = "default:grass",