https://github.com/toberocat/pyfabric
PyFabric - tHe python fabric socket
https://github.com/toberocat/pyfabric
fabric minecraft minecraft-mod python python-hook web-sockets
Last synced: 2 months ago
JSON representation
PyFabric - tHe python fabric socket
- Host: GitHub
- URL: https://github.com/toberocat/pyfabric
- Owner: ToberoCat
- License: gpl-3.0
- Created: 2022-07-01T14:35:02.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-15T22:43:17.000Z (over 3 years ago)
- Last Synced: 2025-07-28T02:37:46.092Z (3 months ago)
- Topics: fabric, minecraft, minecraft-mod, python, python-hook, web-sockets
- Language: Java
- Homepage:
- Size: 27.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
## Limitations
Currently, the only thing you can use as a python dev is getting the client player and the location of it.
The location got fully loaded, so it can get saved and used for later comparison.
If you know the entity uuid, you can send a custom packet request to the server too, requesting the raw location object (Take a look at the Location class)