diff options
author | paramat <paramat@users.noreply.github.com> | 2017-10-08 21:08:52 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-10-09 18:27:17 +0100 |
commit | 0c9ca27ffce7d53ede74bd6ccbf590d1cbe94b7b (patch) | |
tree | b0e569ad1509bce616083e38794a64cf4017c226 /doc/lua_api.txt | |
parent | 17016090e38cc44e58517129278c28dd7943b4cc (diff) | |
download | minetest-0c9ca27ffce7d53ede74bd6ccbf590d1cbe94b7b.tar.gz minetest-0c9ca27ffce7d53ede74bd6ccbf590d1cbe94b7b.tar.bz2 minetest-0c9ca27ffce7d53ede74bd6ccbf590d1cbe94b7b.zip |
Simple decorations: Add 'param2_max' parameter for random param2
If 'param2_max' is not used, parameter 'param2' works as before for
compatibility.
If 'param2_max' is used, 'param2' and 'param2_max' become the lower
and upper bounds of a per-decoration random param2.
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 703e81436..63c4bea48 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -4842,6 +4842,10 @@ Definition tables -- ^ If absent, the parameter 'height' is used as a constant. param2 = 0, -- ^ Param2 value of placed decoration node. + -- ^ If param2_max is not 0, this is the lower bound of the randomly selected param2. + param2_max = 0, + -- ^ Upper bound of the randomly selected param2. + -- ^ If absent, the parameter 'param2' is used as a constant. ----- Schematic-type parameters schematic = "foobar.mts", |