Repository navigation
Add minecraft-server: native Paper Minecraft server - #87
Merged
Merged
Conversation
Paper 1.21.11-132 on the base Java 21, loopback-only by default, with EULA gate, supervisor, console, whitelist, backups and graceful stop. Co-Authored-By: Claude Code <noreply@anthropic.com>
组件审计报告底座 🔴 minecraft-server 1.21.11-132-r1下载 52.3 MB · 装后 52.5 MB · 10 个文件 · 2 个包 (第一次发布)
人要看的:
和别的组件共用的包:无 包清单
CI 实跑 selftest(arm64 + termux-docker)
环境同 App 里 Claude 的 Bash 工具(PREFIX / HOME / TMPDIR / termux-exec),没有 GPU、屏幕、Shizuku。通过只说明「装得上、跑得起来」,安卓特有的问题仍要真机。 |
The supervisor (and the Java server under it) inherited CCAPP_RUN / CCAPP_RUN_ID from the Claude turn that ran `minecraft-server start`, so cccodroid treated it as a leftover of that turn and killed it when the turn was stopped (0.6.17) or the gateway restarted. Drop the run marks from the supervisor's environment, like openai-bridge's start-bridge.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
组件 / Component
minecraft-serverWhat
在手机上原生开 Minecraft Java 版服务器,不需要 root、proot 或电脑:
127.0.0.1:25565。start/stop/status/console/whitelist/backup/logs。stop先发stop让服务器存档,90 秒没退出才终止 Java;backup在运行时先save-off/save-all flush,打包world*和配置后恢复save-on。online-mode=true,不提供 offline-mode/破解客户端支持;局域网要显式--lan或config set bind lan,并建议开白名单。~/.cccodroid/minecraft-server。常用命令:
首次运行 / First run
fetch从 PaperMC 官方fill-data.papermc.io取,52.3 MB,sha256 钉死:5ffef465eeeb5f2a3c23a24419d97c51afd7dbb4923ff42df9a3f58bba1ccfba。start时 Paper 会从 Mojang 官方下载 Minecraft 1.21.11 原版服务端(约 54 MB),再在本地打补丁。 在 HONOR Magic V6 上实测这一步
528917ms(约 8.8 分钟);之后启动约 13 秒,日志里
Done (10.748s)!。eula=true的绕过路径。skill 明确要求先问用户,得到同意后才跑setup --accept-eula。运行链路
$PREFIX/share/cccodroid/components/minecraft-server/openjdk-21、python)paper.jar1.21.11-132fetch自 PaperMC 官方cache/;没网时启动停在日志里~/.cccodroid/minecraft-server/体积与共用包 / Size and sharing
paper.jar(52.3 MB)+ca-certificates-java(0.1 MB)Tested
在 HONOR Magic V6 / Android 17(devkit-2026.10.28)上:
node tools/check-recipes.mjs通过。ci-build.mjs --dry与--no-upload对全部 9 个底座构建通过,0 失败。audit.mjs --only minecraft-server:0 错;1 条底座/仓库版本漂移警告;🔴 项是
fetch的 Paper jar(预期,哈希打包时已核对)。setup --check正常;setup --accept-eula在一次性测试目录建好配置;start完成 Mojang 下载 + remap,端口打开;第二次start约 13 秒就绪;status、console list、whitelist add、backup(运行中/停止后各一次)、stop均通过;config set bind lan/loopback、config set whitelist on/off均验证;stop能清理遗留 Java;没有状态文件时也能按 Paper jar 路径找到并清理;selftest:测试中的 EULA 只写在一次性测试数据目录里;组件本身不会替用户接受 EULA。没有跑完整的
Minecraft 客户端登录/多人游戏对局,也没有跑
verify-device(需要合并后从签名索引安装)。许可与风险
地址下载,使用受 Minecraft EULA 约束。组件不提供离线模式、破解客户端或账号共享。
127.0.0.1;skill 明确写了不要直接公开 25565,局域网要开online-mode=true并建议白名单。
online-mode=true的认证由 Minecraft 客户端和 Mojang 完成。检查 / Checklist
node tools/check-recipes.mjs通过 / passesci-build.mjs --dry依赖都能解 / resolves (also built for all bases with--no-upload)needs如实填写 / filled honestly (shizuku,display,gpuall false)真机测试 / Device test
node tools/verify-device.mjs全过,记录另开 PR 进verified.json/ not run yet (needs merged signed index)🤖 Generated with Claude Code
合并前补的 / Added before merge
CCAPP_RUN、CCAPP_RUN_ID、CLAUDECODE、CLAUDE_CODE_ENTRYPOINT:否则网关重启或停止那一轮对话时,服务器会被当成那一轮留下的进程清掉(同 openai-bridge 的start-bridge.sh)。/ The supervisor now starts without cccodroid's run marks so the server survives stopping the turn or a gateway restart.