spawn_mobs
Spawns multiple mobs near the trigger location that target the victim.
Categories: entity
Required arguments
| Key(s) | Description | Type |
|---|
amount | The number of mobs to spawn. Supports expressions. | EXPRESSION |
ticks_to_live | How many ticks the mobs will live before being removed. Supports expressions. | EXPRESSION |
range | The radius around the trigger location in which mobs can spawn. Supports expressions. | EXPRESSION |
entity | The entity type to spawn. | ENTITY |
Optional arguments
| Key(s) | Description | Type | Default |
|---|
health | The max health (and starting health) to set on each spawned mob. Supports expressions. | EXPRESSION | 20 |
Trigger parameters required
Example
effects:
- id: spawn_mobs
args:
amount: 1 + %level% / 5
ticks_to_live: 20 * %level%
range: 5 + %level% * 0.5
entity: <value>
health: 20 + %level% * 5 # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |