Skip to content

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:

  1. Surface, subsurface, and deep blocks.
  2. Optional ore blocks.
  3. Optional tree blocks.
  4. Optional entity spawn rules.
  5. 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