Skip to main content

Minecraft NBT Library

Project description

bedrock-protocol-nbt

Part of Bedrock Protocol Library. Minecraft NBT Library.

Install

pip install bedrock-protocol-nbt

Usage

from bedrock_protocol.nbt import *

nbt = CompoundTag()
nbt["string_tag"] = StringTag("Test String")
nbt["byte_tag"] = ByteTag(114)
nbt["short_tag"] = ShortTag(19132)
nbt["int_tag"] = IntTag(114514)
nbt["int64_tag"] = Int64Tag(1145141919810)
nbt["float_tag"] = FloatTag(114.514)
nbt["double_tag"] = DoubleTag(3.1415926535897)
nbt["byte_array_tag"] = ByteArrayTag(b"13276273923")
nbt["list_tag"] = ListTag([StringTag("1111"), StringTag("2222")])
nbt["compound_tag"] = nbt
nbt["int_array_tag"] = IntArrayTag([1, 2, 3, 4, 5, 6, 7])

print(nbt.to_snbt())

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.


Copyright © 2025 GlacieTeam. All rights reserved.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bedrock_protocol_nbt-1.1.0-py3-none-any.whl (853.5 kB view details)

Uploaded Python 3

File details

Details for the file bedrock_protocol_nbt-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bedrock_protocol_nbt-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0eadb52525742e50b7390dd3b99bd49f633105d391e0507706e507022f32216d
MD5 ef5d0f6e373b9970c216a3ba5a4dc1fb
BLAKE2b-256 2046766d642bd70e51fe8de2f6265c09f2d87aa2cc2431b02245a873972a1e9b

See more details on using hashes here.

Supported by

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