"sammeln" can have multiple translations. "Collect" would be more like "einsammeln". In the context of "Pilze sammeln", you'd use "forage". You forage for food.