Files
go-mc/README.md
2019-05-03 09:53:26 +08:00

25 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# GO-MC
![](https://img.shields.io/badge/Minecraft-1.14-blue.svg)
![](https://img.shields.io/badge/Protocol-477-blue.svg)
[![GoDoc](https://godoc.org/github.com/Tnze/go-mc?status.svg)](https://godoc.org/github.com/Tnze/go-mc)
[![Go Report Card](https://goreportcard.com/badge/github.com/Tnze/go-mc)](https://goreportcard.com/report/github.com/Tnze/go-mc)
There's some library in Go support you to create your Minecraft client or server.
这是一些Golang库用于帮助你编写自己的Minecraft客户端或服务器
- [x] Mojang authenticate
- [x] Minecraft network protocal
- [x] Parse chat message
- [x] Simple MC robot lib
- [ ] Parse NBT
Some examples are at `/cmd` folder.
有一些例子在cmd目录下
> `1.13.2` version is at [gomcbot](https://github.com/Tnze/gomcbot).
# Getting start
After you install golang tools:
- run `go run cmd/ping/ping.go` to ping and list the Miaoscraft mc-server.
- run `go run cmd/daze/daze.go` to join local server at *localhost:25565* as Steve on offline mode.
See `/bot` folder to get more infomation about how to create your own robot.