Skip to main content

bedrock-protocol-nbt

Part of Bedrock Protocol Library. Minecraft NBT Library.

Install

pip install bedrock-protocol-nbt

Usage

from bedrock_protocol.nbt import *

# Build a nbt
nbt = CompoundTag(
    {
        "string": StringTag("Test String"),
        "byte", ByteTag(114)
        "short", ShortTag(19132)
        "int", IntTag(114514)
        "int64", Int64Tag(1145141919810)
        "float", FloatTag(114.514)
        "double", DoubleTag(3.1415926535897)
        "byte_array", ByteArrayTag(b"13276273923")
        "list", ListTag([StringTag("1111"), StringTag("2222")])
        "compound", nbt
        "int_array", IntArrayTag([1, 2, 3, 4, 5, 6, 7])
    }
)

print(nbt.to_snbt()) # to string nbt

Used Libraries

Library License Link
NBT MPL-2.0 https://github.com/GlacieTeam/NBT

License

This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).

Key Requirements:

  • Modifications to this project's files must be released under MPL-2.0.
  • Using this library in closed-source projects is allowed (no requirement to disclose your own code).
  • Patent protection is explicitly granted to all users.

For the full license text, see LICENSE file or visit MPL 2.0 Official Page.


Metadata

Release files for bedrock-protocol-nbt 2.0.0

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

Built distribution (wheel)

Table of built distributions (wheels) for bedrock-protocol-nbt 2.0.0
File Interpreter ABI Platform Actions
bedrock_protocol_nbt-2.0.0-py3-none-any.whl Python 3 none any Details for bedrock_protocol_nbt-2.0.0-py3-none-any.whl

Release files / bedrock_protocol_nbt-2.0.0-py3-none-any.whl

Download URL bedrock_protocol_nbt-2.0.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de4ad5e125dc3e9cab00afa5daceec0a6ec7a0ca9ad53894fd981af09afc945d
BLAKE2b-256 checksum
How to use checksums
d572adc2cdfebba252466024a6edacb3589f5cd7ab5b6ee67ab48a4fabbf305f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Security for bedrock-protocol-nbt 2.0.0

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