# hbm:ore_host

Skips an ore chain when its host cannot occur within reach.

Filters positions for a feature using vanilla ore configuration. It checks whether the host may occur in the current chunk or its eight neighbours, within the origin height band expanded by the vein's reach. Passing the filter preserves the position and consumes no randomness.

Place this filter before the count and height modifiers. Set its height band to the inclusive origin range used by the following height modifier. The eight built-in gneiss ore placements use `hbm:stone_gneiss` and Y 30–39.

## Fields

| Field | Meaning and default | Range |
| - | - | - |
| `type` | `hbm:ore_host`. | |
| `host` | Registered host block ID. | |
| `min_y` | Inclusive minimum ore-origin Y coordinate. | `i32` |
| `max_y` | Inclusive maximum ore-origin Y coordinate. | `i32` |

## Example:

From `data/hbm/worldgen/placed_feature/ore_gneiss_iron.json`:

```json
{
  "feature": "hbm:ore_gneiss_iron",
  "placement": [
    {
      "type": "hbm:world_config",
      "switches": [
        "overworld_ores"
      ]
    },
    {
      "type": "hbm:ore_host",
      "host": "hbm:stone_gneiss",
      "min_y": 30,
      "max_y": 39
    },
    {
      "type": "minecraft:count",
      "count": 25
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "type": "minecraft:height_range",
      "height": {
        "type": "minecraft:uniform",
        "min_inclusive": {
          "absolute": 30
        },
        "max_inclusive": {
          "absolute": 39
        }
      }
    },
    {
      "type": "minecraft:biome"
    }
  ]
}
```
