Compatibility
Minecraft: Java Edition
Platforms
Links
Tags
Creators
Details
English:
Relay Challenge
Relay Challenge turns a Minecraft survival world into a multiplayer relay adventure.
Only one participant—the Active Player—can play normally at a time. All other participants become spectators and follow the action. When the configurable timer reaches zero, another player is randomly selected to take over.
The relay continues until the Ender Dragon is defeated.
Features
- Randomly selects an Active Player
- Automatically rotates players after a configurable duration
- Supports hours, minutes, and seconds
- Displays the remaining time using a Boss Bar
- Allows administrators to pause, resume, stop, or force the next rotation
- Places all inactive participants in Spectator Mode
- Prevents spectators from travelling too far away from the Active Player
- Supports cross-dimensional spectator following
- Automatically handles players joining or disconnecting
- Restores each participant's original game mode when the challenge ends
- Optionally transfers the inventory, hotbar, armor, and offhand items to the next player
- Preserves the challenge state across server restarts
- Automatically pauses the relay when the Ender Dragon is defeated
Death Counter Sidebar
The sidebar displays every visible participant and their number of deaths during the current challenge.
[ACTIVE] Player1 (0)
[BACKUP] Player2 (1)
[BACKUP] Player3 (0)
- The Active Player is displayed in green
- Backup players are displayed in gray
- The Active Player always appears at the top
- Death statistics reset when a new challenge begins
- The sidebar updates automatically after every rotation
Minecraft's sidebar can display a maximum of 15 entries, so only 15 participants can be shown at once.
Ender Dragon Celebration
When the Ender Dragon is defeated:
- The automatic relay system is paused
- The dragon slayer's name is announced in chat
- A title and subtitle are shown to every player
- Challenge completion sounds are played
- Three waves of colorful fireworks are launched around the dragon slayer
- The Boss Bar displays the completed state
Installation
- Download the datapack ZIP file.
- Place it directly inside:
.minecraft/saves/<world>/datapacks
- Do not extract the ZIP.
- Enter the world and run:
/reload
- Verify the installation with:
/function relay:help
Quick Start
Add every online player to the challenge:
/function relay:player/join_all
Set each turn to 10 minutes:
/function relay:config/time {hours:0,minutes:10,seconds:0}
Set the maximum spectator distance to 64 blocks:
/function relay:config/distance {blocks:64}
Start the challenge:
/function relay:start
Administration Commands
/function relay:help
/function relay:start
/function relay:pause
/function relay:resume
/function relay:rotate
/function relay:stop
/function relay:status
Player Management
Add yourself:
/function relay:player/join
Add a specific player:
/execute as <player> run function relay:player/join
Add every online player:
/function relay:player/join_all
Remove yourself:
/function relay:player/leave
Remove a specific player:
/execute as <player> run function relay:player/leave
Clear the participant list:
/function relay:player/leave_all
The participant list can only be changed while the challenge is stopped.
Configuration
Turn Duration
/function relay:config/time {hours:1,minutes:30,seconds:0}
Valid values:
- Hours:
0–999 - Minutes:
0–59 - Seconds:
0–59 - The total duration cannot be zero
Spectator Distance
/function relay:config/distance {blocks:64}
Valid range: 1–100000 blocks.
Shared Inventory
Shared Inventory Mode is disabled by default.
Enable it with:
/function relay:config/inventory_on
Disable it with:
/function relay:config/inventory_off
When enabled, the outgoing player's inventory, hotbar, armor, and offhand item are transferred to the next Active Player.
Warning: Shared Inventory Mode overwrites the incoming player's existing items. Empty all participant inventories or create a world backup before enabling it.
Compatibility
- Minecraft: Java Edition 26.1
- Data Pack Format: 101.1
- Works in vanilla Minecraft
- Compatible with Fabric
- No resource pack is required
- Multiplayer recommended
- Operator permissions are required for administration commands
Important Notes
- Use
/function relay:stopbefore removing or updating the datapack. - Back up your world before enabling Shared Inventory Mode.
- Player deaths do not immediately trigger a rotation.
- If the Active Player disconnects, another online participant is selected automatically.
- If no participants are online, the timer is paused.
- Players joining during an active challenge become spectators and are added to future rotations.
中文版:
接力挑战
接力挑战将普通的 Minecraft 生存世界变成一场多人轮流游玩的接力冒险。
任何时候都只有一名参与者作为绿色标记的主体玩家正常游玩,其他参与者则成为观察者观看游戏。设定的倒计时结束后,数据包会随机选择下一名玩家接棒。
接力将持续进行,直到参与者击败末影龙。
主要功能
- 随机选择一名主体玩家
- 在设定时间结束后自动轮换玩家
- 支持设置小时、分钟和秒
- 使用 BossBar 显示剩余时间
- 管理员可以暂停、继续、结束或立即触发下一次轮换
- 自动将非主体参与者切换为观察者模式
- 限制观察者与主体玩家之间的最大距离
- 支持跨维度跟随主体玩家
- 自动处理新玩家加入和主体玩家离线
- 游戏结束后恢复参与者原来的游戏模式
- 可选择将背包、快捷栏、装备和副手物品交给下一名玩家
- 服务器重新启动后保留挑战状态
- 击败末影龙后自动暂停轮换机制
死亡统计侧边栏
侧边栏会显示当前可见的参与者,以及他们在本局挑战中的死亡次数。
【主体】玩家1 (0)
【替补】玩家2 (1)
【替补】玩家3 (0)
- 主体玩家显示为绿色并固定在第一行
- 替补玩家显示为灰色
- 每次开始新挑战时清零死亡次数
- 玩家轮换或新玩家加入时自动刷新侧边栏
- 结束挑战后自动关闭侧边栏
Minecraft 原版侧边栏最多显示 15 个记分项,因此同时最多显示 15 名参与者。
末影龙击杀庆祝
末影龙被击败后:
- 自动暂停玩家轮换机制
- 在聊天栏公布击杀末影龙的玩家
- 向所有玩家显示标题和副标题
- 播放挑战完成与末影龙死亡音效
- 在击杀者附近分三波发射彩色烟花
- BossBar 显示挑战完成状态
安装方法
- 下载数据包 ZIP 文件。
- 将 ZIP 直接放入:
.minecraft/saves/<世界名称>/datapacks
- 不要解压 ZIP。
- 进入世界并执行:
/reload
- 使用以下指令确认数据包已经加载:
/function relay:help
快速开始
将所有在线玩家加入候选名单:
/function relay:player/join_all
将每轮时间设置为 10 分钟:
/function relay:config/time {hours:0,minutes:10,seconds:0}
将观察者最大距离设置为 64 格:
/function relay:config/distance {blocks:64}
开始挑战:
/function relay:start
管理指令
/function relay:help
/function relay:start
/function relay:pause
/function relay:resume
/function relay:rotate
/function relay:stop
/function relay:status
各项指令用途:
help:显示完整的游戏内帮助start:开始挑战并随机选择第一名主体玩家pause:暂停倒计时resume:继续倒计时rotate:立即随机更换主体玩家stop:结束挑战并恢复玩家原来的游戏模式status:查看当前状态、配置、主体玩家和候选名单
玩家名单管理
让自己加入候选名单:
/function relay:player/join
添加指定玩家:
/execute as <玩家> run function relay:player/join
添加所有在线玩家:
/function relay:player/join_all
让自己退出候选名单:
/function relay:player/leave
移除指定玩家:
/execute as <玩家> run function relay:player/leave
清空候选名单:
/function relay:player/leave_all
只有在挑战停止时才能修改候选名单。
配置
设置每轮时间
/function relay:config/time {hours:1,minutes:30,seconds:0}
参数范围:
- 小时:
0–999 - 分钟:
0–59 - 秒:
0–59 - 总时间不能为零
设置观察者最大距离
/function relay:config/distance {blocks:64}
有效范围为 1–100000 格。
观察者超过设定距离,或者与主体玩家处于不同维度时,会被自动传送回主体玩家附近。
共享背包
共享背包模式默认关闭。
开启共享背包:
/function relay:config/inventory_on
关闭共享背包:
/function relay:config/inventory_off
开启后,每次轮换都会将上一名主体玩家的主背包、快捷栏、装备和副手物品交给下一名主体玩家。
**警告:**共享背包模式会覆盖接棒玩家原来的物品。开启前请清空所有参与者的个人物品,或者备份世界。
玩家轮换规则
- 每轮结束后,从在线参与者中随机选择下一名主体玩家
- 数据包会尽量避免连续选择同一名玩家
- 只有一名参与者在线时,该玩家会继续游戏
- 主体玩家离线后,系统会自动选择另一名在线参与者
- 没有参与者在线时,倒计时会自动暂停
- 游戏进行期间加入的新玩家会成为观察者,并加入后续轮换
- 主体玩家死亡后正常重生,不会立即触发轮换
兼容性
- Minecraft Java 版 26.1
- 数据包格式:101.1
- 支持原版 Minecraft
- 兼容 Fabric
- 不需要安装资源包
- 推荐用于多人游戏
- 管理指令需要管理员权限
注意事项
- 删除或更新数据包之前,请先执行
/function relay:stop。 - 开启共享背包前,请备份世界。
- 数据包结束挑战时会恢复参与者开始前的游戏模式。
- 其他数据包如果也占用侧边栏,可能会覆盖本数据包的死亡统计,或者被本数据包覆盖。
- 原版侧边栏最多只能显示 15 名参与者。


