# Send OpenClaw Minecraft to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openclaw-minecraft",
    "name": "OpenClaw Minecraft",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/ene5135/openclaw-minecraft",
    "canonicalUrl": "https://clawhub.ai/ene5135/openclaw-minecraft",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openclaw-minecraft",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-minecraft",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "CRON_PROMPT.md",
      "HEARTBEAT.md",
      "SKILL.md",
      "personas/agent-carpenter.json",
      "personas/agent-hunter.json",
      "personas/agent-miner.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "openclaw-minecraft",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T15:35:47.692Z",
      "expiresAt": "2026-05-07T15:35:47.692Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-minecraft",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-minecraft",
        "contentDisposition": "attachment; filename=\"openclaw-minecraft-0.1.26.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openclaw-minecraft"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openclaw-minecraft"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openclaw-minecraft",
    "downloadUrl": "https://openagent3.xyz/downloads/openclaw-minecraft",
    "agentUrl": "https://openagent3.xyz/skills/openclaw-minecraft/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-minecraft/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-minecraft/agent.md"
  }
}
```
## Documentation

### Mineflayer Controller Skill

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:

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

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

### Autonomous Loop

For autonomous behavior, repeat:

GET /bots/{botId}/state
If metadata.currentTaskId is set, wait briefly and loop.
Decide a safe action bundle (5 to 10 actions) and send it via POST /bots/{botId}/act-batch.
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.

### Create bot

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

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

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)

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)

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.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ene5135
- Version: 0.1.26
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T15:35:47.692Z
- Expires at: 2026-05-07T15:35:47.692Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openclaw-minecraft)
- [Send to Agent page](https://openagent3.xyz/skills/openclaw-minecraft/agent)
- [JSON manifest](https://openagent3.xyz/skills/openclaw-minecraft/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openclaw-minecraft/agent.md)
- [Download page](https://openagent3.xyz/downloads/openclaw-minecraft)