remove_nearby_entities

Removes all nearby entities within a radius. Players are never removed.

Categories: entity, world

Required arguments

Key(s)DescriptionType
radiusThe radius to remove entities within. Supports expressions.EXPRESSION

Optional arguments

Key(s)DescriptionTypeDefault
entitiesIf specified, only these entity types will be removed. Supports placeholders.ENTITY_LIST
remove_namedWhether entities with a custom name are removed too.BOOLEANfalse

Trigger parameters required

  • LOCATION

Example

effects:
  - id: remove_nearby_entities
    args:
      radius: 5 + %level% * 0.5
      entities: <value> # ← Optional
      remove_named: true # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue