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:
@@ -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
|
||||
|
Reference in New Issue
Block a user