You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mcnbt

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcnbt

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

0.0.2
pipPyPI
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts