def main(world_folder, chunkx, chunkz, height):
    world = nbt.world.WorldFolder(world_folder)
    if not isinstance(world, nbt.world.AnvilWorldFolder):
        print("%s is not an Anvil world" % (world_folder))
        return 65 # EX_DATAERR
    chunky, yoffset = divmod(height, 16)
    try:
        section = get_section(world, chunkx, chunky, chunkz)
        try:
            blocks = section['Blocks'].value
            data = section['Data'].value
        except (KeyError, AttributeError):
            blocks = bytearray(4096)
            data = bytearray(2048)
        try:
            add = section['Add'].value
        except (KeyError, AttributeError):
            add = None
    except nbt.region.InconceivedChunk:
        print("Section undefined")
        blocks = bytearray(4096)
        data = bytearray(2048)
        add = None
    
    print_chunklayer(blocks, data, add, yoffset)
    return 0 # NOERR
dataset/ETHPy150Open twoolie/NBT/examples/anvil_blockdata.py/main/original