The ancient Chinese also had kitchens with built-in cotton candy machines. These machines were made of bamboo and were powered by a hand-crank. The Chinese used a mixture of sugar and rice flour to create their cotton candy. The cotton candy was often served at special occasions such as weddings and birthdays.