Mojira Archive
MC-135898

Teams are not retained when a mob converts to another mob

Teams are not retained when a mob converts to another mob. This affects:

  • Husk → Zombie
  • Zombie → Drowned
  • Villager → Zombie Villager
  • Piglin → Zombified Piglin
  • Hoglin → Zoglin
  • Pig → Zombified Piglin
  • Villager → Witch
  • Zombie Villager → Villager

How to reproduce

(for a zombie)

  • Create a team.
    /team add test "Test Team"
  • Summon a zombie with this command:
    /summon minecraft:zombie ~ ~ ~ {Team:"test",Tags:["bug_zombie"]}
  • Check the number of team members of the team using this command:
    /team list test
  • You should only see one member on the team.
  • Next convert the zombie to a drowned using this command:
    /data merge entity @e[tag=bug_zombie,limit=1,sort=nearest] {DrownedConversionTime:3}
  • Check the number of members of the team again:
    /team list test
  • You should see that there are no members on the team.

I think this is happening because whenever a zombie is converted, the conversion result gets spawned and the zombie is removed without moving the team of the zombie to the result.