X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=doc%2Flua_api.txt;h=11f90ba037840192c2f1f2a540557f0d95d66f7e;hb=97908cc65670d3f6cf2e286390bfea10f653aaa8;hp=9ffb497d70786bd8ce3ebbf02f92a7bb2f765959;hpb=57b429574ef92c62d202955535896b36845b88db;p=dragonfireclient.git 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