Entity Documentation - minecraft:group_size
minecraft:group_size
keeps track of entity group size in the given radius.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
filters | not set | Minecraft Filter | The list of conditions that must be satisfied for other entities to be counted towards group size. |
radius | 16 | Decimal | Radius from center of entity. |
Example
"minecraft:group_size":{
"filters": {"test": "has_ranged_weapon"} ,
"radius": 16,
}
Vanilla entities examples
piglin
"minecraft:group_size": {
"radius": 32,
"filters": {
"all_of": [
{
"test": "has_component",
"operator": "!=",
"value": "minecraft:is_baby"
},
{
"test": "is_family",
"value": "piglin"
}
]
}
}
Vanilla entities using minecraft:group_size
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈