Control Minecraft bots through a Mineflayer controller API using JSON actions and cron-driven autonomy.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install openclaw-minecraft或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install openclaw-minecraft⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/openclaw-minecraft/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: OpenClaw Minecraft version: 0.1.0 specialty: minecraft-control category: tools description: Control Minecraft bots through a Mineflayer controller API using JSON actions and cron-driven autonomy. ---
Use this skill to create and control Minecraft bots via a controller API. The controller executes only JSON actions. Do not send API keys or other secrets to the controller. The agent performs LLM reasoning locally and only sends actions.
If open registration is enabled, the agent can self-issue a token:
curl -sS -X POST "https://56eb-125-246-120-211.ngrok-free.app/v1/auth/open/register" \
-H "Content-Type: application/json" \
-d '{"agentName":"andy"}'
Recommended: store the response in memory/mc-auth.json and reuse the accessToken for future calls.
https://56eb-125-246-120-211.ngrok-free.app/v1MC_CONTROLLER_TOKEN (agent-specific JWT)To obtain a JWT, an operator should call POST /v1/auth/register with the master issuer secret and share the returned accessToken with the agent. Refresh tokens can be rotated via POST /v1/auth/refresh.
If you don't want to share the master secret, the controller can expose POST /v1/auth/proxy/register with allowlist + rate-limit. In that mode, the agent requests an access token using a proxyKey.
If open registration is enabled (POST /v1/auth/open/register), the agent can request an access token without a proxy key. This is less secure and should only be used when you accept open access.
queue: queue unless you must interrupt a running task.For autonomous behavior, repeat:
GET /bots/{botId}/statemetadata.currentTaskId is set, wait briefly and loop.POST /bots/{botId}/act-batch.mode: until or mode: loop with timeoutMs per action.This project uses Gateway cron (not heartbeat) for autonomous loops.
After installing this skill, ensure:
CRON_PROMPT.md with skills/openclaw-minecraft/CRON_PROMPT.md (always, regardless of existing file).CRON_PROMPT.md.curl -sS -X POST "https://56eb-125-246-120-211.ngrok-free.app/v1/bots" \
-H "Authorization: Bearer $MC_CONTROLLER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"botId":"<botId>","username":"<botId>"}'
curl -sS -X POST "https://56eb-125-246-120-211.ngrok-free.app/v1/bots/<botId>/connect" \
-H "Authorization: Bearer $MC_CONTROLLER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"host":"127.0.0.1","port":25565,"version":"1.21.9"}'
curl -sS -X GET "https://56eb-125-246-120-211.ngrok-free.app/v1/bots/<botId>/state" \
-H "Authorization: Bearer $MC_CONTROLLER_TOKEN"
curl -sS -X POST "https://56eb-125-246-120-211.ngrok-free.app/v1/bots/<botId>/act-batch" \
-H "Authorization: Bearer $MC_CONTROLLER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"actions":[
{
"action":"chat",
"params":{"message":"hello"},
"mode":"loop",
"intervalMs":2000,
"maxIterations":3
}
]
}'
curl -sS -X POST "https://56eb-125-246-120-211.ngrok-free.app/v1/bots/<botId>/act-batch" \
-H "Authorization: Bearer $MC_CONTROLLER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"actions":[
{
"action":"move_to",
"params":{"x":10,"y":64,"z":-12},
"mode":"until",
"stopCondition":{"type":"reach_position","radius":1.5},
"timeoutMs":60000
}
]
}'
mode: until for navigation or repeated tasks.mode: loop for periodic actions (e.g., scanning, chat).chat, move_to, move_relative, move, dig, place, equip, use_item, attack, follow, jump.安装 OpenClaw Minecraft 后,可以对 AI 说这些话来触发它
Help me get started with OpenClaw Minecraft
Explains what OpenClaw Minecraft does, walks through the setup, and runs a quick demo based on your current project
Use OpenClaw Minecraft to control Minecraft bots through a Mineflayer controller API using JS...
Invokes OpenClaw Minecraft with the right parameters and returns the result directly in the conversation
What can I do with OpenClaw Minecraft in my developer & devops workflow?
Lists the top use cases for OpenClaw Minecraft, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/openclaw-minecraft/ 目录(个人级,所有项目可用),或 .claude/skills/openclaw-minecraft/(项目级)。重启 AI 客户端后,用 /openclaw-minecraft 主动调用,或让 AI 根据上下文自动发现并使用。
OpenClaw Minecraft 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
OpenClaw Minecraft 可免费安装使用。请查阅仓库了解许可证信息。
Control Minecraft bots through a Mineflayer controller API using JSON actions and cron-driven autonomy.
OpenClaw Minecraft 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using OpenClaw Minecraft
Identifies repetitive steps in your workflow and sets up OpenClaw Minecraft to handle them automatically