Skip to content

Instantly share code, notes, and snippets.

Avatar

Freek Dijkstra macfreek

View GitHub Profile
@fakuivan
fakuivan / maincra_casita_finder.py
Last active Feb 25, 2020
Script for determining the block_id/chunk density for a specific minecraft world
View maincra_casita_finder.py
#!/usr/bin/env python3
from nbt.nbt import NBTFile
from nbt.chunk import McRegionChunk
from nbt.world import WorldFolder, AnvilWorldFolder, McRegionWorldFolder
from pathlib import Path
from pprint import pprint
from typing import List, Dict, Tuple, Optional, Generator, Iterable, Union, NamedTuple, DefaultDict, Any
from collections import defaultdict
from io import TextIOWrapper
import json
You can’t perform that action at this time.