Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Cubitect/cubiomes/llms.txt

Use this file to discover all available pages before exploring further.

The biomes.h header defines the version and biome constants that appear throughout the entire cubiomes API. Every function that accepts a version argument expects one of the MCVersion constants. Biome IDs are used as return values from getBiomeAt, genBiomes, and related functions, and as inputs to the helper functions described below.

MCVersion enum

MCVersion maps Minecraft release strings to integer constants. Use MC_1_X aliases to refer to the latest patch of each major release. Development effort focuses on the newest patch for each major release; minor releases and versions at or before 1.0 are experimental.
ConstantAliasNotes
MC_UNDEFUndefined / unset version.
MC_B1_7Beta 1.7
MC_B1_8Beta 1.8
MC_1_0_0MC_1_0
MC_1_1_0MC_1_1
MC_1_2_5MC_1_2
MC_1_3_2MC_1_3
MC_1_4_7MC_1_4
MC_1_5_2MC_1_5
MC_1_6_4MC_1_6
MC_1_7_10MC_1_7
MC_1_8_9MC_1_8
MC_1_9_4MC_1_9
MC_1_10_2MC_1_10
MC_1_11_2MC_1_11
MC_1_12_2MC_1_12
MC_1_13_2MC_1_13
MC_1_14_4MC_1_14
MC_1_15_2MC_1_15
MC_1_16_1First 1.16 release.
MC_1_16_5MC_1_16
MC_1_17_1MC_1_17
MC_1_18_2MC_1_183D biomes introduced.
MC_1_19_2
MC_1_19_4MC_1_19
MC_1_20_6MC_1_20
MC_1_21_1
MC_1_21_3
MC_1_21_WDMC_1_21, MC_NEWESTWinter Drop (version TBA).

Dimension enum

ConstantValueDescription
DIM_NETHER-1The Nether.
DIM_OVERWORLD0The Overworld.
DIM_END+1The End.
DIM_UNDEF1000Undefined.

BiomeID enum

Biome IDs are integers used throughout the API. The table below lists every constant together with any legacy alias and the version it was introduced.

Land biomes

IDConstantLegacy alias
0ocean
1plains
2desert
3mountainsextremeHills
4forest
5taiga
6swampswampland
7river
12snowy_tundraicePlains
13snowy_mountainsiceMountains
14mushroom_fieldsmushroomIsland
15mushroom_field_shoremushroomIslandShore
16beach
17desert_hillsdesertHills
18wooded_hillsforestHills
19taiga_hillstaigaHills
20mountain_edgeextremeHillsEdge
21jungle
22jungle_hillsjungleHills
23jungle_edgejungleEdge
25stone_shorestoneBeach
26snowy_beachcoldBeach
27birch_forestbirchForest
28birch_forest_hillsbirchForestHills
29dark_forestroofedForest
30snowy_taigacoldTaiga
31snowy_taiga_hillscoldTaigaHills
32giant_tree_taigamegaTaiga
33giant_tree_taiga_hillsmegaTaigaHills
34wooded_mountainsextremeHillsPlus
35savanna
36savanna_plateausavannaPlateau
37badlandsmesa
38wooded_badlands_plateaumesaPlateau_F
39badlands_plateaumesaPlateau
127the_void
168bamboo_jungle(1.14)
169bamboo_jungle_hills(1.14)
177meadow(1.18)
178grove(1.18)
179snowy_slopes(1.18)
180jagged_peaks(1.18)
181frozen_peaks(1.18)
182stony_peaks(1.18)
183deep_dark(1.19)
184mangrove_swamp(1.19)
185cherry_grove(1.20)
186pale_garden(1.21 Winter Drop)

Ocean biomes

IDConstantLegacy alias
0ocean
10frozen_oceanfrozenOcean
24deep_oceandeepOcean
44warm_oceanwarmOcean
45lukewarm_oceanlukewarmOcean
46cold_oceancoldOcean
47deep_warm_oceanwarmDeepOcean
48deep_lukewarm_oceanlukewarmDeepOcean
49deep_cold_oceancoldDeepOcean
50deep_frozen_oceanfrozenDeepOcean

Nether biomes

IDConstant
8nether_wastes (hell)
170soul_sand_valley
171crimson_forest
172warped_forest
173basalt_deltas

End biomes

IDConstant
9the_end (sky)
40small_end_islands
41end_midlands
42end_highlands
43end_barrens

Mutated (modified) biome variants

Mutated biomes have IDs equal to the base biome ID plus 128.
IDConstant
129sunflower_plains
130desert_lakes
131gravelly_mountains
132flower_forest
133taiga_mountains
134swamp_hills
140ice_spikes
149modified_jungle
151modified_jungle_edge
155tall_birch_forest
156tall_birch_hills
157dark_forest_hills
158snowy_taiga_mountains
160giant_spruce_taiga
161giant_spruce_taiga_hills
162modified_gravelly_mountains
163shattered_savanna
164shattered_savanna_plateau
165eroded_badlands
166modified_wooded_badlands_plateau
167modified_badlands_plateau

Beta biomes (Alpha 1.2 – Beta 1.7)

IDConstant
51seasonal_forest
52rainforest
53shrubland

Helper functions

biomeExists

int biomeExists(int mc, int id);
Returns non-zero if the biome id exists in the given Minecraft version.
mc
int
required
Minecraft version constant.
id
int
required
Biome ID to test.

isOverworld

int isOverworld(int mc, int id);
Returns non-zero if the biome generates naturally in the Overworld for the given version. Returns 0 for biomes that exist in the version but do not generate (e.g. the_void).
mc
int
required
Minecraft version constant.
id
int
required
Biome ID to test.

getDimension

int getDimension(int id);
Returns the dimension constant (DIM_OVERWORLD, DIM_NETHER, or DIM_END) in which the biome id naturally generates.
id
int
required
Biome ID to look up.

getMutated

int getMutated(int mc, int id);
Returns the mutated (modified) variant of id for the given version, or -1 if no mutated variant exists.
mc
int
required
Minecraft version constant.
id
int
required
Base biome ID.

getCategory

int getCategory(int mc, int id);
Returns the category integer for the biome. Category values correspond to internal biome temperature groups used by the layer stack.
mc
int
required
Minecraft version constant.
id
int
required
Biome ID.

areSimilar

int areSimilar(int mc, int id1, int id2);
Returns non-zero if the two biomes are considered similar according to the version’s biome similarity rules (e.g. a biome and its mutated variant).
mc
int
required
Minecraft version constant.
id1
int
required
First biome ID.
id2
int
required
Second biome ID.

isMesa

int isMesa(int id);
Returns non-zero if id is any badlands (mesa) biome variant.
id
int
required
Biome ID.

isShallowOcean

int isShallowOcean(int id);
Returns non-zero if id is a non-deep ocean biome.
id
int
required
Biome ID.

isDeepOcean

int isDeepOcean(int id);
Returns non-zero if id is a deep ocean variant.
id
int
required
Biome ID.

isOceanic

int isOceanic(int id);
Returns non-zero if id is any ocean biome (shallow or deep).
id
int
required
Biome ID.

isSnowy

int isSnowy(int id);
Returns non-zero if id is a snowy biome.
id
int
required
Biome ID.

Build docs developers (and LLMs) love