# 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.Name` | Registered block ID. | |
| `marker.Properties` (Optional) | Block-state property names and string values. | |
| `result` | Replacement block state. | |
| `result.Name` | 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: [until NTM 1.0.3: `data/hbm/worldgen/processor_list/component/fun_junction_no_path_east_no_path_normal.json`][since NTM 1.0.3: `data/hbm/worldgen/processor_list/component/fun_junction.json`]

```json
{
  "marker": {
    "Name": "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": {
    "Name": "minecraft:light",
    "Properties": {
      "level": "0",
      "waterlogged": "false"
    }
  }
}
```
