Skip to main content

A library that generates SNBT strings for Minecraft

Project description

SNBT

Author: HellishBro

SNBT is a module that allows you to create SNBT objects in Minecraft.

Examples

ok heres some examples
import SNBT
print(SNBT.SNBTCompound({
    "direction": [-1, 3, 2],
    "Count": 1,
    "isGrounded": True,
    "motions": [
        [0.1, 21.2],
        [True, 1, False],
        [12917826836018, 1]
    ]
}).dump())
# prints:
# {"direction":[B;-1b,3b,2b],"Count":1b,"isGrounded":1b,"motions":[[0.1f,21.2f],[1b,1b,0b],[12917826836018l,1b]]}

TODO

prob. wont be added
  • Convert from SNBT to SNBT Compound
  • Load / Dump to JSON

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

SNBT-0.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

SNBT-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file SNBT-0.0.1.tar.gz.

File metadata

  • Download URL: SNBT-0.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for SNBT-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d595a3ce4b399196d6e361e2299c72163dcd66dc1d7ae4d8726623eca92e30b7
MD5 19887e7027bbfc90e1ccc5c5c2cb1ec3
BLAKE2b-256 83e6fa86f8541eb2933e488f79010b6532d83c2560ab77cc1954c3889953452a

See more details on using hashes here.

File details

Details for the file SNBT-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: SNBT-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for SNBT-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1aa6b01a213d063727415dbeb441ab2655cdf4a42a9bb5d7348ac2e14be22e36
MD5 280c9f6a701ef9c44ab155e96a4c21f1
BLAKE2b-256 78e8326cbc20b1f7e5a9deae6abefed6a2f8c1aaac97be8a26008b8885d88294

See more details on using hashes here.

Supported by

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