概述
本模组是一款快速的随机传送命令模组,不会因为传送而导致卡顿。
命令
权限
fast-rtp.command.root - 当配置文件中的 requirePermission 设置为 true 时,允许玩家使用 /rtp 命令。
fast-rtp.command.advanced - 允许您传送其他玩家,指定维度,半径等。
fast-rtp.command.reload - 重新加载配置。
fast-rtp.bypass.cooldown - 允许玩家绕过 RTP 冷却时间。
配置文件
配置文件位于 /config/fast-rtp.json。
{
// 是否需要玩家拥有 "fast-rtp.command.root" 权限才能使用 /rtp 命令。
"requirePermission": false,
// 是否应该使用玩家当前所在的世界作为 /rtp 的传送维度。
// 如果为 false,则在命令中未指定维度时将使用默认世界。
"useCurrentWorld": false,
// 添加严格的目标/移动检查,以防止玩家使用该命令逃脱危险情况。
"useStrictTeleportCheck": false,
// /rtp 命令使用的默认维度。
"defaultDimension": "minecraft:overworld",
// 从世界中心搜索安全位置的最大半径。
// 如果设置为 -1,则半径将扩展至世界边界。
"radius": -1,
// 从世界中心搜索安全位置的最小半径。
"minRadius": 0,
// 检查周围危险方块的半径。不会超过 4。
"safetyCheckRadius": 1,
// 使用 /rtp 后应用的冷却时间(以秒为单位)。
"cooldown": 30,
// 可以被位置查找器跳过的特定生物群系标识符。
// 这些也可以用于跳过昂贵的区块加载,显著加快位置查找速度。
"blackListedBiomes": [
"minecraft:small_end_islands",
"minecraft:the_end",
"minecraft:the_void"
],
// 可以被位置查找器跳过的生物群系标签。
"blackListedBiomeTags": [
"minecraft:is_beach",
"minecraft:is_ocean",
"minecraft:is_deep_ocean",
"minecraft:is_river"
],
// 命令消息。使用 https://placeholders.pb4.eu/user/text-format/ ↗ 进行文本格式化。
"messages": {
"rtpStartSearch": "<yellow>正在搜索安全位置...",
"rtpLocFound": "<yellow>在 ${seconds} 秒内找到了安全位置",
"rtpTeleportPlayer": "<dark_aqua>传送到 <green>${x} ${y} ${z} <dark_aqua>在 <green>${world}",
"rtpLocNotFound": "<red>[✖] 找不到安全位置!",
"rtpOnCooldown": "<red>[✖] <gold>请等待 <yellow>${seconds} <gold>秒后再次使用 RTP!",
"preventedRtp": "<red>[✖] 无法开始随机传送。\n原因:${reason}",
"rtpBackSuccess": "<dark_aqua>传送回您上次的随机传送位置!",
"rtpBackLocNotFound": "<red>[✖] 您没有最近的随机传送。",
"preventedRtpBack": "<red>[✖] 无法传送回您的上一个 RTP 位置。\n原因:${reason}",
"tpSecondsLeft": "<yellow>${seconds} 秒后传送...",
"tpCancelled": "<red>[✖] 传送已取消。"
}
}