From 2f170a63c6df9bff7fcf819226f5937a902bf335 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Thu, 11 Sep 2014 22:25:06 -0400 Subject: Simplify and optimize schematic replacements --- doc/lua_api.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/lua_api.txt') 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 -- cgit v1.2.3