California’s been a national pioneer in plenty of things, from amusement parks to cloverleaf freeways. The next frontier? Green construction.

California just passed a compromise version of its new “green building” code. The plan is to make new construction in California more energy-efficient and easier on the environment by tweaking everything from water usage to building materials themselves.

The...