Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local obj = minetest.add_item(pos, name)
- if obj ~= nil then
- obj:get_luaentity():on_punch = function (self, puncher, time_from_last_punch, tool_capabilities, dir)
- if (self:is_player()) then return end
- if (puncher == nil) then return end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement