mojira.dev
MC-118403

Vexes summoned by evoker do not have evoker team applied

The bug

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.

How to reproduce

  1. Create a team and join the team.

    /team add yellow
    /team join yellow @s
  2. Summon an evoker being a member of the team.

    /summon evoker ~ ~1 ~ {Team:"yellow"}
  3. Switch to survival or adventure mode
    → ✔ The evoker does not attack you

  4. Summon a villager and wait for the evoker to spawn vexes.

    /summon villager ~ ~ ~ {NoAI:1b}

    → ✔ The vexes attack villager

  5. 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

Code analysis

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):

vexEntity4.world.getScoreboard().addPlayerToTeam(vexEntity4.getUuidAsString(), EvokerEntity.this.getScoreboardTeam().getName());

Linked issues

Attachments

Comments 12

Can confirm for MC 1.12.1.

Confirmed for 1.13.1.

Can confirm this is still the case in Snapshot 18w08a, a snapshot for 1.14

command syntax has changed

 

/scoreboard teams add Yellow

is now

/team add Yellow

 

/scoreboard teams join Yellow

is now

/team join Yellow

 

 

/summon evocation_illager ~ ~1 ~ {Team:"Yellow"}

is now

/summon evoker ~ ~1 ~ {Team:"Yellow"}

 

vexes now kill you even when the villager is still alive.

 
can confirm this bug for Minecraft java 1.15.2

2 more comments

Can confirm in 21w03a.

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

Nate Stringham

Oval

etanaratsastaja

Confirmed

Low

Commands, Mob behaviour

vex

Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.13.1, 1.15.2, 20w15a, ..., 21w06a, 21w08b, 1.19.3, 23w05a, 1.20.2

23w41a

Retrieved