Question: can mobs see through glass?
Answer: 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 on by other mobs.