aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorhdastwb <hdastwb@hdastwb.heliohost.org>2013-07-16 20:50:41 -0400
committerRealBadAngel <mk@realbadangel.pl>2013-07-24 00:31:32 +0200
commita0f5b70568c1140085cba2e2d8d83b6ae6912ed1 (patch)
tree467af66295b9832db2dfa164be018263afe31e9f /doc
parent0b4b9e7f3a6087ac3270bd092a3606a796a90c78 (diff)
downloadminetest-a0f5b70568c1140085cba2e2d8d83b6ae6912ed1.tar.gz
minetest-a0f5b70568c1140085cba2e2d8d83b6ae6912ed1.tar.bz2
minetest-a0f5b70568c1140085cba2e2d8d83b6ae6912ed1.zip
added (optional) support for 6d facedir in dir_to_facedir and added facedir_to_dir
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 1890682fd..b0281bee7 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1270,8 +1270,10 @@ minetest.inventorycube(img1, img2, img3)
^ Returns a string for making an image of a cube (useful as an item image)
minetest.get_pointed_thing_position(pointed_thing, above)
^ Get position of a pointed_thing (that you can get from somewhere)
-minetest.dir_to_facedir(dir)
-^ Convert a vector to a facedir value, used in param2 for paramtype2="facedir"
+minetest.dir_to_facedir(dir, is6d)
+^ Convert a vector to a facedir value, used in param2 for paramtype2="facedir"; passing something non-nil/false for the optional second parameter causes it to take the y component into account
+minetest.facedir_to_dir(facedir)
+^ Convert a facedir back into a vector aimed directly out the "back" of a node
minetest.dir_to_wallmounted(dir)
^ Convert a vector to a wallmounted value, used for paramtype2="wallmounted"
minetest.get_node_drops(nodename, toolname)