MCPcopy Index your code
hub / github.com/BlackBEDevelopment/MCBE-Server-Motd

github.com/BlackBEDevelopment/MCBE-Server-Motd @v1.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.1 ↗ · + Follow
16 symbols 62 edges 7 files 13 documented · 81%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Minecraft BedrockEdition Server Motd

我的世界服务器Motd协议封装和HTTP API实践

虽然叫"BedrockEdition Server Motd",但是也支持Java Server哦 : )

🛫 使用

官方部署站点

https://motdbe.blackbe.work/

API 文档

BlackBE Wiki

🛠️ 部署

#解压资源
unzip MCBE-Server-Motd_{{VERSION_OS_ARCH}}.zip

#赋予运行权限
chmod +x ./MCBE-Server-Motd

#启动
./MCBE-Server-Motd -port 8080

⚙️ 构建

自行构建前需要拥有 Go >= 1.22,yarn等必要依赖

克隆仓库

git clone https://github.com/BlackBEDevelopment/MCBE-Server-Motd.git --recurse-submodules

构建静态资源

#进入前端目录
cd ./fronend

#安装依赖
yarn install

#开始构建
yarn build

编译项目

#获取依赖包
go mod tidy

#开始编译
go build .

🎬 引入项目

安装

go get -u github.com/BlackBEDevelopment/MCBE-Server-Motd/MotdBEAPI

例子

package main

import (
    "fmt"

    "github.com/BlackBEDevelopment/MCBE-Server-Motd/MotdBEAPI"
)

func main() {
    Host := "nyan.xyz:19132"
    data, err := MotdBEAPI.MotdBE(Host)
    if err != nil {
        fmt.Println(err)
    }
    fmt.Println(data)
}

📖许可证

项目采用Mozilla Public License Version 2.0协议开源

二次修改源代码需要开源修改后的代码,对源代码修改之处需要提供说明文档

Core symbols most depended-on inside this repo

putVarInt
called by 4
MotdBEAPI/MotdJavaAPI.go
RemoveColorCode
called by 3
StatusImg/StatusImg.go
MotdJava
called by 3
MotdBEAPI/MotdJavaAPI.go
MotdBE
called by 3
MotdBEAPI/MotdBEAPI.go
SetupRouter
called by 1
Routers.go
FrontendRouter
called by 1
Routers.go
ServerStatusImg
called by 1
StatusImg/StatusImg.go
GamemodeChinese
called by 1
StatusImg/StatusImg.go

Shape

Function 13
Struct 3

Languages

Go100%

Modules by API surface

MotdBEAPI/MotdJavaAPI.go4 symbols
StatusImg/StatusImg.go3 symbols
Routers.go3 symbols
MotdBEAPI/Motd_test.go2 symbols
MotdBEAPI/MotdBEAPI.go2 symbols
main.go1 symbols
StatusImg/StatusImgJava.go1 symbols

For agents

$ claude mcp add MCBE-Server-Motd \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page