From 1d856b734b735129da209bc25f45abb2852328a0 Mon Sep 17 00:00:00 2001 From: 4Evergreen4 Date: Thu, 7 Nov 2013 16:20:04 -0500 Subject: Add wrapper for minetest.rotate_and_place. --- doc/lua_api.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3