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

Changelog

v0.0.2
  • Added support for unquoted compounds

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.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

SNBT-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: SNBT-0.0.2.tar.gz
  • Upload date:
  • Size: 3.3 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.2.tar.gz
Algorithm Hash digest
SHA256 02ab54098fde317611ecdac84027e53152e706c893243efbe9e7188f2e30254e
MD5 8aea0fc92017c4cdbd7fa566488279f0
BLAKE2b-256 4279ac819a1be8d16e98853192be9f24f8a62e73c4605ca93436b7697a926acc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: SNBT-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 19ff41a9234d0ee66899503c71aab299e1fea6e65e74ba7209b076cffc989d22
MD5 218679440083823f34e2e155101256a7
BLAKE2b-256 347b7ca735472c9b35dc96d5859b2e1cbfcc29072453ac9c3bf3420cfa016ff7

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