Not car gas. Posion gas, Confusion gas, and burning gas. Red, Green and blue. And yes, it is the same principle, you dig the crab it, and if you're lucky it drops the shell. The shell is converted into gas of that colour.
You mine a rock, you grab the machine, the rock is converted into a mineral. I cannot get any clearer.