TPA 数据包
一个简单轻量的 Minecraft 传送请求(TPA)系统,由数据包和计分板驱动。
功能
- 使用
/trigger 向其他玩家发送传送请求
- 目标玩家会收到一条包含可点击按钮的消息以接受请求
- 一旦接受,请求者将立即传送到目标所在位置
- 无需注册命令 —— 基于原版
/trigger 机制
要求
- Minecraft Java Edition
- Scoreboard ID Mod(必需依赖)
此数据包依赖于模组或数据驱动系统提供的 scoreboard id 功能,该系统通过计分板目标分配唯一 ID。
必须在加载此数据包前安装并启用。
使用方法
-
发送 TPA 请求
在聊天栏运行以下命令:
/trigger teleport.tpa set <player_id>
将 <player_id> 替换为目标玩家的 计分板 ID。
-
接收请求
目标玩家将收到一条聊天消息,其中包含可点击的 [Accept] 按钮。
-
接受请求
目标玩家点击 [Accept]。
→ 请求者将立即传送到其所在位置。
注意事项
- 每位玩家同时只能有一个活跃的请求。
- 若未被接受,请求将在短暂时间后自动过期。
- 此数据包不会修改核心游戏玩法机制,仅涉及传送功能。
- 兼容多人服务器。
安装方法
- 下载并将数据包放入世界的
datapacks 文件夹中。
- 重启服务器或运行
/reload。
- 确保 Scoreboard ID 依赖项已正确配置。
卸载方法
- 从
datapacks 文件夹中删除该数据包。
- 运行
/reload。
- 如不再需要,可选择性地移除相关的计分板目标。
简单。快速。对原版友好。
TPA Datapack
A simple and lightweight Teleport Request (TPA) system for Minecraft, powered by datapacks and scoreboards.
Features
- Request to teleport to another player using
/trigger
- Target player receives a clickable message to accept the request
- Once accepted, the requester is instantly teleported to the target's location
- No commands registration required — uses vanilla
/trigger mechanics
Requirements
- Minecraft Java Edition
- Scoreboard ID Mod (Required Dependency)
This datapack relies on the scoreboard id feature provided by a mod or data-driven system that assigns unique IDs via scoreboard objectives.
Must be installed and enabled before loading this datapack.
How to Use
-
Send a TPA Request
Run the following command in chat:
/trigger teleport.tpa set <player_id>
Replace <player_id> with the target player's scoreboard ID.
-
Receive the Request
The target player will receive a chat message with a clickable [Accept] button.
-
Accept the Request
The target player clicks [Accept].
→ The requester is immediately teleported to their location.
Notes
- Only one active request per player at a time.
- Requests automatically expire after a short duration if not accepted.
- This datapack does not modify core gameplay mechanics beyond teleportation.
- Compatible with multiplayer servers.
Installation
- Download and place the datapack into your world's
datapacks folder.
- Restart the server or run
/reload.
- Ensure the Scoreboard ID dependency is properly configured.
Uninstallation
- Delete the datapack from the
datapacks folder.
- Run
/reload.
- Optionally remove related scoreboard objectives if no longer needed.
Simple. Fast. Vanilla-friendly.
评论 0
登录后参与评分
还没有评论,来抢沙发吧