mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
[CSM] Add on_dignode
callback (#5140)
This commit is contained in:
@@ -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`
|
||||
|
Reference in New Issue
Block a user