go-mc

Golang library of Minecraft protocol for creating bots or server

Github stars Tracking Chart

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.

Main metrics

Overview
Name With OwnerTnze/go-mc
Primary LanguageGo
Program languageGo (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2019-05-01 06:00:17
Pushed At2024-12-24 03:20:05
Last Commit At2024-12-24 11:20:05
Release Count26
Last Release Namev1.20.2 (Posted on )
First Release Namev1.14 (Posted on )
用户参与
Stargazers Count0.9k
Watchers Count13
Fork Count118
Commits Count864
Has Issues Enabled
Issues Count164
Issue Open Count14
Pull Requests Count68
Pull Requests Open Count1
Pull Requests Close Count31
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private