• Stars
    star
    815
  • Rank 55,957 (Top 2 %)
  • Language
    Python
  • License
    Other
  • Created over 12 years ago
  • Updated 9 months ago

Reviews

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

Repository Details

Minecraft-client networking library in Python

pyCraft

https://app.travis-ci.com/ammaraskar/pyCraft.svg?branch=master https://readthedocs.org/projects/pycraft/badge/?version=latest https://coveralls.io/repos/ammaraskar/pyCraft/badge.svg?branch=master

Minecraft Python Client Library!

This projects aims to be a modern, Python3-compatible, well-documented library for communication with a MineCraft server.

Detailed information for developers can be found here: http://pycraft.readthedocs.org/en/latest/.

start.py is a basic example of a headless client using the library Use start.py --help for the options.

Supported Minecraft versions

pyCraft is compatible with the following Minecraft releases:

  • 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9
  • 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4
  • 1.10, 1.10.1, 1.10.2
  • 1.11, 1.11.1, 1.11.2
  • 1.12, 1.12.1, 1.12.2
  • 1.13, 1.13.1, 1.13.2
  • 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4
  • 1.15, 1.15.1, 1.15.2
  • 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5
  • 1.17, 1.17.1
  • 1.18, 1.18.1

In addition, some development snapshots and pre-release versions are supported: minecraft/__init__.py contains a full list of supported Minecraft versions and corresponding protocol version numbers.

Supported functionality

Although pyCraft is compatible any supported server, only a subset of all packets are currently decoded or encoded by the library: those necessary to remain connected to the server, those used for chat, and some others.

Developers wishing to use other functionality with pyCraft can contribute by implementing packet classes for the desired packets, adding them under minecraft/networking/packets, and sending a pull request.

Supported Python versions

pyCraft is compatible with (at least) the following Python implementations:

  • Python 3.5
  • Python 3.6
  • Python 3.7
  • Python 3.8
  • Python 3.9
  • PyPy

Requirements

The requirements are also stored in setup.py

See the installation instructions for the cryptography library here: https://cryptography.io/en/latest/installation/ but essentially pip install -r requirements.txt should cover everything.

Contact

This project currently has 2 main developers, Ammar Askar and Jeppe Klitgaard.

GitHub

The preferred method of communication is via this GitHub page.

Mail

We can be contacted by mail:

IRC

We can often be found on the minecraftdev IRC on irc.esper.net

We go by the names of ammar2 and dkkline.

More Repositories

1

sphinx-action

Github action that builds docs using sphinx and places errors inline
Python
193
star
2

GeoIP-Scraper

Scrapes specified files, generating a pretty google powered map with geoip results
HTML
43
star
3

gcc-problem-matcher

Github Action to problem match gcc output
JavaScript
24
star
4

sphinx-action-test

Testing repo for my sphinx github action
Python
16
star
5

MinecraftPacketNames

An automatically updating git repo scraping wiki.vg to generate json specification files of minecraft paket names per protocol version
Python
14
star
6

ghidra-fujitsu-risc

Ghidra processor for Fujitsu RISC (FR)
Python
9
star
7

iClicker-base-reversing

Notes and files from reverse engineering the iClicker base station
Assembly
8
star
8

BungeeCountSync

Synchronize player counts across multiple bungee instances
Java
5
star
9

SimsReiaParser

Libraries to parse and (maybe) encode .reia file for sims2
Python
5
star
10

black-holes-black-boxes

The supporting code behind "Finding Black Holes With Black Boxes"
Python
5
star
11

msvc-problem-matcher

Github Action to problem match MSVC output
JavaScript
5
star
12

nand-2-fpga-tetris

An attempt to follow nand2tetris in SystemVerilog and an FPGA
Python
4
star
13

faa-instrument-approach-db

Analyze and create friendly dumps of FAA instrument approaches
Python
3
star
14

synchronizo

CS307 Project - Group Music Listening WebApp
TeX
2
star
15

Purdue-Laundry-API

Scrapes purdue's wash alert/laundry page to provide a JSON API
Python
2
star
16

PyVerpisor

Python
2
star
17

sphinx-matcher-test

Python
1
star
18

rust-dwarf-x86

Rust crate that offers a higher level API for parsing dwarf files for x86 binaries
Rust
1
star
19

binutils-libfuzzer

libFuzzer harnesses for binutils binaries
Dockerfile
1
star
20

MilkshakeEventsBot

Syncs events from an events forum to a Google calendar and bumps them when the event is coming up.
Python
1
star