summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-02-15 19:46:57 -0500
committerkwolekr <kwolekr@minetest.net>2014-02-15 19:46:57 -0500
commitc1638590577d487e620f9a037727b91a0f62ceea (patch)
tree5a9dd3fa3bbf8c52a8ced6b99bd93c51c808f0e1 /doc/lua_api.txt
parent3570f3e396acad4a6b5381d06c2dae5cf4e95fbd (diff)
downloadminetest-c1638590577d487e620f9a037727b91a0f62ceea.tar.gz
minetest-c1638590577d487e620f9a037727b91a0f62ceea.tar.bz2
minetest-c1638590577d487e620f9a037727b91a0f62ceea.zip
Schematic: Add force_placement parameter to minetest.place_structure API
Diffstat (limited to 'doc/lua_api.txt')
-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 4e645ada3..0e2f6360e 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1595,11 +1595,13 @@ minetest.create_schematic(p1, p2, probability_list, filename, slice_prob_list)
^ 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)
+minetest.place_schematic(pos, schematic, rotation, replacements, force_placement)
^ Place the schematic specified by schematic (see: Schematic specifier) at pos.
^ Rotation can be "0", "90", "180", "270", or "random".
^ If the rotation parameter is omitted, the schematic is not rotated.
^ replacements = {{"oldname", "convert_to"}, ...}
+^ force_placement is a boolean indicating whether nodes other than air and
+^ ignore are replaced by the schematic
Random:
minetest.get_connected_players() -> list of ObjectRefs