For the complete documentation index, see llms.txt. This page is also available as Markdown.

Nearby Entities (1.2.0+)

Nearby Entities

Executes nested abilities for entities near the selected base entity or location.

Each matched nearby entity becomes TARGET while the nested abilities are executed. This makes it possible to reuse existing abilities such as potion_effect, set_health, sound, and particle as area effects.

type: nearby_entities
target: SOURCE
radius: 7
match-entity:
  not:
    entity-tag:
      - monster
abilities:
  1:
    type: potion_effect
    target: TARGET
    potion: SLOWNESS
    duration: 80
    amplifier: 1

Field Details

target: Base entity used as the center of the search.

Supported values are SOURCE, TARGET, and SKILL. Defaults to SOURCE.

radius: Search radius on all axes.

radius-x, radius-y, radius-z: Optional axis-specific search radius values.

match-entity: Optional entity matcher used to filter nearby living entities.

It uses the same matcher format as power apply-rules.match-entity. The source entity is skipped automatically.

To affect non-monsters only:

abilities: Nested abilities to execute on every matched nearby entity.

For repeated area effects, wrap nearby_entities inside repeat.

Last updated