aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-01-29 17:43:44 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-03-13 23:56:05 +0100
commit073f5cf03d95ce1cdf04ce8a0adcaf1fc571d95f (patch)
treeeb35aa9d964972e85beaf66eda3bd9077018861a /doc
parentba66fce8339f818a638f97679bd29da064a8c1c6 (diff)
downloadminetest-073f5cf03d95ce1cdf04ce8a0adcaf1fc571d95f.tar.gz
minetest-073f5cf03d95ce1cdf04ce8a0adcaf1fc571d95f.tar.bz2
minetest-073f5cf03d95ce1cdf04ce8a0adcaf1fc571d95f.zip
[CSM] Add `on_dignode` callback (#5140)
Diffstat (limited to 'doc')
-rw-r--r--doc/client_lua_api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt
index 3170f4c84..886dbc6e1 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -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`