mojira.dev
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.

Linked issues

Comments 6

Rousseau Valentin

You just forgot that this also applies to : Pig -> Zombified_piglin and Villager -> Witch with lightning

does this also happen when a zombie villager is cured

Can confirm in 20w49a.

Can confirm in 21w05b.

Can confirm in 21w06a.

This is pretty much fixed if the UUID line of MC-88967 is corrected.

xXUnztoppablezXx

coschevi

Confirmed

Entities

conversion, husk, team, zombie, zombie_villager

Minecraft 1.13, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, ..., 1.16.4, 21w05b, 21w06a, 21w07a, 1.20.1

24w36a

Retrieved