aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-06-17 19:47:55 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-06-17 19:47:55 +0300
commitc57e5083e8e31e4eec356a7e777e3fcdcf680afa (patch)
tree7bdf1370280eb1150c6e0984d3b1fc1ccc313050
parentc9a2058361647d81b8303fc6892f8fb28a4288c5 (diff)
downloadminetest-c57e5083e8e31e4eec356a7e777e3fcdcf680afa.tar.gz
minetest-c57e5083e8e31e4eec356a7e777e3fcdcf680afa.tar.bz2
minetest-c57e5083e8e31e4eec356a7e777e3fcdcf680afa.zip
Add pointed_thing to lua_api.txt
-rw-r--r--doc/lua_api.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 39267e34e..511ec7c8e 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -342,6 +342,11 @@ Position/vector:
Currently the API does not provide any helper functions for addition,
subtraction and whatever; you can define those that you need yourself.
+pointed_thing:
+ {type="nothing"}
+ {type="node", under=pos, above=pos}
+ {type="object", ref=ObjectRef}
+
Items
------
Node (register_node):
@@ -1167,8 +1172,10 @@ Item definition (register_node, register_craftitem, register_tool)
actual result to client in a short moment.
on_place = func(itemstack, placer, pointed_thing),
+ ^ Shall place item and return the leftover itemstack
^ default: minetest.item_place
on_drop = func(itemstack, dropper, pos),
+ ^ Shall drop item and return the leftover itemstack
^ default: minetest.item_drop
on_use = func(itemstack, user, pointed_thing),
^ default: nil