def index_to_coord(index):
    """Returns relative chunk coodinates (x,y,z) given a chunk index.

    Args:
        index (int): Index of a chunk location.
    """
    y = index // 256
    z = (index - y * 256) // 16
    x = index - y * 256 - z * 16
    return x, y, z