summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlex Ford <gordion42@gmail.com>2015-11-18 12:26:09 -0700
committerparamat <mat.gregory@virginmedia.com>2015-12-02 02:18:44 +0000
commit97908cc65670d3f6cf2e286390bfea10f653aaa8 (patch)
tree49c1b4bb175990d7402590a78a9edd8bb804e6bc /doc
parent57b429574ef92c62d202955535896b36845b88db (diff)
downloadminetest-97908cc65670d3f6cf2e286390bfea10f653aaa8.tar.gz
minetest-97908cc65670d3f6cf2e286390bfea10f653aaa8.tar.bz2
minetest-97908cc65670d3f6cf2e286390bfea10f653aaa8.zip
Add on_secondary_use when right clicking an item in the air
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 9ffb497d7..11f90ba03 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3303,6 +3303,11 @@ Definition tables
--[[
^ Shall place item and return the leftover itemstack
^ default: minetest.item_place ]]
+ on_secondary_use = func(itemstack, user, pointed_thing),
+ --[[
+ ^ Same as on_place but called when pointing at nothing.
+ ^ pointed_thing : always { type = "nothing" }
+ ]]
on_drop = func(itemstack, dropper, pos),
--[[
^ Shall drop item and return the leftover itemstack