Skip to main content

The python websocket for java minecraft

Project description

PyFabric - The websocket powered minecraft-python hook

This is a beta build - meaning not all functions are implemented. Currently only 1.19, but with first stable release there will also be one for 1.8

Setup - Fabric

  • Download fabric for 1.19
  • Double-click the fabric installer and select launcher
  • After the launcher profile got created, go to %appdata%/.minecraft and create mods folder if it doesn't exist yet
  • Now put the fabric api- and PyFabric jar into the folder
  • Start minecraft with fabric (Use fabric for 1.19!)

Setup - Python

  • Put Minecraft folder and TestCode.py into a folder your choice. Note: When picking the folder make sure you can find it again
  • To get the player position, just open a terminal in the folder where both, file and folder, are stored. In the console run: python TestCode.py.
  • When minecraft fabric with the PyFabric mod gets detected, python will hook into the mod and now interacts with it
  • When connected with python joining a world, you should now see something like in example_output.png Example console log

Limitations

This package currently only supports data grabbing and does not allow data to be sent to a minecraft server.

Because of that, you can only get data from your client. All actions are limited to the currently loaded chunks / world

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfabric-1.0.3.tar.gz (34.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfabric-1.0.3-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

Details for the file pyfabric-1.0.3.tar.gz.

File metadata

  • Download URL: pyfabric-1.0.3.tar.gz
  • Upload date:
  • Size: 34.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for pyfabric-1.0.3.tar.gz
Algorithm Hash digest
SHA256 eb0a104540c8629684736a3cc1f011015d774897d7c48b34b8a47aa690fa06d3
MD5 fb80a1ca2f418cd1786adf9b455ea850
BLAKE2b-256 53014a7aaf8f80182a07fe973d8f4b50229886757920d316d146c0e23fb285e7

See more details on using hashes here.

File details

Details for the file pyfabric-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyfabric-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for pyfabric-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 45b800cff5bfa55e3e95cdd2d615cbd54d8bd0756978f332d3d74bfbf878680d
MD5 8f35683876bbdccd832a8bae9cf8dbd8
BLAKE2b-256 312daff27abe5fc201d83ab90c6077fcf7d6efd2ceb2181a028a643abceac8de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page