# hbmspace:celestial_biomes

Celestial biome ID of a position.

The density function returns the integer celestial biome ID of the block's 4×4 column cell, constant in Y, from a layer stack registered in code and seeded from the level seed. Use it as the router's `temperature` and as the `biome` input of [`celestial_relief`](https://movblock.mov/ntm-next/wiki/space/world-generation/celestial_relief.md).

## Fields

| Field | Meaning and default |
| - | - |
| `type` | `hbmspace:celestial_biomes`. |
| `layers` | Registered layer stack: `hbmspace:minmus`, `dres`, `moho`, `duna`, `eve`, `laythe` or `tekto`. Another ID raises an error when the router is built. |
| `terrain` (Optional) | `false` returns the biome map; `true` returns the relief map, which can contain river cells. Default `false`. |

## Example

From `data/hbmspace/worldgen/noise_settings/duna.json`:

```json
{"type": "hbmspace:celestial_biomes", "layers": "hbmspace:duna", "terrain": true}
```
