Merge pull request #138 from comblock/master
This commit is contained in:
121
level/chunk.go
121
level/chunk.go
@ -41,67 +41,68 @@ func EmptyChunk(secs int) *Chunk {
|
||||
}
|
||||
}
|
||||
|
||||
var biomesIDs = map[string]int{"ocean": 0,
|
||||
"deep_ocean": 24,
|
||||
"frozen_ocean": 10,
|
||||
"deep_frozen_ocean": 50,
|
||||
"cold_ocean": 46,
|
||||
"deep_cold_ocean": 49,
|
||||
"lukewarm_ocean": 45,
|
||||
"deep_lukewarm_ocean": 48,
|
||||
"warm_ocean": 44,
|
||||
"river": 7,
|
||||
"frozen_river": 11,
|
||||
"beach": 16,
|
||||
"stony_shore": 25,
|
||||
"snowy_beach": 26,
|
||||
"forest": 4,
|
||||
"flower_forest": 132,
|
||||
"birch_forest": 27,
|
||||
"old_growth_birch_forest": 155,
|
||||
"dark_forest": 29,
|
||||
"jungle": 21,
|
||||
"sparse_jungle": 23,
|
||||
"bamboo_jungle": 168,
|
||||
"taiga": 5,
|
||||
"snowy_taiga": 30,
|
||||
"old_growth_pine_taiga": 32,
|
||||
"old_growth_spruce_taiga": 160,
|
||||
"mushroom_fields": 14,
|
||||
"swamp": 6,
|
||||
"savanna": 35,
|
||||
"savanna_plateau": 36,
|
||||
"windswept_savanna": 163,
|
||||
var biomesIDs = map[string]int{
|
||||
"the_void": 0,
|
||||
"plains": 1,
|
||||
"sunflower_plains": 129,
|
||||
"desert": 2,
|
||||
"snowy_plains": 12,
|
||||
"ice_spikes": 140,
|
||||
"windswept_hills": 3,
|
||||
"windswept_forest": 34,
|
||||
"windswept_gravelly_hills": 131,
|
||||
"badlands": 37,
|
||||
"wooded_badlands": 38,
|
||||
"eroded_badlands": 165,
|
||||
"dripstone_caves": 174,
|
||||
"lush_caves": 175,
|
||||
"nether_wastes": 8,
|
||||
"crimson_forest": 171,
|
||||
"warped_forest": 172,
|
||||
"soul_sand_valley": 170,
|
||||
"basalt_deltas": 173,
|
||||
"the_end": 9,
|
||||
"small_end_islands": 40,
|
||||
"end_midlands": 41,
|
||||
"end_highlands": 42,
|
||||
"end_barrens": 43,
|
||||
"the_void": 127,
|
||||
"meadow": 177,
|
||||
"grove": 178,
|
||||
"snowy_slopes": 179,
|
||||
"frozen_peaks": 180,
|
||||
"jagged_peaks": 181,
|
||||
"stony_peaks": 182,
|
||||
"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,
|
||||
}
|
||||
|
||||
func ChunkFromSave(c *save.Chunk, secs int) *Chunk {
|
||||
|
Reference in New Issue
Block a user