aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
author4Evergreen4 <eljohnson@frontier.com>2013-11-07 16:20:04 -0500
committerkwolekr <kwolekr@minetest.net>2013-11-07 20:14:26 -0500
commit1d856b734b735129da209bc25f45abb2852328a0 (patch)
tree4a059d05f81f4c9596d1575e3e1f2ec415c38f53 /doc
parent3d63492f50ecc547197df1818417d339906091f6 (diff)
downloadminetest-1d856b734b735129da209bc25f45abb2852328a0.tar.gz
minetest-1d856b734b735129da209bc25f45abb2852328a0.tar.bz2
minetest-1d856b734b735129da209bc25f45abb2852328a0.zip
Add wrapper for minetest.rotate_and_place.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 122fbde99..76eea95cc 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1561,6 +1561,11 @@ minetest.rotate_and_place(itemstack, placer, pointed_thing, infinitestacks, orie
force_facedir: if true, forcably reset the facedir to north when placing on
the floor or ceiling
+minetest.rotate_node(itemstack, placer, pointed_thing)
+^ calls rotate_and_place() with infinitestacks set according to the state of
+ the creative mode setting, and checks for "sneak" to set the invert_wall
+ parameter.
+
Global objects:
minetest.env - EnvRef of the server environment and world.
^ Any function in the minetest namespace can be called using the syntax