mojira.dev
MC-79320

Invisible villagers and wandering traders can be seen by zombies

The bug

Zombies, husks, pillagers, illager beasts, and vindicators can attack invisible villagers and wandering traders (making wandering traders drinking an invisible potion pointless), this should not happen.

How to reproduce

  1. Summon an invisible villager.

    /summon minecraft:villager ~ ~ ~ {ActiveEffects:[{Id:14,Duration:10000,Amplifier:0,ShowParticles:0b}]}
  2. Spawn a zombie.
    → ❌  The zombie attacks the invisible villager.

Linked issues

Comments 6

Confirmed for 1.8.3. You may also add to the description that this also works with a splash potion of invisibility on a villager.

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time.

Confirmed for 1.11.2. Husks can see them too.

Confirmed for 1.13.1.

For a detailed description of this issue occurring with wandering traders and without using commands, see MC-143804

I could not test this for the wandering trader (as the zombies didn't seem to bother no matter whether it is visible or not), but for villagers it seems to be fixed (unless there are zombies that already saw the villager before it became invisible; those will continue to follow it)

Edit: Tested again, and now the zombies noticed the wandering trader when it was visible, and didn't when it wasn't. Confirmed to be fixed.

EmileBot

(Unassigned)

Confirmed

AI, invisibility, invisible, villager, wandering_trader

Minecraft 1.8.3, Minecraft 1.8.8, Minecraft 15w49b, Minecraft 1.12.2, Minecraft 18w20c, ..., Minecraft 18w48b, Minecraft 18w49a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a

Minecraft 19w08a

Retrieved