near_entity

Passes when the specified number of matching entities are within the given radius.

Categories: entity

Required arguments

Key(s)DescriptionType
entitiesThe list of entity types to look for nearby.ENTITY_LIST
radiusThe radius in blocks to search for nearby entities.EXPRESSION

Optional arguments

Key(s)DescriptionTypeDefault
amountThe minimum number of matching entities required (defaults to 1).INT1

Example

conditions:
  - id: near_entity
    args:
      entities: 
        - <value>
      radius: 5 + %level% * 0.5
      amount: 1 # ← Optional