A Minecraft anvil file format parser
Project description
anvil-parser
Simple parser for the Minecraft anvil file format
Usage
import anvil
region = anvil.Region.from_file('r.0.0.mca')
# You can also provide the region file name instead of the object
chunk = anvil.Chunk.from_region(region, 0, 0)
# If `section` is not provided, will get it from the y coords
# and assume it's global
block = chunk.get_block(0, 0, 0)
print(block) # <Block(minecraft:air)>
print(block.id) # air
print(block.properties) # {}
Note
Still contains some bugs, testing done with saves from 1.14.4, and in DataVersion 1976
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
anvil-parser-0.1.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for anvil_parser-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 236fef88eb2ec0f77a7a19aa1990325ee6c04f5d604f295ce2ba18d21cd419ed |
|
MD5 | e571c498566b929e06f0a404ac97371c |
|
BLAKE2b-256 | be9c73ad159e780263998d3bafe99d8673ed385d4f7cf12c22cb376ee473c42a |