Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

minecraft-bridge我的世界桥

Agent Skill

minecraft-bridge 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

9,337

周安装

397

GitHub Stars

公开资料未说明

下载量

3,271
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:minecraft-bridge(我的世界桥)
来源仓库:https://github.com/en1r0py1865/minecraft-bridge
安装命令:
openclaw skills install minecraft-bridge
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install minecraft-bridge

简介

该技能桥接 Mineflayer 机器人实现 Minecraft Java 版实时控制。

  • 适合游戏自动化、数据整理与 Bot 状态监控场景。
  • 支持位置移动、物品交互与服务器指令执行。
  • 安装命令:openclaw skills install minecraft-bridge;需本地运行机器人实例。
  • 注意服务器白名单与反作弊规则限制。

SKILL.md

name
minecraft-bridge
description
>
metadata
openclaw
emoji
🎮
requires
bins
env
install
kind
node
package
mineflayer
label
Mineflayer — Minecraft bot API
kind
node
package
mineflayer-pathfinder
label
Pathfinder — navigation plugin
kind
node
package
vec3
label
Vec3 — 3D coordinate helper
homepage
https://github.com/en1r0py1865/minecraft-skill

Minecraft Bridge

Persistent local HTTP service that bridges OpenClaw to a live Minecraft Java Edition bot session. Exposes a REST API on http://localhost:${MC_BRIDGE_PORT|3001} for live state reads and in-game bot actions.

Boundary:

  • Use this skill for live bot control and live game-state reads
  • Use minecraft-wiki for knowledge questions
  • Use minecraft-server-admin for RCON, server.properties, whitelist/ban/op, and generic server administration

Quick State Machine

UNSTARTED → run bridge-server.js → STARTING → bot spawns → CONNECTED
CONNECTED → game closes or kick → DISCONNECTED → auto-reconnect → CONNECTED

Check current state with: GET http://localhost:3001/status


Setup (first time)

1. Environment variables

Set in ~/.openclaw/openclaw.json or export in shell:

MC_HOST=localhost          # server IP (localhost for singleplayer LAN)
MC_PORT=25565              # game port
MC_BOT_USERNAME=ClawBot    # bot's in-game name (offline-mode servers)
MC_BRIDGE_PORT=3001        # bridge HTTP port (default 3001)
MC_VERSION=1.21.1          # Minecraft version string

2. Open Minecraft to LAN (singleplayer)

ESC → Open to LAN → Allow Cheats ON → Start LAN World Note the port shown (e.g. 54321) — set MC_PORT to that value.

3. Start the bridge

node ~/.openclaw/skills/minecraft-bridge/bridge-server.js

Wait for: 🎮 Bridge ready at http://localhost:3001

4. Verify

curl http://localhost:3001/status

Runtime Operations

When user gives a live-game command:

  1. Check bridge healthGET /status; if unreachable → show setup instructions above
  2. Execute action — call appropriate endpoint (see API Reference below)
  3. Report result — format response conversationally; include coordinates, item names, counts
  4. Persist context — write significant events to OpenClaw memory (coordinates found, items collected, goals achieved)

Interpreting /status response

{
  "connected": true,
  "username": "ClawBot",
  "position": {"x": -142, "y": 64, "z": 88},
  "health": 18.0,
  "food": 14,
  "gameTime": 6000,
  "inventoryCount": 12,
  "biome": "plains"
}
  • gameTime 0–6000 = morning, 6000–12000 = day, 12000–18000 = dusk/night
  • health max 20.0; below 6 = danger
  • food max 20; below 6 = can't sprint, below 1 = taking damage

API Overview

See references/api-spec.md for the full schema.

Core endpoints:

  • GET /status — bridge + bot connection state
  • GET /inventory, GET /position, GET /nearby — live state reads
  • POST /move, POST /mine, POST /collect, POST /craft, POST /follow, POST /stop — live bot actions
  • POST /chat — send in-game chat
  • POST /command — send arbitrary slash commands; use with caution
Security note: /command forwards arbitrary slash commands. On servers where the bot has elevated permissions, this may include destructive or admin-level commands. Prefer minecraft-server-admin for server administration tasks.

Dependent Skills

Dependent skills should health-check the bridge before using it. See references/dependency-guide.md for the canonical dependency-check pattern and degradation behavior.


Error Handling

ErrorCauseRecovery
ECONNREFUSEDBridge not startedRun node bridge-server.js
{"connected":false}Bridge up, bot offlineOpen Minecraft, check MC_HOST/PORT
{"error":"pathfinding failed"}Path blockedTry /stop then retry with different coords
{"error":"no crafting table"}Craft without workbenchMove near crafting table first
Bot stuck loopingPathfinding bugPOST /stop, then resume

Auto-reconnect is built in — bridge retries every 5 s after disconnect.


Additional Resources

  • references/api-spec.md — Full API schema with all request/response fields
  • references/dependency-guide.md — How other skills should declare bridge dependency
  • references/troubleshooting.md — Detailed error diagnosis
  • scripts/start.sh / scripts/stop.sh — Convenience wrappers

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

96.79%
按下载量换算3,166

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills