# hbmspace:roots

Flat root tunnels filled with a block.

Flat, thin tunnels that turn `replaceable` blocks into `fill`, or `lava_fill` at and below `lava_level`. Once a column passed a `top` block, a `filler` block above the cut becomes `cover`. On 26.3, a `minecraft:noise` generator whose biomes list a Space carver runs its carving after the surface pass, with vanilla carvers of the same biomes; Space carvers work only in such generators.

## Fields

| Field | Meaning and default | Range |
| - | - | - |
| `probability` | Chance that a source chunk starts the carver. | `[0, 1]` |
| `y` | Vanilla height provider for start heights. | |
| `y_scale` | Vanilla float provider: vertical scale of rooms. | |
| `lava_level` | Vertical anchor at and below which cuts fill with the lava block. | |
| `replaceable` | Block ID, `#tag` or ID list: blocks the carver may cut. | |
| `fill` | Tunnel fill. | |
| `fill.id` | Registered block ID. | |
| `fill.properties` (Optional) | Block-state property names and string values. | |
| `lava_fill` | Fill at and below `lava_level`. | |
| `lava_fill.id` | Registered block ID. | |
| `lava_fill.properties` (Optional) | Block-state property names and string values. | |
| `top` | Block ID, `#tag` or ID list: surface blocks. | |
| `filler` | Block ID, `#tag` or ID list: blocks covered when above a cut. | |
| `cover` | Covering block. | |
| `cover.id` | Registered block ID. | |
| `cover.properties` (Optional) | Block-state property names and string values. | |

The top-level `type` selects this carver; the remaining fields belong beside it.

## Example

Source path: `data/hbmspace/worldgen/carver/laythe/roots.json`

```json
{
  "type": "hbmspace:roots",
  "cover": "minecraft:grass_block",
  "fill": "hbmspace:laythe_root",
  "filler": [
    "hbmspace:laythe_silt",
    "minecraft:ice"
  ],
  "lava_fill": "minecraft:obsidian",
  "lava_level": {
    "absolute": 9
  },
  "probability": 0.14285715,
  "replaceable": "minecraft:stone",
  "top": [
    "hbmspace:laythe_silt",
    "minecraft:snow_block"
  ],
  "y": {
    "type": "minecraft:biased_to_bottom",
    "inner": 8,
    "max_inclusive": {
      "absolute": 127
    },
    "min_inclusive": {
      "absolute": 0
    }
  },
  "y_scale": 0.5
}
```
