Skip to main content

A lightweight library for reading, editing, and saving Minecraft NBT files.

Project description

McNBTReader

A lightweight library for reading, editing, and saving Minecraft NBT files.

Overview

McNBTReader is a Python library designed to efficiently handle Minecraft's NBT (Named Binary Tag) files, including .dat, .schematic, and .nbt formats.

Important

This library is optimized for Python 3.12. Using previous versions of Python may result in performance issues.

Features

  • Read NBT Files: Supports .dat, .schematic, and .nbt files.
  • Edit NBT Files: Currently under development.
  • Save NBT Files: Currently under development.

Usage

from mcnbt.nbt import Nbt

tree = Nbt().read_file("your_file_path")
print(tree.name)
entity = tree['Schematic']['Entities'][0]['Pos']
print(f'x: {entity[0]} y: {entity[1]} z: {entity[2]}')

LICENSE

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

mcnbt-0.0.2.tar.gz (558.5 kB view details)

Uploaded Source

Built Distribution

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

mcnbt-0.0.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcnbt-0.0.2.tar.gz
  • Upload date:
  • Size: 558.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for mcnbt-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ecb97f57bb40bd2cf6aeb2803d438406150ac6f4b4892992528ae0973d90e386
MD5 24d87978f674501de632443652df985d
BLAKE2b-256 646eb1c70da41d29bd95d72ff707de944bd548a18471218b2cc017bcb880854f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcnbt-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for mcnbt-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 da9ad2f337454f550db3e714715c33888c13bf28bcafcd5c0c0339ceb800dbaa
MD5 e6ee74d7647e8183b983c6f49b9fd5c8
BLAKE2b-256 3479155a8cffada62265b9a0a18227bb649d1aeffc673bc22ea0d3a2a0be7ad6

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