Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks