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