A game can define geology, environments, how custom structures are placed, and run custom functions during mapgen for each section of the world. This is accomplished with a table of attributes for the different biomes, ores and decorations.
The patterns on the ground were made with the beach biome's vertical_blend attribute, which allows the gravel to sometimes replace the default ground blocks of the biome applied to the flat area above it. Different plants could be assigned to the different blocks, so that they are placed on these patterns when the map is built.