From dd6d1afd8e0ded779fd004f4e83888985cba2102 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Mon, 1 Jul 2013 18:04:17 -0400 Subject: Decoration: Add schematic rotation support --- doc/lua_api.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc/lua_api.txt') 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) -- cgit v1.2.3