diff options
author | kwolekr <kwolekr@minetest.net> | 2013-07-01 18:04:17 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-07-01 18:04:51 -0400 |
commit | dd6d1afd8e0ded779fd004f4e83888985cba2102 (patch) | |
tree | f72610fc5fe9eb5c5cbddf576f48d92112219cbe /doc/lua_api.txt | |
parent | 131eb56f5202f1e4826c1cacbfcee7f34b7dfe33 (diff) | |
download | minetest-dd6d1afd8e0ded779fd004f4e83888985cba2102.tar.gz minetest-dd6d1afd8e0ded779fd004f4e83888985cba2102.tar.bz2 minetest-dd6d1afd8e0ded779fd004f4e83888985cba2102.zip |
Decoration: Add schematic rotation support
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 3ee68b4b6..cd0824eb3 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1309,8 +1309,10 @@ minetest.create_schematic(p1, p2, probability_list, filename) ^ If probability_list is nil, no probabilities are applied. ^ Saves schematic in the Minetest Schematic format to filename. -minetest.place_schematic(pos, schematic) +minetest.place_schematic(pos, schematic, rotation) ^ 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. Random: minetest.get_connected_players() -> list of ObjectRefs @@ -2048,6 +2050,8 @@ Decoration definition (register_decoration) ^ See 'Schematic specifier' for details. flags = "place_center_x, place_center_z", ^ Flags for schematic decorations. See 'Schematic attributes'. + rotation = "90" --rotate schematic 90 degrees on placement + ^ Rotation can be "0", "90", "180", "270", or "random". } Chatcommand definition (register_chatcommand) |