How it Works - OreCruncher/Pathways GitHub Wiki

Though Pathways provides functionality similar to other mods and server side plugins it does do some things differently. Below is an explanation of how the mod goes about selecting a block location for teleport.

Warp locations are the easiest to understand. When a player teleports to such a location they will go to that specific place regardless of any safety issues. It is expected that the OP that creates the location will be compassionate enough to avoid death traps. :)

Random locations go through the following steps:

  1. A random chunk is selected based on the minimum and maximum chunk range of the teleport location. The central chunk is where the teleport location was created. The selection region around the central location is square. It is Minecraft after all.

  2. Given this chunk, several attempts will be made to find a suitable location within the chunk for teleport. This helps mitigate lag created by generating new chunks if the teleport location is something like a wild teleport.

  3. If a suitable location is found, the player will be moved to that location. The player's cool down timer will be started. If one is not found, a message will be displayed in chat informing the user. They will have to attempt teleport again.