summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2017-09-06 22:20:09 +0100
committerparamat <mat.gregory@virginmedia.com>2017-09-10 01:31:30 +0100
commit51002b1629c69adb0053bc36d3667d2b790e5c21 (patch)
tree1b92288c9c9403e3385371b2bc2589bfc70f711f /doc
parent557bbc670451f82c384032383df80a1a92ffe724 (diff)
downloadminetest-51002b1629c69adb0053bc36d3667d2b790e5c21.tar.gz
minetest-51002b1629c69adb0053bc36d3667d2b790e5c21.tar.bz2
minetest-51002b1629c69adb0053bc36d3667d2b790e5c21.zip
Schematic decorations: Add 'place_offset_y' placement parameter
For precise control of schematic vertical position relative to the 'place_on' node. Avoids workarounds that add empty nodes to a schematic and therefore reduce performance. Also remove long-unused decoration cutoff code.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index ec5a8ff32..ef62f1356 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -4743,6 +4743,13 @@ The Biome API is still in an experimental phase and subject to change.
-- ^ Flags for schematic decorations. See 'Schematic attributes'.
rotation = "90" -- rotate schematic 90 degrees on placement
-- ^ Rotation can be "0", "90", "180", "270", or "random".
+ place_offset_y = 0,
+ -- ^ Y offset of the schematic base node layer relative to the 'place_on'
+ -- ^ node.
+ -- ^ Can be positive or negative. Default is 0.
+ -- ^ If the flag 'place_center_y' is set this parameter is ignored.
+ -- ^ If absent or 0 the schematic base node layer will be placed level
+ -- ^ with the 'place_on' node.
}
### Chat command definition (`register_chatcommand`)