# hbm:bedrock_oil_deposit

Places a bedrock oil deposit and a surface scar.

## Fields

| Field | Meaning and default |
| - | - |
| `core` | Block state placed in the deposit. |
| `core.id` | Registered block ID. |
| `core.properties` (Optional) | Block-state property names and string values. |
| `replaceable` | Vanilla rule test selecting blocks replaced in addition to bedrock. |
| `replaceable.predicate_type` | Vanilla rule-test type. |
| `replaceable.tag` (Optional) | Block tag for tag_match. |
| `replaceable.block` (Optional) | Block ID for block_match. |
| `surface_scars` (Optional) | Additional surface-scar replacements, tried in order after the built-in soil, sand and stone rules; the first matching target supplies its state. Default empty. |
| `surface_scars.target` | Vanilla rule test selecting replaceable blocks. |
| `surface_scars.target.predicate_type` | Vanilla rule-test type. |
| `surface_scars.target.tag` (Optional) | Block tag for tag_match. |
| `surface_scars.target.block` (Optional) | Block ID for block_match. |
| `surface_scars.state` | Block state placed at a matching target. |
| `surface_scars.state.id` | Registered block ID. |
| `surface_scars.state.properties` (Optional) | Block-state property names and string values. |

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

The deposit replaces bedrock and `replaceable` matches at offsets `(dx, dy, dz)` from the dimension floor below the origin with $|dx| + dy + |dz| \le 6$, $|dx|, |dz| \le 4$ and $0 \le dy \le 4$.

## Example

Source path: `data/hbm/worldgen/feature/bedrock_oil_deposit.json`

```json
{
  "type": "hbm:bedrock_oil_deposit",
  "core": "hbm:ore_bedrock_oil",
  "replaceable": {
    "predicate_type": "minecraft:tag_match",
    "tag": "minecraft:base_stone_overworld"
  }
}
```
