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.
util.h provides helper functions for common tasks around cubiomes: loading saved seed lists from disk, converting between version/biome enums and human-readable names, building biome color maps, and rendering biome data to image buffers.
Seed file I/O
loadSavedSeeds
free() it. Sets *scnt to the number of seeds loaded.
Path to the seed file.
Output: number of seeds loaded.
Version and biome name conversion
mc2str / str2mc
MCVersion enum value and its string representation (e.g., MC_1_18 ↔ "1.18"). str2mc returns MC_UNDEF if the string is not recognized.
biome2str
"minecraft:mushroom_fields"). Supports Minecraft 1.13 and later.
struct2str
StructureType enum value (e.g., "Swamp_Hut").
Biome color maps
initBiomeColors
biomesToImage.
initBiomeTypeColors
initBiomeColors, but assigns colors based on biome temperature category rather than individual biome identity.
parseBiomeColors
0x… or #…). Returns the number of successfully parsed entries.
Image rendering
biomesToImage
pixscale × pixscale block of pixels. Set flip = 2 for a standard top-down orientation.
Output RGB buffer. Must be at least
3 * sx * pixscale * sy * pixscale bytes.Color table, initialized with
initBiomeColors.Flat biome ID array of size
sx * sy, as returned by genBiomes.Width and height of the biome grid (in biome cells, not pixels).
Pixels per biome cell. Use
4 for a standard zoom.Orientation flag.
2 = top-down (standard).savePPM
0 on success, -1 if the file cannot be opened, or 1 if not all data could be written.