Tnze/go-mc
关于
用于 Minecraft 的 Go 库集合
开发工具实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Go-MC
教程 · Tutorial
文档 · Documents
Require Go version: 1.22
There's some library in Go support you to create your Minecraft client or server.
这是一些Golang库,用于帮助你编写自己的Minecraft客户端或服务器。
- 👍 Minecraft network protocol
- 👍 Robot framework
- 👍 Server framework
- 👍 Dual role RCON protocol (Server & Client)
- 👍 Chat Message (Support both Json and old
§format) - 👍 NBT (Based on reflection)
- 👌 SNBT ⇋ NBT
- 👍 Regions & Chunks & Blocks
- ⌛ Yggdrasil (Mojang login)
- ⌛ Realms Server
We don't promise that API is 100% backward compatible.
Getting start
Go-MC tag the old version after new version released. For example,
if 1.19.4 is the latest Minecraft version, the newest go-mc tag will be v1.19.3.
To get the latest Go-MC that support 1.19.4, usually you must use go get -u github.com/Tnze/go-mc@master.
Special cases are version like 1.19, the Go-MC support it is tagged v1.19.0 to avoid automatically upgrade.
Examples:
To get the latest version: go get github.com/Tnze/go-mc@master
To get old versions (e.g. 1.18.2): go get github.com/Tnze/[email protected]
To get the first of each primary version: go get github.com/Tnze/[email protected]
Run Examples
- Run
go run github.com/Tnze/go-mc/examples/mcping localhostto ping and list the localhost mc server. - Run
go run github.com/Tnze/go-mc/examples/dazeto join the local server at localhost:25565 as player named Daze on the offline mode.
探索相关项目
加载中…