Fetching details from the dictionary...

resin (from trees)
(tobacco) tar; nicotine
sleep (in one's eyes); eye discharge
松の木からやにが出ているのが見える。
Resin is coming out of the pine tree.
タバコのやにで壁が黄色くなってしまった。
The wall is yellow from tobacco tar.
やにで手がベタベタになった。
My hands got sticky from resin.