Iron Golems and Snow Golems now attack Zombie Nautili, including tamed ones, which can cause unfair deaths of valuable mounts from Iron Golems or unintended nuisances from Snow Golems.
Steps to Reproduce:
Spawn a Zombie Nautilus.
Tame it.
Spawn an Iron Golem or a Snow Golem close to the tamed Zombie Nautilus.
Expected Result:
The Golem ignores the tamed Zombie Nautilus.
Actual Result:
The Golem attacks the tamed Zombie Nautilus.
Linked issues
Attachments
Comments 4
The reason for cause of this bug is actually pretty simple.
Since 26.0, zombie nautiluses have been added to the monster family. But iron golems and snow golems attack any mob that are in the monster family. So the way to fix this would be to add this filter into their minecraft:behavior.nearest_attackable_target component.
{ "test": "is_family", "subject": "other", "operator": "not", "value": "zombie_nautilus" }