Affects Version/s: Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.13.1, 1.15.2, 20w15a, 20w46a
Fix Version/s: None
Category:Commands, Mob behaviour
Vexes summoned by evokers do not transfer over their team tag to the vexes. This results in vexes attacking members of the team the evoker is on.
- Create a team and join the team.
- Summon an evoker being a member of the team.
- Switch to survival or adventure mode
→ The evoker does not attack you
- Summon a villager and wait for the evoker to spawn vexes.
→ The vexes attack villager
- Wait for the villager to die.
→ When the villager is dead the vexes attack you, but the evoker who summoned them is on your team
The following is based on yarn 1.15.2 names.
In the method net.minecraft.entity.mob.EvokerEntity$SummonVexGoal.castSpell() sets the initial stuff (angles, position, ect...) but there's no call to set a team. To fix this issue, this call should be added (before the spawn of the entity):