summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-12-01 01:23:39 -0500
committerkwolekr <kwolekr@minetest.net>2013-12-01 01:24:59 -0500
commit20e3d550fa3ec42a065f7c776a2f9be9bc364503 (patch)
tree50fbcc15da2bda6f3d91fb88c6bea5d0d346c5a8 /doc
parentde0cdbc01cc39e4f89a9d012661031a66ba3294f (diff)
downloadminetest-20e3d550fa3ec42a065f7c776a2f9be9bc364503.tar.gz
minetest-20e3d550fa3ec42a065f7c776a2f9be9bc364503.tar.bz2
minetest-20e3d550fa3ec42a065f7c776a2f9be9bc364503.zip
Decoration: Add schematic Y-slice probability support
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 6c06d558f..f3240dd40 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1491,7 +1491,7 @@ minetest.delete_particlespawner(id, player)
^ otherwise on all clients
Schematics:
-minetest.create_schematic(p1, p2, probability_list, filename)
+minetest.create_schematic(p1, p2, probability_list, filename, slice_prob_list)
^ Create a schematic from the volume of map specified by the box formed by p1 and p2.
^ Apply the specified probability values to the specified nodes in probability_list.
^ probability_list is an array of tables containing two fields, pos and prob.
@@ -1500,6 +1500,9 @@ minetest.create_schematic(p1, p2, probability_list, filename)
^ If there are two or more entries with the same pos value, the last occuring in the array is used.
^ If pos is not inside the box formed by p1 and p2, it is ignored.
^ If probability_list is nil, no probabilities are applied.
+ ^ Slice probability works in the same manner, except takes a field called ypos instead which indicates
+ ^ the y position of the slice with a probability applied.
+ ^ If slice probability list is nil, no slice probabilities are applied.
^ Saves schematic in the Minetest Schematic format to filename.
minetest.place_schematic(pos, schematic, rotation, replacements)