1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-21 20:05:45 +02:00

Add on_secondary_use when right clicking an item in the air

This commit is contained in:
Alex Ford
2015-11-18 12:26:09 -07:00
committed by paramat
parent 57b429574e
commit 97908cc656
8 changed files with 71 additions and 0 deletions

View 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