mojira.dev
MC-172304

Piglins, piglin brutes, hoglins, zoglins and axolotls can attack their own teammates

The bug

Piglins, piglin brutes, hoglins, zoglins and axolotls can attack or be attacked in the same team. They will also attack players, wither skeletons and withers that are in the same team.

How to reproduce

Piglin hunting hoglin teammates

  1. Create a team

  2. Summon piglin and hoglin with the Team tag

  3. Wait for the piglins to become hungry
    → ❌ Eventually, the hungry piglin will have to hunt its own teammate for food, and the hoglin will retaliate on its teammates.

Zoglin attacking teammates

  1. Create team

  2. Summon zoglin with the Team tag

  3. Spawn any random mob in the same team where the zoglin is
    → ❌ The zoglin will automatically attack its teammates.

Piglin Brute attacking teammates

  1. Create team

  2. Summon brute with the Team tag

  3. Add player to the Team
    → ❌ The brute will automatically attack, despite being in the same team.

 

Linked issues

MC-174884 Piglins will attack wither skeletons on the same team when friendly fire is set to false. Resolved MC-175787 Hoglins and piglins attack teammates Resolved MC-176745 Nether Mobs still hostile when added to a team Resolved MC-178375 Hoglins, Piglins and Zoglins attack other members in team Resolved MC-178832 Piglins and hoglins attack player while being in the same team Resolved

Attachments

Comments 40

They will also try to attack players and wither skeletons even if they are on the same team, which is inconsistent with the team behaviour displayed by every single other hostile mob in the game

In 20w10a with Piglins. Wither Skeletons respect the team engagement rules

In 20w11a (both Hoglins and Piglins can attack their teammates)

In 20w12a

In 20w13a

30 more comments

They won't attack other entities on their team, either.

Have you guys tested with with other entities?

Those were the only mobs that have been added since 1.15, so I'm not sure what you're referring to.

I mean do mobs like piglins attack other entities (e.g. hoglins) on their team, because it seems in the comments you've only tested it with goats

Not fully fixed: piglins still attack wither skeleton teammates. See https://bugs.mojang.com/browse/MC-225908 for details as it is a separate report.

 

Also https://bugs.mojang.com/browse/MC-225907 for zoglins

DrownedZombie

Ozone

coschevi

Confirmed

Normal

Commands, Mob behaviour

20w07a, 20w08a, 20w09a, 20w10a, 20w11a, ..., 21w08b, 21w10a, 21w11a, 21w18a, 21w19a

21w20a

Retrieved