Metadata-Version: 2.4
Name: mtanvil
Version: 0.2.1
Summary: Parser and editor for Luanti worlds
Project-URL: Homepage, https://github.com/fancyfinn9/mtanvil
Project-URL: Issues, https://github.com/fancyfinn9/mtanvil/issues
Project-URL: Docs, https://github.com/fancyfinn9/mtanvil/wiki
Author-email: fancyfinn9 <fancyfinn9@proton.me>
License-Expression: GPL-3.0-only
License-File: LICENSE
Keywords: Luanti,Minetest
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: File Formats
Requires-Python: >=3.9
Requires-Dist: zstandard
Description-Content-Type: text/markdown

# mtanvil

<img alt="GitHub License" src="https://img.shields.io/github/license/fancyfinn9/mtanvil?color=darkgreen"> <a href="https://pypi.org/project/mtanvil/" target="_blank"><img alt="PyPI - Version" src="https://img.shields.io/pypi/v/mtanvil?logo=python&logoColor=white&color=blue"></a>

A Python library for parsing and editing Luanti worlds.

The name comes from Luanti’s former name (‘MT’ for Minetest) and the Minecraft world parsing library ‘anvil’

> This is extremely under development so please don't use this for any major projects right now. Future updates _will_ have breaking changes.
>
> However, testing is welcome so please do open an issue if you find problems with it.
>
> Features that are not supported (yet):
> * Node inventories (due to the lack of documentation, I must spend more time researching). Loading a MapBlock with any node inventories will probably fail.
> * Older MapBlock formats (<29) may not load and/or serialize correctly (due to the lack of documentation of the specifics of their zlib compression). This will be fixed very soon.
> * Older MapBlock formats (<23) will lose node metadata due to the old and new formats not being directly compatible. The conversion will be figured out in the future.

mtanvil fully supports MapBlock format version 29 (latest). Other versions may not be fully supported but should receive full support in the future.

It is recommended that you familiarize yourself with the [Map File Format and MapBlock Serialization Format](https://github.com/luanti-org/luanti/blob/master/doc/world_format.md#map-file-format) so that you fully understand what data mtanvil provides.

## Installation

Install mtanvil by running

`pip install mtanvil`

in your terminal.

## Docs

You can find the comprehensive mtanvil docs [here](https://github.com/fancyfinn9/mtanvil/wiki).

Please open an issue if you find that something has not been documented properly!
