I was taught Sulfur, charcoal, saltpeter for gunpowder.
Yes, the burning sugar provides the carbon just add sulfur..........................