@@ -694,19 +694,23 @@ Call these functions only at load time!
694
694
* `minetest.register_chatcommand(cmd, chatcommand definition)`
695
695
* Adds definition to minetest.registered_chatcommands
696
696
* `minetest.register_on_death(func())`
697
- * Called when player die
697
+ * Called when the local player dies
698
698
* `minetest.register_on_hp_modification(func(hp))`
699
699
* Called when server modified player's HP
700
700
* `minetest.register_on_damage_taken(func(hp))`
701
- * Called when player take damages
701
+ * Called when the local player take damages
702
702
* `minetest.register_on_formspec_input(func(formname, fields))`
703
- * Called when a button is pressed in player's inventory form
703
+ * Called when a button is pressed in the local player's inventory form
704
704
* Newest functions are called first
705
705
* If function returns `true`, remaining functions are not called
706
706
* `minetest.register_on_dignode(func(pos, node))`
707
- * Called when a player digs a node
707
+ * Called when the local player digs a node
708
708
* Newest functions are called first
709
709
* If any function returns true, the node isn't dug
710
+ * `minetest.register_on_punchnode(func(pos, node))`
711
+ * Called when the local player punches a node
712
+ * Newest functions are called first
713
+ * If any function returns true, the punch is ignored
710
714
### Sounds
711
715
* `minetest.sound_play(spec, parameters)`: returns a handle
712
716
* `spec` is a `SimpleSoundSpec`
0 commit comments