{"repo":"MestreLion/mcworldlib","free":true,"listed":false,"github":"https://github.com/MestreLion/mcworldlib","clone":"git clone https://github.com/MestreLion/mcworldlib.git","description":"Yet another library to manipulate Minecraft data, inspired by pymclevel","language":"Python","stars":42,"topics":["minecraft","nbt"],"license":"GPL-3.0","category":"game-templates","readme_excerpt":"mcworldlib - Minecraft World Library Yet another library to manipulate Minecraft data, inspired by the now-defunct pymclevel, building on top of the amazing nbtlib. Focused on making the bridge between the on-disk save files and directory structure and their NBT content, much like NBTExplorer, presenting all World data in a structured, convenient way so other tools can build on top of it and add more semantics to that data. --- Features -------- - Read and write .dat NBT files, both uncompressed and gzip-compressed. - Read and write .mca / .mcr Anvil region files, lazily loading their contents only when the data is actually requested, also monitoring content changes to efficiently save back to disk only the needed files. - Read and write .mcc external chunk files, loading from there when indicated by the chunk header in the .mca region file, and automatically selecting the appropriate format on save: external mcc if the chunk data outgrows its previous maximum size ( 1 MB), and back to the mca if it shrinks enough to fit there again. --- Usage ----- Reading world data You can open a Minecraft World by several ways: - Path to a level.dat file , or its open file-like stream object; - Path to a world directory , containing the level.dat file at its root, as in the example below; - World name , i.e, the directory basename of a world in the platform-dependent default Minecraft saves/ path. By default, it is the in-game world name. World.dimensions is a dictionary mapping each dime","default_branch":null,"files":null,"tree":[],"storefront":"/r/MestreLion","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MestreLion/mcworldlib/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}