definitions.py 2.09 KB
Newer Older
1 2 3 4 5 6 7
from enum import Enum

CHUNK_WIDTH_BLOCKS = 16
CHUNK_TOTAL_BLOCKS = 256  # 16 * 16
REGION_WIDTH_CHUNKS = 32
REGION_TOTAL_CHUNKS = 1024  # 32 * 32
REGION_WIDTH_BLOCKS = 512  # 16 * 32
8
REGION_WIDTH_BLOCKS_BITS = 9  # 2**9 == 515
9 10
REGION_TOTAL_BLOCKS = 262_144  # 512 * 512

11 12
MAX_BLOCK_ID = 4096  # for the Anvil file format

13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89

class BiomeType(Enum):
    ocean = 0
    plains = 1
    desert = 2
    mountains = 3
    forest = 4
    taiga = 5
    swamp = 6
    river = 7
    nether = 8
    the_end = 9
    frozen_ocean = 10
    frozen_river = 11
    snowy_tundra = 12
    snowy_mountains = 13
    mushroom_fields = 14
    mushroom_field_shore = 15
    beach = 16
    desert_hills = 17
    wooded_hills = 18
    taiga_hills = 19
    mountain_edge = 20
    jungle = 21
    jungle_hills = 22
    jungle_edge = 23
    deep_ocean = 24
    stone_shore = 25
    snowy_beach = 26
    birch_forest = 27
    birch_forest_hills = 28
    dark_forest = 29
    snowy_taiga = 30
    snowy_taiga_hills = 31
    giant_tree_taiga = 32
    giant_tree_taiga_hills = 33
    wooded_mountains = 34
    savanna = 35
    savanna_plateau = 36
    badlands = 37
    wooded_badlands_plateau = 38
    badlands_plateau = 39
    small_end_islands = 40
    end_midlands = 41
    end_highlands = 42
    end_barrens = 43
    warm_ocean = 44
    lukewarm_ocean = 45
    cold_ocean = 46
    deep_warm_ocean = 47
    deep_lukewarm_ocean = 48
    deep_cold_ocean = 49
    deep_frozen_ocean = 50
    the_void = 127
    sunflower_plains = 129
    desert_lakes = 130
    gravelly_mountains = 131
    flower_forest = 132
    taiga_mountains = 133
    swamp_hills = 134
    ice_spikes = 140
    modified_jungle = 149
    modified_jungle_edge = 151
    tall_birch_forest = 155
    tall_birch_hills = 156
    dark_forest_hills = 157
    snowy_taiga_mountains = 158
    giant_spruce_taiga = 160
    giant_spruce_taiga_hills = 161
    modified_gravelly_mountains = 162
    shattered_savanna = 163
    shattered_savanna_plateau = 164
    eroded_badlands = 165
    modified_wooded_badlands_plateau = 166
    modified_badlands_plateau = 167
    bamboo_jungle = 168
    bamboo_jungle_hills = 169