Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function minetest.register_node(name, nodedef)
- nodedef.type = "node"
- if nodedef.on_punch then
- local oldfunc = nodedef.on_punch
- nodedef.on_punch = function(pos,node,puncher)
- oldfunc(pos,puncher)
- end
- end
- minetest.register_item(name, nodedef)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement