They can also often be found in caves. Larvae both feed on fungi and are predatory - they can spin webs by secreting acid fluids, which they use to kill smaller invertebrates and capture spores. Some of the predatory larvae cannibalize pupa of their own species.
The passage describes the diverse behaviors of cave-dwelling larvae, highlighting their role as both predators and consumers.  They utilize acid secretions for trapping prey and can even cannibalize their own kind.