Kid Survival
一款面向儿童友好型 Minecraft 服务器的 Fabric 服务端模组。通过 /kid 命令为年幼玩家切换无敌状态,或使用 /hunter 开启多人“猎人捉人”游戏。
功能特性
儿童模式(Kid Mode)
/kid 切换 — 授予无敌状态并持续恢复生命值
- 所有玩家均可使用,无需操作员权限
- 状态在服务器重启后保持
饥饿模式(Hunger Mode)
/hunger 切换 — 保持食物值和饱和度始终满格,让玩家永远不会感到饥饿
- 独立于儿童模式;可单独启用其中一项,或同时启用两者
- 组合状态显示在操作栏中(例如“儿童模式 + 无饥饿”、“儿童模式激活”或“无饥饿”)
- 所有玩家均可使用,无需操作员权限
- 状态在服务器重启后保持
猎人捉人(Hunter Tag)
/hunter 开始一轮游戏 — 执行命令的玩家成为猎人,其他所有人成为逃跑者
- 猎人将被冻结 30 秒,随后开始追逐逃跑者
- 通过近战攻击标记(Tag)逃跑者(不造成伤害,与儿童模式兼容)
- 被标记的逃跑者变为猎人
- 当最后一名逃跑者被标记时,将公布分数并自动开始新一轮游戏
- 使用彩色队伍名称(
[Hunter]/[Runner]),猎人身上有发光效果
- 操作栏显示角色身份及冻结倒计时
- 累计各轮游戏中逃跑者的存活时间进行计分
- 处理断线(暂停/恢复)和游戏中加入的情况
/bench 让某玩家完全退出 — 被 Bench 的玩家在游戏开始时会被跳过,且不会在游戏中途自动加入
- 游戏状态和分数在服务器重启后保持
依赖要求
- Minecraft 26.2
- Fabric Loader 0.19.3+
- Fabric API(匹配 MC 版本)
- Java 25
- 仅限服务端 — 无需客户端模组
安装方法(Prism Launcher)
- 在 Prism Launcher 中创建或选择 Minecraft 26.2 实例
- 点击 编辑实例 > 版本 选项卡 > 安装 Fabric — 选择 loader 0.19.3+
- 从 Modrinth 下载 Fabric API(匹配 Minecraft 版本 26.2)
- 构建或获取
kidsurvival-2.2.2.jar(参见 从源码构建)
- 点击 编辑实例 > 模组 选项卡 > 添加 — 添加 Fabric API 和 Kid Survival 的 JAR 文件
- 对于专用服务器:将两个 JAR 文件放入服务器的
mods/ 文件夹中
用法
/kid — 切换无敌状态(任何玩家均可执行)
/hunger — 切换无饥饿模式,保持食物值和饱和度满格(任何玩家均可执行)
/hunter — 开始猎人捉人游戏(需要至少 2 名未被 Bench 的在线玩家)
/bench — 切换是否退出猎人捉人游戏(任何玩家均可执行)
从源码构建
git clone <repo-url>
cd kidsurvival
./gradlew build
输出 JAR 文件:build/libs/kidsurvival-2.2.2.jar
故障排除
- /kid 命令未找到: 确保模组 JAR 和 Fabric API 都位于
mods/ 文件夹中,并且服务器已重启。
- 重启后儿童模式未保持: 检查服务器是否正常关闭(非强制终止)。状态仅在正常关机时保存。
- 版本不匹配错误: 确保 Fabric API 版本与你的 Minecraft 版本(26.2)匹配。
- /hunter 提示需要 2+ 名玩家: 猎人捉人游戏至少需要 2 名在线玩家才能开始一轮。
- 猎人捉人游戏无法启动: 该命令必须由玩家执行,而非服务器控制台。
更新日志
请参阅 CHANGELOG.md 查看发行历史。
许可证
MIT
Kid Survival
A Fabric server-side mod for kid-friendly Minecraft servers. Toggle invulnerability for young players with /kid, or start a multiplayer Hunter Tag game with /hunter.
Features
Kid Mode
/kid toggle — grants invulnerability and continuous health restoration
- Available to all players, no operator permissions needed
- State persists across server restarts
Hunger Mode
/hunger toggle — keeps food and saturation maxed so the player never gets hungry
- Independent of Kid Mode; enable either on its own or both together
- Combined status is shown in the action bar ("Kid Mode + No Hunger", "Kid Mode Active", or "No Hunger")
- Available to all players, no operator permissions needed
- State persists across server restarts
Hunter Tag
/hunter starts a round — the invoking player becomes the hunter, everyone else becomes a runner
- Hunter is frozen for 30 seconds, then chases runners
- Tag runners by melee attack (no damage dealt, compatible with kid mode)
- Tagged runners become hunters
- When the last runner is tagged, scores are reported and a new round auto-starts
- Colored team names (
[Hunter]/[Runner]) and glowing effect on hunters
- Role shown in action bar with freeze countdown
- Cumulative runner-time scoring across rounds
- Handles disconnects (pause/resume) and mid-game joins
/bench opts a player out entirely — benched players are skipped when rounds start and never auto-join mid-game
- Game state and scores persist across server restarts
Requirements
- Minecraft 26.2
- Fabric Loader 0.19.3+
- Fabric API (matching MC version)
- Java 25
- Server-side only — no client mod needed
Installation (Prism Launcher)
- Create or select a Minecraft 26.2 instance in Prism Launcher
- Click Edit Instance > Version tab > Install Fabric — select loader 0.19.3+
- Download Fabric API from Modrinth (match Minecraft version 26.2)
- Build or obtain
kidsurvival-2.2.2.jar (see Building from Source)
- Click Edit Instance > Mods tab > Add — add both the Fabric API and Kid Survival JARs
- For dedicated servers: place both JARs in the server's
mods/ folder
Usage
/kid — toggle invulnerability (any player can run it)
/hunger — toggle no-hunger mode, keeping food and saturation full (any player can run it)
/hunter — start a Hunter Tag round (needs 2+ non-benched online players)
/bench — toggle opting out of Hunter Tag (any player can run it)
Building from Source
git clone <repo-url>
cd kidsurvival
./gradlew build
Output JAR: build/libs/kidsurvival-2.2.2.jar
Troubleshooting
- /kid command not found: Ensure the mod JAR and Fabric API are both in the
mods/ folder and the server has restarted.
- Kid mode didn't persist after restart: Check that the server shut down cleanly (not force-killed). State is saved during normal shutdown.
- Version mismatch errors: Ensure Fabric API version matches your Minecraft version (26.2).
- /hunter says need 2+ players: Hunter Tag requires at least 2 online players to start a round.
- Hunter Tag game won't start: The command must be run by a player, not the server console.
Changelog
See CHANGELOG.md for the release history.
License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧