minetest.register on punchnode

Description

 * — position of punched node
 * — node
 * — ObjectRef
 * — pointed_thing (only in 0.4.10+)

Called when a node is punched.

Example 2
If the player punches a default:brick, minetest will send chat message to all online players advising them that a particular player has punched the node. If a default:desert_stonebrick node has been punched, the server sends a message to the player only.