My Wife's grandpa used to make these out of wood and sell them at craft fairs. I've modified the design slightly and made it more conducive for 3D printing. Screws onto a standard small-mouth canning jar. The holes in the candy sliders are sized to fit regular plain M&Ms, Skittles, and Reese's Pieces.
At right around 2 hours to print and ~85 grams of filament, why not give it a try? Your kids/spouse/office mates will love you!
Enjoy! Lt me know what you think or if you have suggestions for improvement.