Can WorldGen Blocks Have A Prerequisite of Being Next to A Certain Block?

I'm trying to make large diamond deposits only form next to lava pools.

Continue to help post