传送指令
一款服务器端的 Fabric 模组,为玩家提供传送指令。无需安装客户端模组。原版客户端即可使用所有功能。该模组仅需安装在服务器上。
安装
- 为你的 Minecraft 版本安装 Fabric Loader。
- 安装 Fabric API。
- 下载与你的游戏版本匹配的模组 JAR 文件,并将其放入服务器的
mods文件夹中。 - 重启服务器。配置文件将在首次运行时生成于
config/teleport_commands.json。
支持版本
| 模组版本 | 游戏版本 | 加载器 |
|---|---|---|
| 1.0.3 | 1.21 - 1.21.11 | Fabric |
| 1.0.3 | 26.1 - 26.1.2 | Fabric |
| 1.0.3 | 26.2 | Fabric |
| 1.0.3 | 26.3 | Fabric |
指令
| 指令 | 描述 |
|---|---|
/sethome <name> |
将当前位置保存为个人家点。 |
/home <name> |
传送至你的某个家点。若无参数,则传送至名为 home 的家点,若不存在该名称,则传送至你的第一个家点。 |
/delhome <name> |
删除你的某个家点。 |
/homes |
列出你的家点。点击名称可传送至该处,点击 [X] 可将其删除。 |
/defaulthome <name> |
验证家点是否存在并确认,同时发送一条消息。 |
/setwarp <name> |
在你所在的位置创建传送点。管理员创建的是全局传送点,所有人都可使用;其他玩家创建的是个人传送点。 |
/warp <name> |
传送至某个传送点。若无参数,则列出你可用的所有传送点。 |
/delwarp <name> |
删除一个传送点。管理员可以删除任意传送点,其他玩家只能删除自己的个人传送点。 |
/renamewarp <old> <new> |
重命名一个传送点。管理员可以重命名任意传送点。 |
/tpa <player> |
向一名玩家发送传送请求。按 Tab 键可自动补全玩家名称。 |
/tpahere <player> |
要求一名玩家传送至你的位置。 |
/tpaaccept [player] |
接受传送请求。若无参数,则接受最早的待处理请求。 |
/tpadeny [player] |
拒绝传送请求。若无参数,则拒绝最早的待处理请求。 |
/back |
返回你上次死亡的位置。 |
/spawn |
传送至你的床重生点,若没有床则传送至世界出生点。 |
/worldspawn |
传送至世界出生点。 |
/rtp |
在配置的半径范围内随机传送至安全地面。搜索过程跨越多个服务器刻(ticks),因此绝不会导致卡顿或踢出玩家。 |
/wild [dimension] |
以更大半径进行随机传送。接受可选的维度参数,例如 minecraft:the_nether。可在配置文件中禁用此功能。 |
传送请求会在聊天栏中显示可点击的绿色 [ACCEPT] 和红色 [DENY] 按钮,因此目标玩家无需输入任何指令。发送传送请求对每个玩家有 10 秒的冷却时间。
配置
config/teleport_commands.json 文件在首次运行时创建。删除该文件并重启服务器即可恢复默认设置。每个指令部分均支持以下选项:
| 设置项 | 默认值 | 描述 |
|---|---|---|
enabled |
true |
设为 false 可完全禁用该指令。例如用于关闭 /wild。 |
teleport_delay_seconds |
0 |
预留设置项,目前无效果。 |
default_safety_check |
true |
在传送前检查目的地是否有坚实的地面、足够的空间以及没有岩浆、火焰或液体。如果地点不安全,则将传送至最近的安全地点。 |
rtp 和 wild 部分还有额外的选项:
| 设置项 | RTP 默认值 | Wild 默认值 | 描述 |
|---|---|---|---|
min_distance |
1000 |
2000 |
随机位置距离世界原点的最小水平距离,单位为方块。 |
max_distance |
5000 |
10000 |
随机位置距离世界原点的最大水平距离,单位为方块。 |
preload_chunks |
true |
true |
预留设置项,目前无效果。 |
safe_mode |
true |
false |
当为 true 时,只有具备坚实且非水、非岩浆地面的地点才能通过安全检查,从而跳过海洋区域。当为 false 时,直接使用地表高度,这可能是一个水面。 |
完整默认配置:
{
"global": {
"global_cooldown_seconds": 0
},
"commands": {
"worldspawn": { "enabled": true, "teleport_delay_seconds": 0, "default_safety_check": true },
"back": { "enabled": true, "teleport_delay_seconds": 0, "default_safety_check": true },
"home": { "enabled": true, "teleport_delay_seconds": 0, "default_safety_check": true },
"warp": { "enabled": true, "teleport_delay_seconds": 0, "default_safety_check": true },
"rtp": {
"enabled": true,
"teleport_delay_seconds": 0,
"default_safety_check": true,
"min_distance": 1000,
"max_distance": 5000,
"preload_chunks": true,
"safe_mode": true
},
"wild": {
"enabled": true,
"teleport_delay_seconds": 0,
"default_safety_check": true,
"min_distance": 2000,
"max_distance": 10000,
"preload_chunks": true,
"safe_mode": false
},
"spawn": { "enabled": true, "teleport_delay_seconds": 0, "default_safety_check": true },
"tpa": { "enabled": true, "teleport_delay_seconds": 0, "default_safety_check": true }
}
}
数据存储
家点、传送点和死亡位置作为 JSON 文件保存在 config/teleport-commands/storage/ 目录下(分别为 homes.json、warps.json、back_locations.json、tpa_requests.json),并在服务器重启后保留数据。
Teleport Command
A server-side Fabric mod that adds teleportation commands for players. No client mod is required. Vanilla clients can use every feature. The mod only needs to be installed on the server.
Installation
- Install Fabric Loader for your Minecraft version.
- Install Fabric API.
- Download the mod JAR that matches your game version and place it in the server
modsfolder. - Restart the server. The config file is generated at
config/teleport_commands.jsonon first run.
Supported versions
| Mod version | Game versions | Loader |
|---|---|---|
| 1.0.3 | 1.21 - 1.21.11 | Fabric |
| 1.0.3 | 26.1 - 26.1.2 | Fabric |
| 1.0.3 | 26.2 | Fabric |
| 1.0.3 | 26.3 | Fabric |
Commands
| Command | Description |
|---|---|
/sethome <name> |
Save your current position as a personal home. |
/home <name> |
Teleport to one of your homes. With no argument, teleports to the home named home, or your first home if none has that name. |
/delhome <name> |
Delete one of your homes. |
/homes |
List your homes. Click a name to teleport to it, click [X] to delete it. |
/defaulthome <name> |
Verify a home exists and confirm it with a message. |
/setwarp <name> |
Create a warp at your position. Operators create global warps usable by everyone, other players create personal warps. |
/warp <name> |
Teleport to a warp. With no argument, lists all warps available to you. |
/delwarp <name> |
Delete a warp. Operators can delete any warp, other players can only delete their own personal warps. |
/renamewarp <old> <new> |
Rename a warp. Operators can rename any warp. |
/tpa <player> |
Send a teleport request to a player. Player names autocomplete when pressing tab. |
/tpahere <player> |
Ask a player to teleport to your position. |
/tpaaccept [player] |
Accept a teleport request. With no argument, accepts the oldest pending request. |
/tpadeny [player] |
Deny a teleport request. With no argument, denies the oldest pending request. |
/back |
Return to your last death location. |
/spawn |
Teleport to your bed respawn point, or the world spawn if you have none. |
/worldspawn |
Teleport to the world spawn point. |
/rtp |
Random teleport to safe ground within the configured radius. The search runs over several server ticks so it never freezes or kicks players. |
/wild [dimension] |
Random teleport with a wider radius. Accepts an optional dimension such as minecraft:the_nether. Can be disabled in the config. |
Teleport requests show clickable green [ACCEPT] and red [DENY] buttons in chat, so the target player never has to type a command. Sending a teleport request has a 10 second cooldown per player.
Configuration
The file config/teleport_commands.json is created on first run. Delete it and restart the server to regenerate the defaults. Every command section supports the following options:
| Setting | Default | Description |
|---|---|---|
enabled |
true |
Set to false to disable the command entirely. Used for example to turn off /wild. |
teleport_delay_seconds |
0 |
Reserved setting, currently has no effect. |
default_safety_check |
true |
Check that the destination has solid ground, free space and no lava, fire or fluids before teleporting. If the spot is unsafe, the nearest safe spot is used instead. |
The rtp and wild sections have additional options:
| Setting | RTP default | Wild default | Description |
|---|---|---|---|
min_distance |
1000 |
2000 |
Minimum horizontal distance from the world origin for random locations, in blocks. |
max_distance |
5000 |
10000 |
Maximum horizontal distance from the world origin for random locations, in blocks. |
preload_chunks |
true |
true |
Reserved setting, currently has no effect. |
safe_mode |
true |
false |
When true, only locations with solid non-water, non-lava ground pass the safety check, so oceans are skipped. When false, the surface height is used directly, which can be a water surface. |
Full default config:
{
"global": {
"global_cooldown_seconds": 0
},
"commands": {
"worldspawn": { "enabled": true, "teleport_delay_seconds": 0, "default_safety_check": true },
"back": { "enabled": true, "teleport_delay_seconds": 0, "default_safety_check": true },
"home": { "enabled": true, "teleport_delay_seconds": 0, "default_safety_check": true },
"warp": { "enabled": true, "teleport_delay_seconds": 0, "default_safety_check": true },
"rtp": {
"enabled": true,
"teleport_delay_seconds": 0,
"default_safety_check": true,
"min_distance": 1000,
"max_distance": 5000,
"preload_chunks": true,
"safe_mode": true
},
"wild": {
"enabled": true,
"teleport_delay_seconds": 0,
"default_safety_check": true,
"min_distance": 2000,
"max_distance": 10000,
"preload_chunks": true,
"safe_mode": false
},
"spawn": { "enabled": true, "teleport_delay_seconds": 0, "default_safety_check": true },
"tpa": { "enabled": true, "teleport_delay_seconds": 0, "default_safety_check": true }
}
}
Data storage
Homes, warps and death locations are saved as JSON files under config/teleport-commands/storage/ (homes.json, warps.json, back_locations.json, tpa_requests.json) and survive server restarts.
下载 Teleport Command
下载 Teleport Command
下载 Teleport Command
下载 Teleport Command
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Teleport Command
下载 Teleport Command
下载 Teleport Command
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Teleport Command
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Teleport Command
下载 Teleport Command
新增对 Minecraft 26.3 的支持。RTP 和 Wild 现在基于服务器刻进行大范围搜索,避免大范围搜索导致玩家被踢出。为 rtp 和 wild 新增了 safe_mode 和 enabled 选项。TPA 请求显示可点击的“接受”和“拒绝”按钮。家园和传送列表新增删除按钮。所有聊天消息重新设计样式。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧