Created
June 29, 2019 22:11
-
-
Save tacotexmex/4ed7531be4a23e8bb5f17bdaf0e2c153 to your computer and use it in GitHub Desktop.
Non-pointable entity but with selectionbox property
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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