The title says it all. I'm trying to create a plugin that moves entities to each block in a region one at a time. The problem I'm running into is that I can't just use for-loops in conjunction with "Thread.sleep()" because I am expecting lots of these loops to all be running at once, and I imagine that creating a new thread for each one would be a disaster for the server. So my question: Is there a way to move entities around within a region such that the behavior acts like for-loops (i.e. going across and scanning line by line), while also not completely killing the server by creating threads for each loop? Another quick note: The regions themselves are not predefined. Instead, the regions are determined when the entity spawns by using width, depth, and height values to select the region in front of the entity. Any help is appreciated. Thanks!