Metadata-Version: 2.4
Name: bedrock-protocol-nbt
Version: 1.2.2
Summary: Minecraft NBT Library
Author: GlacieTeam
License: MPL-2.0
Project-URL: homepage, https://github.com/GlacieTeam/bedrock-protocol-nbt
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Classifier: Operating System :: OS Independent
Requires-Python: >=3
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# bedrock-protocol-nbt
Part of Bedrock Protocol Library. Minecraft NBT Library.

## Install
```bash
pip install bedrock-protocol-nbt
```

## Usage
```Python
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](LICENSE) file or visit [MPL 2.0 Official Page](https://www.mozilla.org/en-US/MPL/2.0/).  

---


### Copyright © 2025 GlacieTeam. All rights reserved.
