Skip to main content

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
  • 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)

Metadata

Release files for onyx-mclib 2.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for onyx-mclib 2.1.3
File Size Uploaded Provenance
onyx-mclib-2.1.3.tar.gz 84.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for onyx-mclib 2.1.3
File Interpreter ABI Platform
onyx_mclib-2.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 174.6 kB

Release files / onyx-mclib-2.1.3.tar.gz

Download URL onyx-mclib-2.1.3.tar.gz
Size 84.9 kB
Tags Source
SHA-256 checksum
How to use checksums
731f7a9895d5106c9466000211bddc9ca487ecd47d7c01b7aeed80dd22770306
BLAKE2b-256 checksum
How to use checksums
661cd5784f255bdf32ce716009fdec597a5d5a33ba5ba48e9ddbfff592a42d35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / onyx_mclib-2.1.3-py3-none-any.whl

Download URL onyx_mclib-2.1.3-py3-none-any.whl
Size 89.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87d62883e2f86e6571e7f6d5971b513bb80271e08f1ec800bcd994dc5006fbad
BLAKE2b-256 checksum
How to use checksums
aa549279c97c972f51e4874ba676a9266e4edb01abd91ad0afd5ce98d01e4ddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for onyx-mclib 2.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page