mojira.dev
MC-64370

Hostile mobs cannot see through transparent blocks

During earlier versions of Minecraft monsters could track the player through blocks. When a one-wide wall of transparent blocks [glass/iron bars/stained glass/glass panes/vines/fences] is located between myself and a hostile mob in 14w30c, the mob ignores me completely [in survival], even if all it has to do is walk two blocks around the wall in order to find me.
On the other hand, if I make a mob aware of my presence in survival [punching it, jumping so my head is visible over the transparent wall], it will lock on to my position and will quite happily pathfind through a maze of opaque blocks in order to find me. Zombies can locate villagers through any opaque or transparent block, but fail to do the same with the player.
This ability for any aggro hostile mob to track a player despite blocks impeding line-of-sight is inconsistent with the mob not being aware of the player's presense through those same blocks when not aggro.

Linked issues

Attachments

Comments 15

Maybe duplicates MC-3626

@Marcono1234
I think MC-3626 has more to do with the hostile mobs being unable to attack, or losing track of the player in vines/sugar canes in 1.4.5.
Remember when creepers/any hostile mob would hang outside the window, and follow you to the door? This bug MC-64370 in 14w30c almost reverses that behavior: hostile mobs can no longer see the player through a glass window, but once they lock on to the player, they will walk through vines and navigate opaque-block mazes straight to the player's position,

Including grass and double tall grass.

Related, but not exactly the same, since mobs can walk through the blocks listed in MC-3626, and can't walk through other transparent blocks such as glass.

This behavior has existed for as long as I remember, however. Only spiders could actually detect players through transparent blocks. Other mobs could continue to track players through transparent (and even solid) blocks if they had seen the player before, but couldn't actually spot them through any blocks.

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.

Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.

5 more comments

Confirmed for 1.16.3

how is this WAI, this issue used to never occurred in the earlier versions.

If this issue did not occur in earlier versions, then the resolution should be changed from "Works As Intended" to "Won't Fix", no?

@ampolive it did have this behaviour previously. Mobs could see a player through transparent blocks.
And they still do so in bedrock edition.

@Pelle Reinke, @ampolive

As I stated in my original report, the issue is an inconsistency between mob behaviour when targeting a player, as opposed to when they aren't. Spiders could always target a player, if memory serves, because of their spider senses, but if I recall correctly, Mojang changed that due to how they would always get stuck between wall and ceiling, and pile up in a spidery surprise when caving. When zombie AI was modified to target villagers, the range by which they could locate villagers was utterly ridiculous, and they would traverse large mazes to find them. I think at one stage mobs would lose their target if their AI took them through tall grass, as well. It was an interesting issue at the time,, and I think it linked to creepers being able to dive-bomb players from heights, and skeletons changing their shooting habits when going around corners, as well.

All I can say is, I'm impressed that Greg Milson managed to keep the issue alive for six years, and that people are still interested.

Perhaps now the team are working on the Warden, and sound interaction, and other 'blind' mobs, they might be willing to take a look at this issue again.

G. Hammond

Greg Milson

(Unassigned)

Community Consensus

Mob behaviour

AI, mob, pathfinding, transparency

Minecraft 14w30c, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43b, ..., 1.16 Pre-release 6, 1.16.1, 20w28a, 1.16.2, 1.16.3

Retrieved