1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

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.
This commit is contained in:
paramat 2017-10-08 21:08:52 +01:00 committed by paramat
parent 17016090e3
commit 0c9ca27ffc
4 changed files with 17 additions and 3 deletions

View file

@ -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",