The bug
The summoner of a vex is not reset once it is dead.
How to reproduce
Spawn an evoker
Summon a villager next to it
/summon villager ~ ~ ~ {NoAI:1b}
Wait for the evoker to summon vexes
→✔ The vexes attack the villagerKill the evoker
/kill @e[type=minecraft:evoker]
Prevent the vexes from starving
/execute as @e[type=vex] run data merge entity @e[type=vex,limit=1] {LifeTicks:2147483647}
Switch to Survival or Adventure mode
→✔ The vexes attack youSwitch to Creative or Spectator mode
→❌ The vexes attack the villager again even though their summoner is dead and they normally don't attack villagers
Linked issues
discovered while testing 1
Comments 4
Cannot reproduce for 1.13.1, they don't attack the villager.
EDIT: Confirmed for 1.13.1.
(Because of the Invulnerable it didn't do damage to the villager, I thought they weren't attacking. my bad)
I can reproduce. https://www.youtube.com/watch?v=Vm7ziXXXHJc
Can confirm for MC 1.12.1.