Advertisement
Guest User

Untitled

a guest
Aug 10th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. function minetest.register_node(name, nodedef)
  2. nodedef.type = "node"
  3. if nodedef.on_punch then
  4. local oldfunc = nodedef.on_punch
  5. nodedef.on_punch = function(pos,node,puncher)
  6. oldfunc(pos,puncher)
  7. end
  8. end
  9. minetest.register_item(name, nodedef)
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement