Advertisement
Guest User

Untitled

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