Who made the bomb in 1281?

There are records of the Mongols using bombs against the Japanese as early as 1281 AD. The Chinese are commonly credited with the invention of the first form of gunpowder, Black Powder, but there is no definitive date or accreditation for that.