]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - doc/client_lua_api.txt
[CSM] Add `on_dignode` callback (#5140)
[dragonfireclient.git] / doc / client_lua_api.txt
index 3170f4c84c18976c36eda37dd4c880b4e1918167..886dbc6e1ce4a12423acc4509b15c4db50c7d519 100644 (file)
@@ -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`