minecraft anvil文件格式解析器
anvil-parser的Python项目详细描述
砧形分析器
的简单解析器用法
importanvilregion=anvil.Region.from_file('r.0.0.mca')# You can also provide the region file name instead of the objectchunk=anvil.Chunk.from_region(region,0,0)# If `section` is not provided, will get it from the y coords# and assume it's globalblock=chunk.get_block(0,0,0)print(block)# <Block(minecraft:air)>print(block.id)# airprint(block.properties)# {}
注
仍然包含一些错误,从1.14.4和1976年的dataversion中使用saves进行测试