Minecraft wiki entry for Mob, associated text: Most mobs cannot see through most solid blocks, including semi-transparent blocks such as ice, glass, tall grass, or glass panes. Mobs do not attempt to walk on rail tracks unless pushed onto the rails by other mobs.