SimpleTPA
一个轻量级、兼容原版的数据包,为你的 Minecraft 服务器添加了玩家间传送请求(TPA)和多家园系统。无需模组,无需客户端安装,直接放入并重新加载即可。
在 Minecraft 1.20.1 上构建并测试。由于仅使用原版命令,它也能与 Better Minecraft (BMC4) 等整合包配合使用。单人游戏同样适用——仅多家园系统这一项功能就足以让它值得安装在单人世界中。
特性:
- 玩家传送请求 (TPA) - 通过聊天中的可点击菜单向其他玩家发送传送请求。无需手动输入名字。
- 多个传入请求 - 每位玩家拥有 5 个请求槽位,可以通过可点击按钮单独接受或拒绝每个请求。
- 多家园系统 - 每位玩家拥有 5 个家园槽位。通过简洁的可点击菜单设置、传送和删除家园。
- 跨维度传送 - 家园可以在主世界、下界和末地之间工作。
- 合理的默认值 - 60秒请求超时,5秒家园冷却时间,3秒发送冷却时间。
- 玩家无需 OP 权限 - 使用原版 /trigger 命令,任何玩家均可使用。
命令
所有命令均使用 Minecraft 的 /trigger 系统,非 OP 玩家也可以使用。
玩家传送
/trigger tpa.menu - 打开在线玩家列表的可点击菜单,以请求传送至目标玩家
/trigger tpa.requests - 查看所有传入的请求,并提供接受/拒绝按钮
/trigger tpa.cancel - 取消你发出的传出请求
家园
/trigger tpa.home - 打开家园传送菜单(点击即可传送)
/trigger tpa.homes - 查看和管理家园(设置/传送/删除)
/trigger tpa.sethome set <1-5> - 在第 N 个槽位设置家园
/trigger tpa.delhome set <1-5> - 删除第 N 个家园
其他
/trigger tpa.help - 显示所有命令
使用该数据包最简单的方法是键入 /trigger tpa.help 并点击按钮。
安装
- 停止你的服务器。
- 下载
SimpleTPA.zip。
- 将其放入世界的
datapacks 文件夹中(例如 world/datapacks/)。
- 解压 zip 文件 —— 你应该能看到
world/datapacks/SimpleTPA/pack.mcmeta。
- 启动服务器。聊天栏中将显示
[SimpleTPA] Datapack loaded!。
运行 /datapack list 以确认 [file/SimpleTPA] 出现在已启用列表中。
已知限制
- 仅限原版维度的家园 - 主世界、下界和末地。不支持作为家园目的地的模组维度(如 Aether、Twilight Forest 等)。
- 每位玩家固定为 5 个家园槽位和 5 个请求槽位。
- TPA 菜单列表中最多显示 20 名玩家。
- 家园的位置精度 - 你将落在你设置家园的那个方块的中心(不支持子方块级别的精度)。
为什么选择数据包?
数据包仅存在于服务端,不需要玩家安装任何东西。你可以将其添加到任何原版 1.20.1 服务器中,包括运行 BMC4 等整合包的模组服务器,而不会破坏兼容性。单人存档也支持数据包——只需像上面一样将其放入保存文件的 datapacks 文件夹即可。
许可证
MIT — 免费使用、修改和再分发。感谢署名但非必需。
SimpleTPA
A lightweight, vanilla-compatible datapack that adds player-to-player teleport requests (TPA) and a multi-home system to your Minecraft server. No mods, no client-side installation, just drop it in and reload.
Built and tested on Minecraft 1.20.1. Works with modpacks like Better Minecraft (BMC4) since it only uses vanilla commands. Also great for single player — the multi-home system alone makes it worth installing on a solo world.
Features:
- Player teleport requests (TPA) - Send teleport requests to other players with a clickable in-chat menu. No name typing required.
- Multiple incoming requests - Each player has 5 request slots and can accept or deny each one individually with clickable buttons.
- Multi-home system - Each player gets 5 home slots. Set, teleport, and delete homes through a clean clickable menu.
- Cross-dimension teleport - Homes work in the Overworld, Nether, and End.
- Sensible defaults - 60s request timeout, 5s home cooldown, 3s send cooldown.
- No OP required for players - Uses vanilla /trigger so any player can use it.
Commands
All commands use Minecraft's /trigger system, which works for non-OP players.
Player teleport
- /trigger tpa.menu - Open a clickable list of online players to request teleport to
- /trigger tpa.requests - View all incoming requests with accept/deny buttons
- /trigger tpa.cancel - Cancel your outgoing request
Homes
- /trigger tpa.home - Open the home teleport menu (click to teleport)
- /trigger tpa.homes - View and manage homes (set/teleport/delete)
- /trigger tpa.sethome set <1-5> - Set a home in slot N
- /trigger tpa.delhome set <1-5> - Delete home N
Other
- /trigger tpa.help - Show all commands
The easiest way to use the datapack is to type /trigger tpa.help and click the buttons.
Installation
- Stop your server.
- Download
SimpleTPA.zip.
- Place it in your world's
datapacks folder (e.g. world/datapacks/).
- Extract the zip — you should have
world/datapacks/SimpleTPA/pack.mcmeta.
- Start the server. You'll see
[SimpleTPA] Datapack loaded! in chat.
Run /datapack list to confirm [file/SimpleTPA] appears in the enabled list.
Known Constraints
- Vanilla dimensions only for homes - Overworld, Nether, and End. Modded dimensions (Aether, Twilight Forest, etc.) aren't supported as home destinations.
- 5 home slots and 5 request slots per player - fixed limits.
- Up to 20 players can appear in the TPA menu list.
- Block precision for homes - you'll land in the center of the block you set home in (no sub-block accuracy).
Why a datapack?
Datapacks are server-side only and don't require players to install anything. You can add this to any vanilla 1.20.1 server, including modded servers running modpacks like BMC4, without breaking compatibility. Single player worlds support datapacks too — just drop it in your save's datapacks folder the same way.
License
MIT — free to use, modify, and redistribute. Credit appreciated but not required.
评论 0
登录后参与评分
还没有评论,来抢沙发吧