]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - doc/lua_api.txt
Add on_secondary_use when right clicking an item in the air
[dragonfireclient.git] / doc / lua_api.txt
index 9ffb497d70786bd8ce3ebbf02f92a7bb2f765959..11f90ba037840192c2f1f2a540557f0d95d66f7e 100644 (file)
@@ -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