summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-01-29 18:28:38 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-03-13 23:56:05 +0100
commit0727bb3ddd9c550ff962af4546bac8cc058bce73 (patch)
treeca5a815f5f30883fe8a9b016db5b706486596714 /doc
parent37df9cb7d764891f29b433e80a0d5663fee1a94f (diff)
downloadminetest-0727bb3ddd9c550ff962af4546bac8cc058bce73.tar.gz
minetest-0727bb3ddd9c550ff962af4546bac8cc058bce73.tar.bz2
minetest-0727bb3ddd9c550ff962af4546bac8cc058bce73.zip
[CSM] Add `on_punchnode` callback
Diffstat (limited to 'doc')
-rw-r--r--doc/client_lua_api.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt
index 7b24452e8..5ffffe938 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -694,19 +694,23 @@ Call these functions only at load time!
* `minetest.register_chatcommand(cmd, chatcommand definition)`
* Adds definition to minetest.registered_chatcommands
* `minetest.register_on_death(func())`
- * Called when player die
+ * Called when the local player dies
* `minetest.register_on_hp_modification(func(hp))`
* Called when server modified player's HP
* `minetest.register_on_damage_taken(func(hp))`
- * Called when player take damages
+ * Called when the local player take damages
* `minetest.register_on_formspec_input(func(formname, fields))`
- * Called when a button is pressed in player's inventory form
+ * Called when a button is pressed in the local 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
+ * Called when the local player digs a node
* Newest functions are called first
* If any function returns true, the node isn't dug
+* `minetest.register_on_punchnode(func(pos, node))`
+ * Called when the local player punches a node
+ * Newest functions are called first
+ * If any function returns true, the punch is ignored
### Sounds
* `minetest.sound_play(spec, parameters)`: returns a handle
* `spec` is a `SimpleSoundSpec`