Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

theoparis/zigmcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zigmcp

A Minecraft (Java Edition) protocol implementation in Zig. Currently supports 1.20.4 (765). Contains the protocol implementation, and a static and dynamic NBT implementation. Depends on PrismarineJS/minecraft-data.

Currently, many parts of this are probably untested. Several parts of protocol implementation probably should be reworked, and perhaps put into separate parts of the library for easier use. Several things may be hardcoded using information only found from the data generators, and it would be nice if they were a little less hardcoded, although obtaining that data automatically through a zig build may be annoying to implement (and annoying for any user of this library).

I used these sources a lot in this:

Check out the examples/ directory for some example usage. Should only need a zig build run in the corresponding folder to run.

  • statusserver: a simple server that displays a server status in the server list.
  • sniff: a proxy that tracks connection state and displays packet ids sent between server and client. make sure client and server are 1.20.4, and online-mode=false and network-compression-threshold=-1 because I haven't implemented compression or encryption.

About

A Minecraft protocol implementation in Zig (MOVED)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages