Talk:minetest.register on punchnode

From Minetest Developer Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Use different examples

The examples shouldnt use if node.name == "nodename" then, since the proper way of doing this is using on_punch() in the nodedef. register_on_punchnode() should be used for things that affect all nodes, or groups of nodes. --PilzAdam (talk) 23:30, 31 October 2013 (MSK)