Talk:Minetest.register on punchnode

From Old MT Dev
Revision as of 12:30, 31 October 2013 by >PilzAdam (Created page with "= Use different examples = The examples shouldnt use <code>if node.name == "nodename" then</code>, since the proper way of doing this is using on_punch() in the nodedef. regis...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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)