Entities in Radius (Entity Condition Type) - MerchantCalico/bovines-and-buttercups-archive GitHub Wiki
Tests to see if all entities within an area match each individual entity condition specified.
Type Resource Location: bovinesandbuttercups:block_in_radius
Introduced In: 1.3.0
Fields
| Field | Type | Default | Description |
|---|---|---|---|
entity_conditions |
[Array](/MerchantCalico/bovines-and-buttercups-archive/wiki/Array-(Data-Type)) of [Entity Conditions](/MerchantCalico/bovines-and-buttercups-archive/wiki/Entity-Condition-Types-(Datapacking)) | Defines all of the entity conditions that must be individually met within the radius for this check to pass. | |
radius |
[Float](/MerchantCalico/bovines-and-buttercups-archive/wiki/Float-(Data-Type)) | Defines the radius of the area that will be checked around the entity. | |
offset |
[Array](/MerchantCalico/bovines-and-buttercups-archive/wiki/Array-(Data-Type)) of [Floats](/MerchantCalico/bovines-and-buttercups-archive/wiki/Float-(Data-Type)) | optional | If set, defines the offset at which the area originates, this starts at the entity's position. |
Example
"condition": {
"type": "bovinesandbuttercups:entities_in_radius",
"radius": 6.0,
"entity_conditions": [
{
"type": "bovinesandbuttercups:entity_type_location",
"location": "#minecraft:skeletons"
}
]
}
This example checks if there is an entity with a type that is in the minecraft:skeletons entity type tag (Located in data/minecraft/tags/entity_types/skeletons.json) around this entity. The area that's tested has a radius of 6.0 originating from the entity.