# hbm:maybe_place

Replaces a matching marker according to `probability`.

## 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. | |
| `result` | Replacement block state. | |
| `result.id` | Registered block ID. | |
| `result.properties` (Optional) | Block-state property names and string values. | |
| `probability` | Chance from `[0, 1]` of placing `result`. | `[0, 1]` |

## Example

Source path: `data/hbm/worldgen/processor_list/component/fun_junction.json`

```json
{
  "marker": {
    "id": "minecraft:chiseled_bookshelf",
    "properties": {
      "facing": "east",
      "slot_0_occupied": "false",
      "slot_1_occupied": "false",
      "slot_2_occupied": "false",
      "slot_3_occupied": "false",
      "slot_4_occupied": "false",
      "slot_5_occupied": "false"
    }
  },
  "probability": 0.5,
  "processor_type": "hbm:maybe_place",
  "result": {
    "id": "minecraft:light",
    "properties": {
      "level": "0",
      "waterlogged": "false"
    }
  }
}
```
