near_block

Passes when a block of the specified type is found within a cubic radius of the entity.

Categories: world

Required arguments

Key(s)DescriptionType
blockThe block type to search for.BLOCK
radiusThe radius of the cube around the entity to search within.INT

Example

conditions:
  - id: near_block
    args:
      block: <value>
      radius: 5