mojira.dev
MC-10901

Various mobs can see invisible players

The bug

Several mobs can still see you even if you are invisible.

Affected mobs

  • Cats

  • Rabbits

  • Ocelots

  • Guardians

  • Zombies

  • Zombie pigmen

  • Pillagers

How to reproduce

  1. Use a potion of invisibility or run this command /effect give @p minecraft:invisibility 15 1

  2. Spawn or find a zombie (for example)

  3. Hit it
    → ❌ It will chase you even if you are invisible

Linked issues

Comments 24

bugi74

This could be related to MC-2638. Even though that one is creative, the common thing is that the aggro of nearby other mobs is affected in a way that seems to skip the intended checks.

However, I would also point to wiki http://www.minecraftwiki.net/wiki/Invisibility, which explains that invisibility isn't quite as full invisibility as might be thought.

rydian

Are you wearing any armor? You need to be naked for invisibility to make you fully invisible (the wiki says this).

Danny Redmond

to be honest since they are zombies they can sense you and spell you, so invisibility isn't meant to work not realy much of a problem use a bow and arrow or something

Victor Clements

No, I'm not wearing armour but the problem is I'm making a zombie survival map with certain classes that recieve the invisibility effect under a specific amount of health, which makes this bug extremely annoying. and If the zombies can "sense and spell you" why don't they do that before you hit them? this bug is specific to zombies and zombie pigmen and their "gang attack" AI so I think it doesn't have much to do with the invisibility not being as invisible as thought.

RandomDSplayer

Did you alert them of your presence before you became invisible?

14 more comments
kumasasa

@unknown, but fixed for Rabbits / Ocelots / Zombies / Zombie Pigmen?

Kraif

Confirmed for 1.13.1.

Enbeon

Confirmed for 18w44a.

Valicon

Shulkers can also see invisible players in some conditions, you should add them in the list. See MC-137009

TheBoy358

Confirmed in 19w04b, 19w05a and 19w06a.

Victor Clements

Kraif

migrated

Confirmed

Snapshot 13w09b, Snapshot 13w09c, Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w18c, ..., Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a

Minecraft 19w08a

Retrieved