1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-26 18:21:04 +00:00

Simplify and optimize schematic replacements

This commit is contained in:
ShadowNinja 2014-09-11 22:25:06 -04:00
parent b8ba6318d6
commit 2f170a63c6
2 changed files with 29 additions and 29 deletions

View file

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