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 *
# 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.
Copyright © 2025 GlacieTeam. All rights reserved.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bedrock_protocol_nbt-2.0.0-py3-none-any.whl.
File metadata
- Download URL: bedrock_protocol_nbt-2.0.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de4ad5e125dc3e9cab00afa5daceec0a6ec7a0ca9ad53894fd981af09afc945d
|
|
| MD5 |
393c1875be14367c3dd0ce3797bba7fc
|
|
| BLAKE2b-256 |
d572adc2cdfebba252466024a6edacb3589f5cd7ab5b6ee67ab48a4fabbf305f
|