mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
[CSM] Add on_dignode
callback (#5140)
This commit is contained in:
parent
ba66fce833
commit
073f5cf03d
6 changed files with 57 additions and 13 deletions
|
@ -703,6 +703,10 @@ Call these functions only at load time!
|
|||
* Called when a button is pressed in player's inventory form
|
||||
* Newest functions are called first
|
||||
* If function returns `true`, remaining functions are not called
|
||||
* `minetest.register_on_dignode(func(pos, node))`
|
||||
* Called when a player digs a node
|
||||
* Newest functions are called first
|
||||
* If any function returns true, the node isn't dug
|
||||
### Sounds
|
||||
* `minetest.sound_play(spec, parameters)`: returns a handle
|
||||
* `spec` is a `SimpleSoundSpec`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue