Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Simple Python implementation of the Minecraft protocol

License

EnzoPB/mc-protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MC protocol

An easy-to-use, pure Python Minecraft protocol library, allowing you to connect to a server, encode & send, receive & decode packets.

Installation

For now it is not a work-in-progress, so it will frequently break and have breaking changes to its API. This is why it is not suitable for production use, and is not published on PyPi.

  • Clone the repository: git clone https://github.com/EnzoPB/mc-protocol
  • Navigate into the folder: cd mc-protocol
  • Install the dependencies: pip install -r requirements.txt
  • Clone the minecraft-data repository: git clone https://github.com/PrismarineJS/minecraft-data
    • Note: You will have to pull this repository for every new Minecraft version
  • Start the example script: python main.py <username> <host> <port>

Compatibility

This package is using minecraft-data, so it should automatically be compatible with every version from 1.8, except:

  • 1.19.1 and 1.19.2 because of some weird encryption protocol

Missing features

These features are listed here because they will be implemented at one point

  • Encryption
  • Authentication
  • Some of the special types (NBT, Anvil chunk data, etc)
  • Packet bundles

Thanks to

License

MIT license

About

Simple Python implementation of the Minecraft protocol

Topics

Resources

License

Stars

Watchers

Forks

Languages