Biomes¶
Biomes define terrain composition, height modifiers, trees, ores, and entity spawns.
Main Assets¶
Assets/PixitGames/BlockWorld/WorldSettings/Biomes
Assets/PixitGames/BlockWorld/Scripts/BiomeData.cs
Assets/PixitGames/BlockWorld/Scripts/BiomeEntitySpawn.cs
Included biome examples:
- Plains
- Desert
- Snowy
- Swamp
Biome Data Fields¶
| Section | Fields |
|---|---|
| Identity | Display name |
| Terrain Blocks | Surface, subsurface, deep block |
| Ores | Ore block list |
| Height Modifier | Min height offset, max height offset, mountain extra offset |
| Trees | Tree chance, trunk block, leaves block, height range, leaf radius |
| Entity Spawns | Per-biome spawn rules |
Biome Assignment¶
WorldGenerator divides the world into biome regions using:
WorldSettings.biomeSizeX
WorldSettings.biomeSizeZ
Each region picks a biome based on the world seed and region coordinate.
Creating a Biome¶
Use:
Tools > Pixit Games > Block World > Biome Creator
Then assign:
- Surface, subsurface, and deep blocks.
- Optional ore blocks.
- Optional tree blocks.
- Optional entity spawn rules.
- Add the biome to
DefaultWorldSettings.biomes.
Entity Spawn Rules¶
Each BiomeEntitySpawn controls:
- Prefab
- Min/max count per chunk
- Spawn chance
- Y offset
- Whether to require the biome surface block
- Min distance between same prefab
- Spawn attempts
- Optional random yaw