Sticky rice, cooked into the mortar.
Ming builders boiled sticky rice into a porridge and mixed it with slaked lime. The starch made the mortar far stronger and more water-resistant than plain lime, which is why so many sections have survived more than 500 years of weather and earthquakes.