How do I go from 2d to 3d perlin noise?

You can do this trick to merge noise values that are mountains or plains using a third noise function. In total you will have three noise functions, 1 for mountains, 1 for plains, 1 for deciding to use which one of the two to use.