A python library to create minecraft data packs
Project description
Onyx
A python library to create minecraft data packs
Documentation
You can view the documentation here.
Getting Started
First, install the package with pip install onyx-mclib
.
Next, create a python script and import onyx. It is also recommended you import all of nbtlib.tag
like so: from nbtlib.tag import *
.
Here's a sample script to get you started:
import onyx
class MyPack(onyx.DataPack):
def __init__(self):
super().__init__("My data pack name")
self.function("namespace:function", self.function_obj)
self.generate()
def function_obj(self):
onyx.commands.say("Hello, World!")
MyPack()
Credits
- fizzy/vberlier - Creator of nbtlib, beet, and mudkip, helped walk me through using GitHub actions
- Lue, fizzy/vberlier - Helping me unscrew git
- Arcensoth, rx, vdvman1 - Library design help
- Jayfin, Lue, lolad/lolgeny, MulverineX, Speedy2025 - Motivating me to work on this project after nearly abandoning it
- You - For using this (hopefully, heh)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onyx-mclib-2.0.0.tar.gz
(84.1 kB
view hashes)
Built Distribution
onyx_mclib-2.0.0-py3-none-any.whl
(88.8 kB
view hashes)
Close
Hashes for onyx_mclib-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26ab5ffb5be21569cd4e2e91f9e11f6e5f0aaedc44fbc48442aaefbbbe67f55e |
|
MD5 | 42eda4e129bada997a2378a06b9e64bb |
|
BLAKE2b-256 | 891395ec1aa77e7aa2ed9bc4dd69c2ccd9952ba8f5d7821375f531c2c23deb86 |