43 lines
1.5 KiB
Markdown
43 lines
1.5 KiB
Markdown
# Go-MC
|
||

|
||

|
||
[](https://godoc.org/github.com/Tnze/go-mc)
|
||
[](https://goreportcard.com/report/github.com/Tnze/go-mc)
|
||
[](https://travis-ci.org/Tnze/go-mc)
|
||
|
||
There's some library in Go support you to create your Minecraft client or server.
|
||
这是一些Golang库,用于帮助你编写自己的Minecraft客户端或服务器,
|
||
- [x] Chat
|
||
- [x] Parse NBT
|
||
- [x] Simple MC robot lib
|
||
- [x] Mojang authenticate
|
||
- [x] Minecraft network protocol
|
||
- [ ] World container / encoding
|
||
|
||
bot:
|
||
- [x] Swing arm
|
||
- [x] Get inventory
|
||
- [x] Pick item
|
||
- [x] Drop item
|
||
- [x] Swap item in hands
|
||
- [x] Use item
|
||
- [x] Use entity
|
||
- [x] Attack entity
|
||
- [x] Use/Place block
|
||
- [x] Mine block
|
||
- [ ] Record entities
|
||
|
||
|
||
> 由于仍在开发中,部分API在未来版本中可能会变动
|
||
|
||
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 localhost` 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 information about how to create your own robot. |