# hbm:weighted_place

Chooses a weighted block state for each matching marker.

## Fields

| Field | Meaning and default | Range |
| - | - | - |
| `processor_type` | Selects this processor. | |
| `marker` | Block state tested in the template. | |
| `marker.id` | Registered block ID. | |
| `marker.properties` (Optional) | Block-state property names and string values. | |
| `options` | Weighted replacement choices. | |
| `options.data` | Block state selected for replacement. | |
| `options.weight` | Relative selection weight; positive total at most `i32::MAX`. | `[0, i32::MAX]` |
| `seed_offset_y` (Optional) | Y offset used in the choice seed; default 0. | `i32` |

## Example

Source path: `data/hbm/worldgen/processor_list/barrel.json`

```json
{
  "marker": "hbm:brick_concrete",
  "options": [
    {
      "data": "hbm:brick_concrete",
      "weight": 9
    },
    {
      "data": "hbm:brick_concrete_broken",
      "weight": 2
    },
    {
      "data": "hbm:brick_concrete_cracked",
      "weight": 3
    },
    {
      "data": "hbm:brick_concrete_mossy",
      "weight": 6
    }
  ],
  "processor_type": "hbm:weighted_place"
}
```
