spawn_mobs

Spawns multiple mobs near the trigger location that target the victim.

Categories: entity

Required arguments

Key(s)DescriptionType
amountThe number of mobs to spawn. Supports expressions.EXPRESSION
ticks_to_liveHow many ticks the mobs will live before being removed. Supports expressions.EXPRESSION
rangeThe radius around the trigger location in which mobs can spawn. Supports expressions.EXPRESSION
entityThe entity type to spawn.ENTITY

Optional arguments

Key(s)DescriptionTypeDefault
healthThe max health (and starting health) to set on each spawned mob. Supports expressions.EXPRESSION20

Trigger parameters required

  • PLAYER

  • LOCATION

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

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue