Hello, I'm creating a gen server on islands, but my issue is when the player is at spawn or anywhere other than their island the items the gens make stack up and don't move. Which you could probably guess creates a very laggy experience when the player teleports back to their island. So I'm trying to get information on the best way to go about fixing this issue. Preferably I would want the items to move and flow into hoppers if there is any, but if that's not possible then lmk. Thank You!
#Items Creating Lag
1 messages · Page 1 of 1 (latest)
are the islands seperate worlds?
Would it be viable to just check if the gen's owner is close before spawning more items?
Because I'm pretty sure you can't really make the items move...
Unless you like force load the chunks but I don't know how bad that could be...
I just wasnt sure on how i would make the items move i didnt know if you could load the chunks somehow and that would fix it
would loading them work?
yeah
how do i load them?
probably this https://skripthub.net/docs/?id=10511
Skript Hub - Documentation
Load or unload a chunk. When loading you have an option to add a ticket.
This will prevent the chunk from unloading until you explicitly unload it, or the server stops.
The two numbers represent a chunk's X/Y coords, NOT a location. A chunk's X/Y coords are basically
a location divided by 16. Ex: Chunk 1/1 would be at X=16, Z=16.
Async loading (...
but as it says it means you will have to explictily unload the chuncks when the player logs off
and you'd probably wanna do it async
what does async mean?
what is the main thread?
Basically using async prevents lag spikes
Okay :) you're welcome to DM me if you have more questions!
What would be a case where using async wouldn't be encouraged?