Перейти к содержимому
Mineforgian

RandomTeleporter

Added two commands for random teleportation

Загрузки
4K
Подписчики
5
Обновлён
17 июня 2026 г.
Лицензия
WTFPL

Опубликован 18 ноября 2023 г.

Note: This document was originally written in Chinese and translated into other languages using AI. If circumstances permit, it's recommended to read the original Chinese documentation instead of other translated versions.
简体中文(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
    Teleports TheWhiteDog9487 back to their position before their last random teleport.

  • /rtp TheWhiteDog9487 back
    Teleports TheWhiteDog9487 back to their position before their last random teleport.

  • /rtp 1000
    Teleports the player to a random point within a radius of 1000 centered at (0,0).

  • /rtp TheWhiteDog9487
    Teleports TheWhiteDog9487 to a random point within the area centered at (0,0) with a random radius of 2.9e7 - 1e4.

  • /rtp TheWhiteDog9487 1000
    Teleports TheWhiteDog9487 to a random point within a radius of 1000 centered at (0,0).

  • /rtp 1000 TheWhiteDog9487
    Teleports TheWhiteDog9487 to a random point within a radius of 1000 centered at (0,0).

  • /rtp 1000 10000 10000
    Teleports the player to a random point within a radius of 1000 centered at (10000,10000).

  • /rtp 1000 TheWhiteDog9487 TheWhiteDog_CN
    Teleports TheWhiteDog9487 to a random point within a radius of 1000 centered at TheWhiteDog_CN's location.

  • /rtp 1000 TheWhiteDog9487 10000 10000
    Teleports TheWhiteDog9487 to a random point within a radius of 1000 centered at (10000,10000).

  • /rtp TheWhiteDog9487 1000 TheWhiteDog_CN
    Teleports TheWhiteDog9487 to a random point within a radius of 1000 centered at TheWhiteDog_CN's location.

  • /rtp TheWhiteDog9487 1000 10000 10000
    Teleports TheWhiteDog9487 to a random point within a radius of 1000 centered 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
    Teleports TheWhiteDog9487 to a random point within the same rectangular region described above.

  • /rtp 10000.0 10000.0 20000.0 20000.0 TheWhiteDog9487
    Teleports TheWhiteDog9487 to 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 of TheWhiteDog9487 and TheWhiteDog_CN.

  • /rtp TheWhiteDog9487 TheWhiteDog_CN TheWhiteDog4568
    Teleports TheWhiteDog4568 to a random point within a rectangular region whose diagonals are the current positions of TheWhiteDog9487 and TheWhiteDog_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:

  1. Singleplayer
    1. There is no physical server, so the server side does not matter.
    2. Installing it on the client is enough.
  2. Singleplayer + Open to LAN
    1. This uses the client’s built-in server, so the player who opens the LAN world needs the mod installed on their client.
    2. Other players who join do not need to install it.
  3. Dedicated server (something like a server.jar file)
    1. The server needs the mod installed.
    2. 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.

Ченджлог

0.5.4Релиз26.2 · 17 июня 2026 г.

修复单人游戏时在世界内切换语言后命令执行失败的问题
命令提示文本在切换语言之后支持热重载了,不再需要重启集成服务器

0.5.3Релиз26.2 · 17 июня 2026 г.

更新到Minecraft 26.2

0.5.3Релиз26.1.2 · 16 июня 2026 г.

使用Kotlin重写

坏了搞砸了,这个更新应该跟着过一会的26.2正式版一起推的

0.5.2Релиз26.1.2 · 10 апреля 2026 г.

更新到Minecraft 26.1.2

0.5.2Релиз26.1.1 · 4 апреля 2026 г.

支持Minecraft 26.1.1
增加回溯到随机传送前的位置的功能
( 愚人节OTA正式版,那相当有操作了
( AI写代码未必靠谱,但是翻译还是很不错的

0.5.1Релиз26.1 · 26 марта 2026 г.

支持Minecraft 26.1

0.5.0Бета1.21.11 · 11 февраля 2026 г.
  1. 将不存在翻译文本时的fallback文本的“被传送玩家名(PlayerID)”的中英文顺序颠倒过来变成“PlayerID(被传送玩家名)”以和其他文本保持一致
  2. 支持通过对角线坐标设置随机坐标选取范围

远离边界这个保护的实现有问题,然后地狱末地什么玩意的也不对,重试机制也不存在,这些之后再鸽
然后按照惯例来说加新功能=加新Bug,所以这次先开在beta通道

0.4.0Релиз1.21.11 · 11 декабря 2025 г.

更新到Minecraft 1.21.11

想看0.4.0相较0.3.6改了些什么的话请看这个

Комментарии

Загружаем…