aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2016-12-06 16:39:33 -0800
committerparamat <mat.gregory@virginmedia.com>2016-12-07 04:17:17 +0000
commit2e69711613c18e1075f245d196823ea23675f027 (patch)
tree9f77dc11cae07da7bb6348c253ebbe5fd4f6d629 /doc
parent075833e39368e63e06889f21140f816420e83541 (diff)
downloadminetest-2e69711613c18e1075f245d196823ea23675f027.tar.gz
minetest-2e69711613c18e1075f245d196823ea23675f027.tar.bz2
minetest-2e69711613c18e1075f245d196823ea23675f027.zip
Simple deco: Allow setting param2 value on placement
Schematics can already be placed with a param2 value, but not simple 1-node plant decorations of the simple type. This adds a `param2` field to the simple deco type that is checked to be between 0 and 255, and put to the placed node at mapgen. This can be used to put a degrotate value in, or e.g. a fill value for leveltype nodes, or a place_param2 value at mapgen placement, or vary the shape of meshoptions plantlike drawtype.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index bab3e11f7..62cd6bb46 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -4040,8 +4040,10 @@ The Biome API is still in an experimental phase and subject to change.
-- ^ Number of nodes high the decoration is made.
-- ^ If height_max is not 0, this is the lower bound of the randomly selected height.
height_max = 0,
- -- ^ Number of nodes the decoration can be at maximum.
+ -- ^ Number of nodes the decoration can be at maximum.
-- ^ If absent, the parameter 'height' is used as a constant.
+ param2 = 0,
+ -- ^ Param2 value of placed decoration node.
----- Schematic-type parameters
schematic = "foobar.mts",