Update biomes
This commit is contained in:
196
level/chunk.go
196
level/chunk.go
@ -62,131 +62,79 @@ func EmptyChunk(secs int) *Chunk {
|
||||
}
|
||||
}
|
||||
|
||||
var biomesIDs = map[string]BiomesState{
|
||||
"the_void": 0,
|
||||
"plains": 1,
|
||||
"sunflower_plains": 2,
|
||||
"snowy_plains": 3,
|
||||
"ice_spikes": 4,
|
||||
"desert": 5,
|
||||
"swamp": 6,
|
||||
"forest": 7,
|
||||
"flower_forest": 8,
|
||||
"birch_forest": 9,
|
||||
"dark_forest": 10,
|
||||
"old_growth_birch_forest": 11,
|
||||
"old_growth_pine_taiga": 12,
|
||||
"old_growth_spruce_taiga": 13,
|
||||
"taiga": 14,
|
||||
"snowy_taiga": 15,
|
||||
"savanna": 16,
|
||||
"savanna_plateau": 17,
|
||||
"windswept_hills": 18,
|
||||
"windswept_gravelly_hills": 19,
|
||||
"windswept_forest": 20,
|
||||
"windswept_savanna": 21,
|
||||
"jungle": 22,
|
||||
"sparse_jungle": 23,
|
||||
"bamboo_jungle": 24,
|
||||
"badlands": 25,
|
||||
"eroded_badlands": 26,
|
||||
"wooded_badlands": 27,
|
||||
"meadow": 28,
|
||||
"grove": 29,
|
||||
"snowy_slopes": 30,
|
||||
"frozen_peaks": 31,
|
||||
"jagged_peaks": 32,
|
||||
"stony_peaks": 33,
|
||||
"river": 34,
|
||||
"frozen_river": 35,
|
||||
"beach": 36,
|
||||
"snowy_beach": 37,
|
||||
"stony_shore": 38,
|
||||
"warm_ocean": 39,
|
||||
"lukewarm_ocean": 40,
|
||||
"deep_lukewarm_ocean": 41,
|
||||
"ocean": 42,
|
||||
"deep_ocean": 43,
|
||||
"cold_ocean": 44,
|
||||
"deep_cold_ocean": 45,
|
||||
"frozen_ocean": 46,
|
||||
"deep_frozen_ocean": 47,
|
||||
"mushroom_fields": 48,
|
||||
"dripstone_caves": 49,
|
||||
"lush_caves": 50,
|
||||
"nether_wastes": 51,
|
||||
"warped_forest": 52,
|
||||
"crimson_forest": 53,
|
||||
"soul_sand_valley": 54,
|
||||
"basalt_deltas": 55,
|
||||
"the_end": 56,
|
||||
"end_highlands": 57,
|
||||
"end_midlands": 58,
|
||||
"small_end_islands": 59,
|
||||
"end_barrens": 60,
|
||||
}
|
||||
var biomesIDs map[string]BiomesState
|
||||
|
||||
var biomesNames = []string{
|
||||
0: "the_void",
|
||||
1: "plains",
|
||||
2: "sunflower_plains",
|
||||
3: "snowy_plains",
|
||||
4: "ice_spikes",
|
||||
5: "desert",
|
||||
6: "swamp",
|
||||
7: "forest",
|
||||
8: "flower_forest",
|
||||
9: "birch_forest",
|
||||
10: "dark_forest",
|
||||
11: "old_growth_birch_forest",
|
||||
12: "old_growth_pine_taiga",
|
||||
13: "old_growth_spruce_taiga",
|
||||
14: "taiga",
|
||||
15: "snowy_taiga",
|
||||
16: "savanna",
|
||||
17: "savanna_plateau",
|
||||
18: "windswept_hills",
|
||||
19: "windswept_gravelly_hills",
|
||||
20: "windswept_forest",
|
||||
21: "windswept_savanna",
|
||||
22: "jungle",
|
||||
23: "sparse_jungle",
|
||||
24: "bamboo_jungle",
|
||||
25: "badlands",
|
||||
26: "eroded_badlands",
|
||||
27: "wooded_badlands",
|
||||
28: "meadow",
|
||||
29: "grove",
|
||||
30: "snowy_slopes",
|
||||
31: "frozen_peaks",
|
||||
32: "jagged_peaks",
|
||||
33: "stony_peaks",
|
||||
34: "river",
|
||||
35: "frozen_river",
|
||||
36: "beach",
|
||||
37: "snowy_beach",
|
||||
38: "stony_shore",
|
||||
39: "warm_ocean",
|
||||
40: "lukewarm_ocean",
|
||||
41: "deep_lukewarm_ocean",
|
||||
42: "ocean",
|
||||
43: "deep_ocean",
|
||||
44: "cold_ocean",
|
||||
45: "deep_cold_ocean",
|
||||
46: "frozen_ocean",
|
||||
47: "deep_frozen_ocean",
|
||||
48: "mushroom_fields",
|
||||
49: "dripstone_caves",
|
||||
50: "lush_caves",
|
||||
51: "nether_wastes",
|
||||
52: "warped_forest",
|
||||
53: "crimson_forest",
|
||||
54: "soul_sand_valley",
|
||||
55: "basalt_deltas",
|
||||
56: "the_end",
|
||||
57: "end_highlands",
|
||||
58: "end_midlands",
|
||||
59: "small_end_islands",
|
||||
60: "end_barrens",
|
||||
"the_void",
|
||||
"plains",
|
||||
"sunflower_plains",
|
||||
"snowy_plains",
|
||||
"ice_spikes",
|
||||
"desert",
|
||||
"swamp",
|
||||
"mangrove_swamp",
|
||||
"forest",
|
||||
"flower_forest",
|
||||
"birch_forest",
|
||||
"dark_forest",
|
||||
"old_growth_birch_forest",
|
||||
"old_growth_pine_taiga",
|
||||
"old_growth_spruce_taiga",
|
||||
"taiga",
|
||||
"snowy_taiga",
|
||||
"savanna",
|
||||
"savanna_plateau",
|
||||
"windswept_hills",
|
||||
"windswept_gravelly_hills",
|
||||
"windswept_forest",
|
||||
"windswept_savanna",
|
||||
"jungle",
|
||||
"sparse_jungle",
|
||||
"bamboo_jungle",
|
||||
"badlands",
|
||||
"eroded_badlands",
|
||||
"wooded_badlands",
|
||||
"meadow",
|
||||
"grove",
|
||||
"snowy_slopes",
|
||||
"frozen_peaks",
|
||||
"jagged_peaks",
|
||||
"stony_peaks",
|
||||
"river",
|
||||
"frozen_river",
|
||||
"beach",
|
||||
"snowy_beach",
|
||||
"stony_shore",
|
||||
"warm_ocean",
|
||||
"lukewarm_ocean",
|
||||
"deep_lukewarm_ocean",
|
||||
"ocean",
|
||||
"deep_ocean",
|
||||
"cold_ocean",
|
||||
"deep_cold_ocean",
|
||||
"frozen_ocean",
|
||||
"deep_frozen_ocean",
|
||||
"mushroom_fields",
|
||||
"dripstone_caves",
|
||||
"lush_caves",
|
||||
"deep_dark",
|
||||
"nether_wastes",
|
||||
"warped_forest",
|
||||
"crimson_forest",
|
||||
"soul_sand_valley",
|
||||
"basalt_deltas",
|
||||
"the_end",
|
||||
"end_highlands",
|
||||
"end_midlands",
|
||||
"small_end_islands",
|
||||
"end_barrens",
|
||||
}
|
||||
|
||||
func init() {
|
||||
biomesIDs = make(map[string]BiomesState, len(biomesNames))
|
||||
for i, v := range biomesNames {
|
||||
biomesIDs[v] = BiomesState(i)
|
||||
}
|
||||
}
|
||||
|
||||
// ChunkFromSave convert save.Chunk to level.Chunk.
|
||||
|
Reference in New Issue
Block a user