damage_nearby_entities

Deals damage to all nearby entities within a radius.

Categories: combat

Required arguments

Key(s)DescriptionType
radiusThe radius to damage entities within. Supports expressions.EXPRESSION
damageThe amount of damage to deal to each entity. Supports expressions.EXPRESSION

Optional arguments

Key(s)DescriptionTypeDefault
use_sourceIf true, the player is attributed as the damage source.BOOLEANfalse
damage_as_playerDeprecated alias for use_source.BOOLEANfalse
true_damageIf true, damage bypasses armor and resistance effects.BOOLEANfalse
entitiesIf specified, only these entity types will be damaged.ENTITY_LIST
damage_selfWhether the player can damage themselves with this effect.BOOLEANtrue

Trigger parameters required

  • LOCATION

  • PLAYER

Example

effects:
  - id: damage_nearby_entities
    args:
      radius: 5 + %level% * 0.5
      damage: %level% * 2
      use_source: true # ← Optional
      damage_as_player: true # ← Optional
      true_damage: true # ← Optional
      entities: <value> # ← Optional
      damage_self: true # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue