I've never mined/quarried a single nitor or sulphur :( but this machine makes up for it. Feed it wood and Netherack and watch gun powder appear.
The design is a bit of mess as I put it together on the fly.
There's also an additional step in there to help me to make sulphuric acid, but...