ene5135

OpenClaw Minecraft

开发编程v0.1.26
作者:ene5135更新于 2026-05-18共 27 个版本 · 最新版本发布于 2026-02-09openclaw-minecraft
#Cron#Json

据 AlphaMoat 统计,截至 2026-09,OpenClaw Minecraft 累计下载 4,294 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 2,297 位,在「开发编程」分类(577 个)中排名第 294 位。

累计安装
144
累计下载
4,294
星标
-
全站排名
#2,297
全站前 46% · 「开发编程」前 51%
平台累计安装累计下载星标评论
ClawHub ↗1444,294--

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

创建并连接机器人,读取状态后发送移动、挖掘、放置、装备或聊天等动作,再查询任务状态或事件。仅控制 token 所属机器人,只接受 JSON,不支持媒体附件。动作可能因未连接或缺少物品失败,不能把提交请求视为已完成。

资料发布于 2026-10-26

可以用来做什么

  • 检查机器人状态并执行游戏内动作

什么时候用

  • 已有可连接的控制器与机器人专用 token 时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

检查我的机器人是否已连接,再规划到目标位置的动作

使用条件

依据技能文档中的声明整理,未经实际安装或运行验证。

鉴权说明
需要 MC_CONTROLLER_TOKEN;令牌获取依赖管理员、受限代理或明确开放的注册分支,开放注册仅在服务启用时可用。
配置要求
  • LLM 密钥不得发送给控制器。自动循环另需 Gateway cron,源文集成步骤会覆盖 CRON_PROMPT.md 并建立定时任务,不能视为只读安装。

月度数据趋势

累计下载4,294
2,9493,6724,3942026-03 · 累计下载 3,0492026-05 · 累计下载 3,6812026-06 · 累计下载 3,8072026-07 · 累计下载 4,0562026-08 · 累计下载 4,1932026-09 · 累计下载 4,29426-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,294—-
2026-084,193+3.4%-
2026-074,056+6.5%-
2026-063,807+3.4%-
2026-053,681—-
2026-033,049—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.7 KB · ClawHub v0.1.26
---
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.
---

# Mineflayer Controller Skill
展开全部(共 130 行)
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.

## Register First (Open Registration)
If open registration is enabled, the agent can self-issue a token:
```bash
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.

## Requirements
- Base URL: `https://56eb-125-246-120-211.ngrok-free.app/v1`
- `MC_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.

## Safety Rules
- Never send LLM API keys to the controller.
- Only control bots owned by your token.
- Prefer `queue: queue` unless you must interrupt a running task.

## Workflow
1. Ensure the bot exists; create it if missing.
2. Connect the bot to the Minecraft server.
3. Read state for current context.
4. Send an action request.
5. Poll task status or subscribe to events.

## Autonomous Loop
For autonomous behavior, repeat:
1. `GET /bots/{botId}/state`
2. If `metadata.currentTaskId` is set, wait briefly and loop.
3. Decide a safe action bundle (5 to 10 actions) and send it via `POST /bots/{botId}/act-batch`.
4. Use `mode: until` or `mode: loop` with `timeoutMs` per action.

## Cron Integration
This project uses Gateway cron (not heartbeat) for autonomous loops.

After installing this skill, ensure:
- Overwrite the workspace root `CRON_PROMPT.md` with `skills/openclaw-minecraft/CRON_PROMPT.md` (always, regardless of existing file).
- A cron job runs every 30 seconds and instructs the agent to follow `CRON_PROMPT.md`.

## API Patterns

### Create bot
```bash
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>"}'
```

### Connect bot
```bash
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"}'
```

### Read state
```bash
curl -sS -X GET "https://56eb-125-246-120-211.ngrok-free.app/v1/bots/<botId>/state" \
  -H "Authorization: Bearer $MC_CONTROLLER_TOKEN"
```

### Send batch (loop)
```bash
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
      }
    ]
  }'
```

### Send batch (until)
```bash
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
      }
    ]
  }'
```

## Action Guidance
- Convert natural-language goals to a **batch** of JSON actions.
- If the goal requires multiple steps, include them in order in one batch.
- Each batch must include 5 to 10 actions.
- Use `mode: until` for navigation or repeated tasks.
- Use `mode: loop` for periodic actions (e.g., scanning, chat).
- Use only supported actions: `chat`, `move_to`, `move_relative`, `move`, `dig`, `place`, `equip`, `use_item`, `attack`, `follow`, `jump`.

## Known Limitations
- JSON-only payloads for now. Media/attachments are not supported yet.
- Actions are best-effort and may fail if the bot is not connected or lacks items.

「开发编程」分类下的热门技能

Github开发编程

使用 gh CLI 与 GitHub 交互,通过 gh issue、gh pr、gh run 和 gh api 管理议题、PR、CI 运行及高级查询。

↓ 38.7万★ 708Peter Steinberger
Multi Search Engine开发编程

Multi search engine integration with 16 engines (7 CN + 9 Global). Supports advanced search operators, time filters, site search, privacy engines, and Wolfra...

↓ 16.2万★ 763g_pyAng
Mcporter开发编程

使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。

↓ 8.0万★ 204Peter Steinberger
Mermaid Diagram开发编程

生成有效的 Mermaid 图表,如流程图、时序图、思维导图、ER 图、用户旅程等。

↓ 7.3万★ 59pupujanet-eng
YouTube开发编程

通过托管 OAuth 集成 YouTube DataAPI,支持视频搜索、播放列表管理、频道数据访问及评论互动。当用户需要与 YouTube 交互时使用本技能。其他第三方应用请使用 api-gateway 技能(https://clawhub.ai/byungkyu/api-gateway)。

↓ 6.2万★ 145byungkyu
GitHub开发编程

GitHub API integration with managed OAuth. Access repositories, issues, pull requests, commits, branches, and users. Use this skill when users want to interact with GitHub repositories, manage issues and PRs, search code, or automate workflows. For other third party apps, use the api-gateway skill (

↓ 3.8万★ 53byungkyu
Code开发编程

覆盖规划、实现、验证与测试的编码工作流技能。

↓ 3.7万★ 66Iván
Docker Essentials开发编程

核心 Docker 命令和工作流程,包括容器管理、镜像操作和调试。

↓ 3.7万★ 42Arnarsson

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。