Ben's Sidekick Miner

by: bwochinski


YouTube Demo

10 Votes15 Comments1 File (3,114 bytes)

As seen in my ComputerCraft Challenge series.
This program will mine in vertical shafts down to bedrock, checking the walls of the shaft.
Shafts are staggered so the turtle will view every block if the pattern is continued, creating the most efficient 100% coverage possible.
I am continuing to work on this script, aiming to make it fully-automated.

Premium Project Mining Turtle Computer Wireless Turtle

Set "consoleID" to the id of a computer listening on rednet to get remote status messages if the turtle has a modem.

** Prep the Turtle before running! **
Slots 1,2,3 are for blocks not to mine (smooth stone, gravel, dirt)
Slot 15 is the block to backfill holes (recommend cobble)
Slot 16 is for fuel
Key Filename Size Options
#gjdh01 shaftmine 3,114 bytes Download View/Install
Feature Matrix:
Feature Required Optional Unused
Advanced Computer Unused
Advanced Monitor Unused
Computer Optional
Monitor Unused
Disk Drive Unused
Turtle Unused
Digging Turtle Unused
Felling Turtle Unused
Mining Turtle Required
Wireless Turtle Optional
RedPower Support:
Feature Required Optional Unused
Bundled Cable Unused
ccSensors Support:
Feature Required Optional Unused
ccSensors Unused
MiscPeripherals Support:
Feature Required Optional Unused
Feeding Turtle Unused
Chunk Loader Turtle Unused
Laser Turtle Unused
Resupply Turtle Unused
Solar Turtle Unused
Shearing Turtle Unused
Compass Turtle Unused
Wrench Turtle Unused
Treetap Turtle Unused
Alchemist Turtle Unused
Sign Reader Turtle Unused
REther Turtle Unused
Tank Turtle Unused
Inventory Turtle Unused
Thaum Scanner Turtle Unused
MFFS Turtle Unused
RTG Turtle Unused
Charge Station Unused
Iron Note Block Unused
Resupply Station Unused
Interactive Sorter Unused
Gate Reader Unused
Rail Reader Unused
Nuclear Information Reader Unused
Turtle Teleporter Unused
Player Detector Unused
Computer Controlled Crafter Unused
Tree Analyzer Unused

User Comments 15 Comments

I tried this script, but I got a bios:388: [string "mining"] :11: '=' expected. Can you help me out a little?

by ProfIPFreely12/09/2012 09:43:11 pm


ProflPFreely: Are you in the lua console while doing that, if so you'll have to type exit() first (Can't run programs from the lua console without the shell.run command)

by Zinal00112/18/2012 02:44:10 am


This miner mines alot of cobblestone which it is supposed to ignore.

by Davst82501/04/2013 08:54:43 am


Davst825,

Seriously? How else is it supposed to dig down without going through stone? Stone when mined with a regular pick turns into cobble, just in case you didn't know...Oh and Ben,awesome script! Works great!

by clamytoe01/30/2013 06:09:57 pm


@ Davst825 - It's likely what clamytoe pointed out, the columns aren't back-filled so you'll still get at least 2 stacks of cobble per mining run. I will add back-filling of the columns next time I update so that will be almost entirely eliminated.

@clamytoe - Thanks! Glad it's working out well!

by bwochinski02/18/2013 09:01:35 pm


when will the next update be up?

by RAgInRic02/27/2013 04:13:07 am


I set 4 miners off, and one of them came up in the wrong position. From what I saw of down there I suspect what might have happened is it dug down to bedrock, then tried to move but couldn't move the full way because of blocking bedrock and thus started digging upwards 1 block diagonally rather than the full stagger.

It might also be handy if it asked for the console loggers rednet ID, after printing out the available IDs, I tried setting it up but couldn't find a working listening program, and I'm not sure of the APIs to tell what would work and wouldn't at the moment.

Another possible improvement for multi turtle mining is if instead of staggering diagonally, it went forward and came up 5 blocks ahead, so you could stagger the turtles initial starting positions, then set them off mining, it also involves fewer turns so it may be marginally faster.

by TNowell03/08/2013 07:45:06 am


is there a get market code for this

by snape779203/11/2013 10:07:23 pm


nvm got it
ty great script

by snape779203/11/2013 10:11:21 pm


I've been having some problems with this script it says shaftmine:16: attempt to compare number with string expected, got number but it doesn't move, it just stays there

by m9p909p04/12/2013 01:03:36 pm


I'm getting a "rednet:17: No modem on right side" error and it seems to completely look past the fact that isWireless = false and tries to check it anyways. Also line 17 has nothing to do with rednet... Any help?

by Ninjawolf000706/27/2013 08:59:07 am


@Ninjawolf0007 - I believe the error was caused by the change in the way "rednet.open()" behaves. I edited the script (line 48) so it should be working now.

Let me know if you run into any other issues!

by bwochinski06/28/2013 06:39:15 am


i downloaded and modified this program to loot and mine chests
if anyone wants then here: http://www.mediafire.com/download/wh2mad6ah8n7wox/mine

by Lupus59009/25/2013 11:30:19 am


@Lupus590 - Great addition!

by clamytoe11/30/2013 09:56:19 pm


I put unlimited fuel on my server so I don't have to worry about that when practicing. But I got an error since the fuel check only looks for a number and doesn't include for the word "unlimited". If anyone else is having this problem, just replace the entire "function fuel()" block with this: http://pastie.org/pastes/9269898/text

by DreamPhreak06/07/2014 10:27:26 pm


Leave a comment:
You must be logged in to add a comment.