Git Product home page Git Product logo

mc-protocol's Introduction

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
  • Since 1.20.2, because Mojang has made some big changes to the protocol (see the changelog, sections Network Optimization and Network Protocol). It will be implemented soon

Missing features

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

  • Encryption
  • Authentication
  • Full type support
  • 1.20.2+ protocol support

Thanks to

License

MIT license

mc-protocol's People

Contributors

enzopb avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

mc-protocol's Issues

No such file or directory: 'minecraft-data/data/dataPaths.json'

Hi! I tried running your program, but it looks like I need dataPaths.json. Any recommendations on what to put there?
File "/Users/nickanastasoff/miniconda3/lib/python3.11/site-packages/minecraft_data/tools.py", line 7, in convert
with open(os.path.join(_dir, 'dataPaths.json')) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'minecraft-data/data/dataPaths.json'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.