minecraft:group_size for you with a switch.Get GodCraftOverview
minecraft:group_size is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Counts how many matching entities are around this one, so you can react to crowds in filters.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
filters | Minecraft Filter | none | Conditions an entity must pass to be counted. |
radius | Decimal | "16" | Distance in blocks to count entities within. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:group_size": {
"filters": {},
"radius": "16"
}
}