First of all, I want to say that this script is heavily inspired from this one, written by eonsv. However, I had a few problems with it, such as it requiring ender chests to operate, so I wrote this from scratch.
Features
What it basically does is it digs this pattern to bedrock. (The shafts shown in the picture are two blocks deep, just for testing purposes. The dimensions are 8x8)
The script can be stopped and has an option to be resumed. Screenshots.
When the turtle detects an interesting block (e.g. an ore) in an adjacent block, it will mine it. Screenshots.
It is fuel efficient. It will get the exact number of fuel it needs to process the next shaft when docked.
Download
http://pastebin.com/Mj1H7sMF
How to use
Start off with building this (this is the dock). The top chest is for fuel. The back chest is for output.
Next, retrieve the pastebin file with pastebin get or manually placing it into your turtle's program folder. Name the program "dig". Don't forget to set your turtle's label, because then it won't lose the program and persistence when broken!
After you've done that, run the program and follow the wizard.
Explanation of some things in the config screen (important, please read):
Width is the number of blocks it will go right.
Height is the current Y coordinate of the turtle! You can get it by looking at the number in brackets in Rei's minimap.
Length is the number of blocks it will go forward.
Number of excluded blocks is the number of blocks that you do not want to mine, e.g. stone and dirt (stone and sandstone in my test world, because the world is sandstone)
Fuel units per item is the number of computercraft fuel units the turtle will get out of a single fuel item (e.g. coal gives 80 fuel units).
Changelog
- V1.4.1: Fixed emptying out treasure chests!
- V1.4: Added support for emptying chests. Improved inventory management.
- V1.3: Perfected position tracking system. Now desync of position/direction should be much much much rarer. Added startup script prompt.
- V1.2: Added prompt to cancel resume (e.g. you want to move the turtle, but it starts up and resumes, now it allows you to cancel for 10 seconds before moving!)
Hopefully you will find this useful!
License:
Do whatever you want with the script, but give credit to people who wrote it and keep this license. Simple, right?