Hello everyone!
I currently have an entity which gets fired in one direction every second.
This entity destroys itself after traveling 1024 Blocks (hard limit set by me) but I also want it to get destroyed when entering an unloaded chunk or when the world gets unloaded (basically not saving it to the world file).
This is because without this there could be a big amount of this entities stuck inside an unloaded chunk and when it gets loaded it could crash the server (depending on the amount of entities and server hardware).
I couldn't find anything about this and entities don't have a onChunkUnload method like TileEntities (which would have been the obvious solution...).
-Jakob