minecraft:group_size
Dynamic value
Properties
This component has no properties in the official schema: add it as an empty object {} to switch the behaviour on.
Example from the game files
This is how vanilla Piglin uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:group_size": {
"radius": 32,
"filters": {
"all_of": [
{
"test": "has_component",
"operator": "not",
"value": "minecraft:is_baby"
},
{
"test": "is_family",
"value": "piglin"
}
]
}
}
}Used by 2
Vanilla entities with minecraft:group_size in their definition:
Related components
healthmovementexperience_rewardattackscalefollow_rangeunderwater_movementknockback_resistanceuses_legacy_frictionbuoyantvariable_max_auto_stepattack_cooldownflying_speedwater_movementattack_damageblock_movement_slowdown_immunitymovement_sound_distance_offsetstrengthair_drag_modifierbouncinessfriction_modifierlava_movementplayer.exhaustionplayer.experience