Zoglins uselessly try to attack Withers
Zoglins try to attack Withers, which they cannot damage.
Steps to reproduce:
- Spawn a wither and a zoglin next to each other
Observed result:
The zoglin chases the wither to no avail.
Expected result:
The zoglin does not attack the wither, which it cannot damage.
Fix:
Change the following field in the zoglin.json file to:
"minecraft:behavior.nearest_attackable_target": {
"priority": 3,
"within_radius": 16.0,
"entity_types": [
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "zoglin"
},
{
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "creeper"
},
{
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "wither"
}
]
},
"max_dist": 16
}
],
"must_see": true
},
2020-04-30, 10:32 PM
2024-11-17, 07:05 PM
18
5
359423
1.19.20.22 Preview - 1.21.2 Hotfix
1.19.20.22 Preview, 1.18.20.26 Preview, 1.17.11 Hotfix, 1.16.100.50 Beta, 1.16.20.54 Beta, 1.16.20.53 Beta, 1.16.0.68 Beta, 1.16.0.63 Beta, 1.16.0.61 Beta, 1.16.0.60 Beta, 1.16.0.59 Beta, 1.16.0, 1.16.1, 1.16.10, 1.16.201 Hotfix, 1.18.10, 1.20.0, 1.20.81 Hotfix, 1.21.2 Hotfix
-