1 Star 0 Fork 0

jing / go-mc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Go-MC

Version Protocol GoDoc Go Report Card Build Status

There's some library in Go support you to create your Minecraft client or server.
这是一些Golang库,用于帮助你编写自己的Minecraft客户端或服务器,

  • Chat
  • NBT
  • Yggdrasil
  • Realms Server
  • RCON protocol
  • Saves decoding /encoding
  • Minecraft network protocol
  • Simple MC robot lib

bot:

  • Swing arm
  • Get inventory
  • Pick item
  • Drop item
  • Swap item in hands
  • Use item
  • Use entity
  • Attack entity
  • Use/Place block
  • Mine block
  • Custom packets
  • Record entities

由于仍在开发中,部分API在未来版本中可能会变动

Some examples are at /cmd folder.
有一些例子在cmd目录下

1.13.2 version is at gomcbot.

Getting start

After you install golang tools:
To get latest version: go get github.com/Tnze/go-mc@master
To get old versions (eg. 1.14.3): go get github.com/Tnze/go-mc@v1.14.3

  • Run go run github.com/Tnze/go-mc/cmd/mcping localhost to ping and list the localhost mc server.
  • Run go run github.com/Tnze/go-mc/cmd/daze to join local server at localhost:25565 as Steve on offline mode.

See /bot folder to get more information about how to create your own robot.

MIT License Copyright (c) 2019 Tnze Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Golang library of Minecraft protocol for creating bots or server 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/jing18233/go-mc.git
git@gitee.com:jing18233/go-mc.git
jing18233
go-mc
go-mc
master

搜索帮助