How to Randomly Teleport Without Server Lag
Using the Teleport Trigger
To travel to a new random location in your world, open your in-game chat window and enter the command /trigger rtp. Because this uses the vanilla trigger system, regular survival players can run the command without needing operator permissions or cheats enabled.
By default, the command works across all standard vanilla dimensions and will move your character within a default distance limit of 10,000 blocks. If you use the command while inside the Nether, your destination height is automatically capped at Y level 126 so you do not end up stuck above the bedrock roof.
Chunk Preloading and Cooldowns
When you activate the command, the data pack preloads the destination chunks before actually moving your character. This brief preparation step ensures that the terrain is ready before you arrive, stopping your singleplayer world or multiplayer server from freezing or crashing due to sudden chunk generation.
Once your teleport completes, a default five-minute cooldown timer starts.