Topic category: Help with Minecraft modding (Java Edition)
The problem I am having is that while I have a certain procedure running, when I leave a world and attempt to re-open it, the loading goes to 100% but then freezes there and I have to force close the application.
I thought maybe I could make a global variable that can control the procedure to turn it off before the world closes, then turn it back on when the world starts using the "minecraft loads a world" and "Minecraft unloads a world" global triggers but it doesnt seem to work. I also tried doing the same thing with on player join and player leaves world gloabl triggers because I thought maybe they fire later/earlier then world start/stop but that also doesnt seem to work.
The Procedure in question is an entity chunkloader, I'll post an image below. If I turn off the procedure manually before leaving it works fine and the world opens again just fine.
It is when I leave this chunkloading procedure running and leave the game, then try to open the world again that it gets frozen.
So I'm asking does anyone know of a possible work around to turn it off automatically before the world stops? Or better yet another way to chunkload a mob that will work better? I can post console logs if I need to but at least at first glance nothing appears to be wrong (although I don't even know what I'd look for, I'm a beginner at this.) If more context is needed I can respond if it's within my knowledge.