• Stars
    star
    841
  • Rank 54,194 (Top 2 %)
  • Language
    Go
  • License
    MIT License
  • Created over 5 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Collection of Go libraries for Minecraft

Go-MC

Version Go Reference Go Report Card Discord

教程 · Tutorial

Require Go version: 1.19

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/cmd/mcping localhost to ping and list the localhost mc server.
  • Run go run github.com/Tnze/go-mc/cmd/daze to join the local server at localhost:25565 as player named Daze on the offline mode.

Supported Version

As the go-mc/net package implements the minecraft network protocol, there is no update between the versions at this level. So net package actually supports any version. It's just that the ID and content of the package are different between different versions.

由于go-mc/net实现的是MC底层的网络协议,而这个协议在MC更新时其实并不会有改动,MC更新时其实只是包的ID和内容的定义发生了变化,所以net包本身是跨版本的。

More Repositories

1

CoolQ-Golang-SDK

酷Q插件Go语言SDK
Go
96
star
2

ffxiv-best-craft

A crafting simulator and solver for FF14 with friendly GUI.
Vue
56
star
3

miband-heart-rate

接收小米手环 “运动心率广播” Demo
Rust
25
star
4

gomcbot

A golang minecraft client/robot package
Go
23
star
5

CoolQ-Golang-Plugin

Golang 酷Q CoolQ 插件 plugin 模板 template
Batchfile
17
star
6

H5-Joystick-demo

Html5 Joystick demo
JavaScript
15
star
7

go.num

Go語言實現中文數位的拼寫和解析
Go
12
star
8

ffxiv-crafting

A crafting simulator of FFXIV
Rust
6
star
9

snbt-vscode

Support SNBT(Stringified Named Binary Tag) format of Minecraft.
TypeScript
6
star
10

xivcraft.tnze.tech

JavaScript
5
star
11

WriterDriver

基于NodeMCU的绘图仪固件
C++
5
star
12

pwn

Simple Go lib like pwntools
Go
4
star
13

tauri-plugin-pty

TypeScript
4
star
14

Vertical-flip-of-Repeat-picture

[酷Q插件] 复读图片之垂直翻转
Go
4
star
15

go-ecs

An archetype-based ECS framework implement in Golang
Go
4
star
16

ffxiv-crafting-algo

用于暴力搜索FF14生产宏的小工具。
Rust
4
star
17

WallDrawingMachine

Wall Drawing Machine driver in NodeMCU(ESP32)
C++
4
star
18

Useless-C-comments

方便地为你的C源码添加一堆无意义的注释!
Go
3
star
19

Tic-Tac-Toe

A C base Tic-Tac-Toe game AI
C
2
star
20

ZhiDaoHelper

智慧树网课“知到”APP自动关闭弹题辅助程序
Java
2
star
21

DormSignMaker

用于帮助以快速制作宿舍牌的小工具
C#
2
star
22

CoolQ-Golang-Builder

Docker image for building CoolQ-Golang-Plugins
Dockerfile
1
star
23

Tnze.github.io

1
star
24

StudentManager

学生信息管理系统,是Web课的作业……
Java
1
star
25

GluttonousSnake

The game gluttonous snake in golang
Go
1
star
26

MagicMirror

RaspberryPi magic mirror system.树莓派魔镜系统
1
star
27

C_dev_exercises

《C程序设计》习题
C
1
star
28

student_achievement_manage_system

课程设计——学生成绩管理系统
C
1
star
29

OpenTanktrouble

A Rust & WebGPU replica of Flash game Tanktrouble.
Rust
1
star
30

ping205

Scan the LAN and find out if is there someone in 205(room).
Go
1
star
31

xivcraft-app.tnze.me

TypeScript
1
star
32

G-SensorGluttonousSnake

A gluttonous snake game by G-Sensor way.
Assembly
1
star
33

CQPMBS

CQP-Minecraft Bukkit/Spigot插件
Java
1
star