Basically, the main function of this program is to dig tunnels, but I set it up so it is gravel proof, refuels it self, places torches every 6 blocks so mobs don't spawn, and does a cleanup of its inventory every 12 blocks via enderchest.

Basically, for it to work properly you need to: Place fuel in slot 16, place torches in slot 15 and place an enderchest in slot 14.

After you have done that, type "mine" without the speech marks and a number, and would look like this: mine 5.

Finally, here is the link to the pastebin: http://pastebin.com/c1USQXVb

I know this program could be written simpler but this is the best that I could do.

I would like to receive feedback and comments on what I can improve and I will use your advice in my future programs!