mojira.dev
MCPE-234786

Zombified Piglins with Spears attack allies and lose aggro on current target due to lack of Friendly Fire immunity

Summary

With the introduction of Spears, Zombified Piglins can now spawn wielding this weapon. Due to the weapon's reach and area of effect, they frequently accidentally hit allies.

​Unlike regular Piglins, which have AI logic to ignore accidental friendly fire, Zombified Piglins treat this damage as a hostile act. This triggers Pack Aggression against the ally holding the Spear.

​Consequently, the entire group loses aggro on their original target (whether it is a Player, Snow Golem, or other mobs) and switches priority to attack the Zombified Piglin that dealt the damage.

​Steps to Reproduce:

  1. ​Summon a group of Zombified Piglins, ensuring some are equipped with Spears.

  2. ​Introduce a hostile target (e.g., a Player in Survival mode or a Snow Golem) to trigger the group's aggression.

  3. ​Wait for a Zombified Piglin to accidentally hit a nearby ally with the Spear while attacking the target.

  4. ​Observe the group's target priority.

Observed Results

Upon friendly fire, the Zombified Piglins immediately stop attacking the original target (Player/Snow Golem) and start attacking the Zombified Piglin that dealt the accidental damage.

​Expected Results:

Zombified Piglins should ignore accidental damage dealt by other Zombified Piglins (consistent with regular Piglins) and maintain aggression toward their original target.

Linked issues

Attachments

Comments 2

Please edit your report to change the Affected Version to the version shown on the Minecraft title screen

Hi!
Thank you for your report!
However, this issue is Working As Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, Redstone, villagers, and animals may not work the same in current versions.

Quick Links
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

makgreen

(Unassigned)

Unconfirmed

Multiple

Windows

1.21.132 Hotfix

Retrieved