Most of what black bears eat is vegetation, that's true, but it is a myth that that they don't attack humans. Black bear attacks are rare, but of those that have occurred, the majority are believed to have been unprovoked, predatory attacks.
http://www.digitaljournal.com/article/291311