New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • PyPI
  • Socket score

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc