简体中文(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.
How to Install RandomTeleporter (Mod)
RandomTeleporter by TheWhiteDog9487 is verified for Fabric across Minecraft versions 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2 (latest release: 0.5.4, file size: 81 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded RandomTeleporter file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 2mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 8mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 |
命令提示文本在切换语言之后支持热重载了,不再需要重启集成服务器
坏了搞砸了,这个更新应该跟着过一会的26.2正式版一起推的
增加回溯到随机传送前的位置的功能
( 愚人节OTA正式版,那相当有操作了
( AI写代码未必靠谱,但是翻译还是很不错的
1. 支持通过对角线坐标设置随机坐标选取范围
远离边界这个保护的实现有问题,然后地狱末地什么玩意的也不对,重试机制也不存在,这些之后再鸽
然后按照惯例来说加新功能=加新Bug,所以这次先开在beta通道
想看0.4.0相较0.3.6改了些什么的话请看[这个](https://modrinth.com/mod/randomteleporter/version/0.4.0)
想看0.4.0相较0.3.6改了些什么的话请看[这个](https://modrinth.com/mod/randomteleporter/version/0.4.0)
1. 输入的半径参数不再允许小于0
2. 如果命令执行者和被传送实体不在同一世界内,现在以被传送实体所在世界为准
3. 将以前的从Y=320向下暴力搜索第一个非空气方块改为让Minecraft内部机制自己找可以站人的坐标。代码简单多了但是现在这样可能出现趴在一格高空气内上方是树叶的情况,应该问题不大?
4. 现在在传送之后会被替换为保护平台方块(现在是玻璃)的有:
1. 空气
2. 水
3. 岩浆
4. 一格高的草
5. 藤蔓
5. 命令参数的提示文本现在可以被翻译为其他语言了,但是:
1. 这个功能在独立服务器上不生效,因为独立服务器改不了语言
2. 单人游戏内更改语言的话必须重进世界才能生效,这个我没办法解决因为命令解析器不接受Text类型只能用原始String
3. 开放到局域网的话语言应该是以开放的那台主机为准
我是觉着这波机制大改应该又会出不少Bug
Feature Drop和Bugfix混用小版本号的话,年底,不,甚至暑假结束之前有望突破1.21.10
La-la-la-lava, ch-ch-ch-chicken
Steve's Lava Chicken, yeah, it's tasty as hell
Ooh, mamacita, now you're ringin' the bell
Crispy and juicy, now you're havin' a snack
Ooh, super spicy, it's a lava attack
小更改,正常用应该是感受不到的。
当随机半径被设置为0的时候不会再抛出异常而导致命令运行失败了。
手动处理了这个部分,向玩家发送警告并根据随机中心点是否被设置而决定是否进行传送。