Biomes
Use biome content, region declarations and level handles to control biome generation, query biomes and edit biome cells.
From Sunrise's modding bookead8a1e
Add a biome
- Use
data/in a content mod or data pack (content mods)<ns>/ worldgen/ biome/ <name>.json - Side
- Content
Add my features or spawns to vanilla's biomes
- Use
Registrar::or a file indeclare_ biome_ modifier data/(content mods)<ns>/ neoforge/ biome_ modifier/ - Side
- Content
Give my dimension its own biomes
- Use
DimensionSettings:::biome_ source Fixed,Checkerboard,MultiNoiseby preset,End, orPointsfor an explicit climate-point layout (dimension shape)- Side
- Both
Put my biomes among the Overworld's or the Nether's
- Use
Registrar::with a weighteddeclare_ biome_ region BiomeRegion(biome regions)- Side
- Both
Know the biome at a position
- Use
LevelRef::on a server level,biome_ at LevelRef::on a clientclient_ biome - Side
- Server, client
Find the nearest biome or tag
- Use
LevelRef::with afind_ closest_ biome BiomeSearch- Side
- Server
Change a biome
- Use
LevelRef::, one 4x4x4 cell, asset_ biome /doesfillbiome - Side
- Server
Run bone meal at a position
- Use
LevelRef::bone_ meal - Side
- Server
Place a feature (a tree, a patch, an ore vein)
- Use
LevelRef::, asplace_ feature /does (placing a template)place feature - Side
- Server
Tint foliage, grass or water by biome
- Use
- The
register_hook for new colour resolvers, and thecolor_ resolvers biome_hook to change a biome's own colourscolors - Side
- Client
Code and file modifiers support features, spawns, spawn costs, carvers, climate and effects. They apply additions, then removals, then modifications when the world loads, after its data packs. Mods cannot choose explicit phases or supply custom biome-modifier serializers (content mods).
Adopt installed biome regions
From the client's world list, open Edit World and confirm adoption to save the installed mods' biome regions for that world. Completed chunks keep their biomes and blocks. New chunks use the adopted layout, and chunks still being generated may finish with it. See biome regions.
Read and write limits
biome_atnever loads or generates a chunk: an unloaded column answersNone.find_closest_biomefollows vanilla's sampled spiral, so it is not a search through cells a mod edited, and it refuses a search whose sample count passesBiomeSearch::MAX_SAMPLES.set_biomerefuses a client, an unknown biome and an unchanged cell, and returns false rather than an error.
Edit this page on GitHub · Spotted something wrong? Open an issue or ask on Discord.



