# hbm:spawner_entity

Weighted mob selection for template spawners.

Each spawner in the template selects an entity type independently when placed. The processor replaces its `SpawnData` with the selected entity type and keeps the other block-entity data.

## Fields

| Field | Meaning and default | Range |
| - | - | - |
| `processor_type` | `hbm:spawner_entity`. | |
| `mobs` | Nonempty weighted entity-type choices; use a positive total weight. | |
| `mobs.data` | Entity-type ID selected for the spawner. | |
| `mobs.weight` | Relative selection weight; positive total at most `i32::MAX`. | `[0, i32::MAX]` |

## Example:

File: `data/example/worldgen/processor_list/spawners.json`.

```json
{
  "processors": [
    {
      "processor_type": "hbm:spawner_entity",
      "mobs": [
        {
          "data": "minecraft:zombie",
          "weight": 3
        },
        {
          "data": "minecraft:skeleton",
          "weight": 1
        }
      ]
    }
  ]
}
```
