The treasure will be covered by a sand or gravel block if it is buried in a beach biome. It will be covered by a stone block if the treasure generates on the side of an underwater hill.