Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tacotexmex/4ed7531be4a23e8bb5f17bdaf0e2c153 to your computer and use it in GitHub Desktop.
Save tacotexmex/4ed7531be4a23e8bb5f17bdaf0e2c153 to your computer and use it in GitHub Desktop.
Non-pointable entity but with selectionbox property
minetest.register_on_mods_loaded(function()
local old_set_item = minetest.registered_entities["__builtin:item"].set_item
minetest.registered_entities["__builtin:item"].set_item = function(self, itemstring)
old_set_item(self, itemstring)
self.object:set_properties({selectionbox = {0,0,0,0,0,0}})
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment