All there is to edit yourself is the desired tiers of item, and the quantities of each. Can be expounded upon yourself - tweak it to how you need best.
It works by checking the current value of X item against a limiter, then making (Xtotal) - (Xcurrent) of said item.
It iterates 4 times per tier, ensuring nothing is left unmaxxed. It's on an infinite loop from tier 1-4, so you could hypothetically combine it with an ore lump mixer for afk dust tiering.
Hope it helps