diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-09-11 22:25:06 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-09-11 22:25:06 -0400 |
commit | 2f170a63c6df9bff7fcf819226f5937a902bf335 (patch) | |
tree | 1c3e5a3a57ab62ef5b9581e5ff2b013745889b1a /doc | |
parent | b8ba6318d6ed9edd59455674d39ff1d5018393df (diff) | |
download | minetest-2f170a63c6df9bff7fcf819226f5937a902bf335.tar.gz minetest-2f170a63c6df9bff7fcf819226f5937a902bf335.tar.bz2 minetest-2f170a63c6df9bff7fcf819226f5937a902bf335.zip |
Simplify and optimize schematic replacements
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 5fd10d418..37477b60a 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1719,7 +1719,7 @@ 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"}, ...} +^ replacements = {["old_name"] = "convert_to", ...} ^ force_placement is a boolean indicating whether nodes other than air and ^ ignore are replaced by the schematic @@ -2634,7 +2634,7 @@ Decoration definition (register_decoration) }, }, ^ See 'Schematic specifier' for details. - replacements = {{"oldname", "convert_to"}, ...}, + replacements = {["oldname"] = "convert_to", ...}, flags = "place_center_x, place_center_z", ^ Flags for schematic decorations. See 'Schematic attributes'. rotation = "90" -- rotate schematic 90 degrees on placement |