
RandomTeleporter
Added two commands for random teleportation
About this Mod
简体中文(GitHub) 简体中文(Gitea) English(GitHub) English(Gitea)
Introduction
This mod adds a command, /rtp, which randomly teleports players to any location in the world.
Command Formats
/rtp/rtp back/rtp back <PlayerID>/rtp <PlayerID> back/rtp <Radius>/rtp <PlayerID>/rtp <Radius> <PlayerID>/rtp <PlayerID> <Radius>/rtp <Radius> <OriginPos>/rtp <Radius> <PlayerID> <OriginEntity>/rtp <Radius> <PlayerID> <OriginPos>/rtp <PlayerID> <Radius> <OriginEntity>/rtp <PlayerID> <Radius> <OriginPos>/rtp <RegionFromPos> <RegionToPos>/rtp <RegionFromPos> <RegionToPos> <PlayerID>/rtp <PlayerID> <RegionFromPos> <RegionToPos>/rtp <RegionFromEntity> <RegionToEntity>/rtp <RegionFromEntity> <RegionToEntity> <PlayerID>
Command Examples
/rtp
Teleports the player executing the command to a random point within the area centered at(0,0)with a random radius of 2.9e7 - 1e4.
2.9e7 = 29,000,000
10^4 = 10,000/rtp back
Teleports the player back to their position before the most recent random teleport.
Note: The previous-position information saved by this feature exists only while the game (server) is running. It will be lost after the game (server) is closed./rtp back TheWhiteDog9487
TeleportsTheWhiteDog9487back to their position before their last random teleport./rtp TheWhiteDog9487 back
TeleportsTheWhiteDog9487back to their position before their last random teleport./rtp 1000
Teleports the player to a random point within a radius of1000centered at(0,0)./rtp TheWhiteDog9487
TeleportsTheWhiteDog9487to a random point within the area centered at(0,0)with a random radius of 2.9e7 - 1e4./rtp TheWhiteDog9487 1000
TeleportsTheWhiteDog9487to a random point within a radius of1000centered at(0,0)./rtp 1000 TheWhiteDog9487
TeleportsTheWhiteDog9487to a random point within a radius of1000centered at(0,0)./rtp 1000 10000 10000
Teleports the player to a random point within a radius of1000centered at(10000,10000)./rtp 1000 TheWhiteDog9487 TheWhiteDog_CN
TeleportsTheWhiteDog9487to a random point within a radius of1000centered atTheWhiteDog_CN's location./rtp 1000 TheWhiteDog9487 10000 10000
TeleportsTheWhiteDog9487to a random point within a radius of1000centered at(10000,10000)./rtp TheWhiteDog9487 1000 TheWhiteDog_CN
TeleportsTheWhiteDog9487to a random point within a radius of1000centered atTheWhiteDog_CN's location./rtp TheWhiteDog9487 1000 10000 10000
TeleportsTheWhiteDog9487to a random point within a radius of1000centered at(10000,10000)./rtp 10000.0 10000.0 20000.0 20000.0
Teleports the player to a random point within the rectangular region formed by the vertices(10000,10000),(20000,10000),(20000,20000), and(10000,20000).
You only need to provide any one vertex of the rectangle and the diagonally opposite vertex./rtp TheWhiteDog9487 10000.0 10000.0 20000.0 20000.0
TeleportsTheWhiteDog9487to a random point within the same rectangular region described above./rtp 10000.0 10000.0 20000.0 20000.0 TheWhiteDog9487
TeleportsTheWhiteDog9487to a random point within the same rectangular region described above./rtp TheWhiteDog9487 TheWhiteDog_CN
Teleports the command executor to a random point within a rectangular region whose diagonals are the current positions ofTheWhiteDog9487andTheWhiteDog_CN./rtp TheWhiteDog9487 TheWhiteDog_CN TheWhiteDog4568
TeleportsTheWhiteDog4568to a random point within a rectangular region whose diagonals are the current positions ofTheWhiteDog9487andTheWhiteDog_CN.
Special Notes
The format /rtp <Radius> <OriginEntity> does not exist because the second parameter could be either the teleported player's name or the entity used as the random center. Both are entity types, so there is no way to tell which one it is. Likewise, /rtp <PlayerID> <RegionFromEntity> <RegionToEntity> does not exist either, because all three parameters are entity types, making it impossible to determine which one is the player ID.
Dependencies
Supported Game Versions
Currently, only the latest official release is actively supported.
About Player Permissions
Following the vanilla /tp command, /rtp is set to require permission level 2. In vanilla or vanilla-like environments, players only need cheat permissions enabled to use it. As for plugin servers, I do not have enough firsthand experience to give specific advice about permission setup.
Install on the Client or on the Server?
It depends on the case:
- Singleplayer
- There is no physical server, so the server side does not matter.
- Installing it on the client is enough.
- Singleplayer + Open to LAN
- This uses the client’s built-in server, so the player who opens the LAN world needs the mod installed on their client.
- Other players who join do not need to install it.
- Dedicated server (something like a
server.jarfile)- The server needs the mod installed.
- Clients do not need it.
Note: In cases 2 and 3, if other players do not install this mod, they will not be able to see the command feedback in the correct translated language, and the default display in that case is Chinese text. If you need to view multilingual translation text, it is probably best for everyone to install it.
Available Versions
How to Install RandomTeleporter on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (26.2).
Install Mod
Open the mod browser in the dashboard and search for "RandomTeleporter". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.2, 26.1.2, 26.1.1 (+16 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
RandomTeleporter server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.2). You can switch loaders with one click in the panel.
Is RandomTeleporter compatible with fabric?
RandomTeleporter officially supports fabric for Minecraft 26.2, 26.1.2, 26.1.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with RandomTeleporter – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if RandomTeleporter consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install RandomTeleporter with just one click on your server.