mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Fix to on_rightclick not able to change wielded_item
This commit is contained in:
parent
8e69b9cb26
commit
b1019a88ba
2 changed files with 4 additions and 3 deletions
|
@ -1497,8 +1497,10 @@ Node definition (register_node)
|
|||
on_punch = func(pos, node, puncher),
|
||||
^ default: minetest.node_punch
|
||||
^ By default: does nothing
|
||||
on_rightclick = func(pos, node, clicker),
|
||||
on_rightclick = func(pos, node, clicker, itemstack),
|
||||
^ default: nil
|
||||
^ if defined, itemstack will hold clicker's wielded item
|
||||
Shall return the leftover itemstack
|
||||
on_dig = func(pos, node, digger),
|
||||
^ default: minetest.node_dig
|
||||
^ By default: checks privileges, wears out tool and removes node
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue