Guest User

Untitled

a guest
May 16th, 2014
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local obj = minetest.add_item(pos, name)
  2.  
  3. obj:get_luaentity().on_punch = function (self, puncher)
  4. if (self.object:is_player()) then return end
  5. if (puncher == nil) then return end
  6.  
  7. minetest.chat_send_all("text")
  8. end
Advertisement
Add Comment
Please, Sign In to add comment