Colored sap, and the alkaloids in it
Cut almost anything in this family and it bleeds, and the color of what comes out is a good guide to the genus. Poppies run milky white, celandine runs bright orange, and bloodroot runs a startling red that stains skin and was used as a dye and a body paint in North America.
The liquid moves in dedicated channels called laticifers and it is a defense, delivered exactly where a mouth has just done damage. What it carries is alkaloids, and this family carries more of them, and more potent ones, than almost any other.
Opium is the dried latex of one poppy species, scored from the unripe seed capsule by hand and collected the following day. Morphine was pulled out of it in 1804 and was the first alkaloid ever isolated from any plant, named after the Greek god of dreams. Codeine and thebaine came from the same source, and the entire modern class of opioid painkillers descends from work on that molecule. The alkaloids are made in the plant's latex, which is why the seeds are a baking ingredient and the sap is a controlled substance.