Mojira Archive
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.