Started by
8BitBunnie
on
Topic category: Help with modding (Java Edition)
I'm making a vacuum entity that is supposed to suck up item that it runs into, my code is in the OnEntityTickUpdate and looks like this, but crashes my game the second the vacuum touches an item. any ideas?
The get nearest entity cube size is bigger than the does entity exist cube size.
I know, that's intentional. I've already tried it with them being the same
It could be crashing because your code might be trying to despawn a null entity, you might want to check if "get nearest entity in square cube of type item" is not equal to "null" and then run the code
Otherwise post crash log in the build console, that might pinpoint us to the issue at hand :)