I have the following skript:
https://pastebin.com/b9xnBAKw
It's basically an item generator where a specified item will generate on top of a specified block that players place, the problem is that this gets extremely laggy as more and more generators are placed, is there any way to eliminate the lag?
I was thinking of only making the item spawn if the player that placed the generator is online and I'm new to skript but not coding in general so I would assume that I have to check a list with all online players against the saved uuid's of the players that have placed a generator but wouldn't that get laggy as well after a while?
anyway, not sure what I can do about this any help would be greatly appreciated.
https://pastebin.com/b9xnBAKw
It's basically an item generator where a specified item will generate on top of a specified block that players place, the problem is that this gets extremely laggy as more and more generators are placed, is there any way to eliminate the lag?
I was thinking of only making the item spawn if the player that placed the generator is online and I'm new to skript but not coding in general so I would assume that I have to check a list with all online players against the saved uuid's of the players that have placed a generator but wouldn't that get laggy as well after a while?
anyway, not sure what I can do about this any help would be greatly appreciated.