Turtles!

As promised, here are some of the programs I've created for the ComputerCraft turtles as seen in my video tutorial series about the Feed The Beast MindCrack mod pack.  These programs are provided as-is, no warrant, etc.  Watch my videos if you want to see these things in action.  Be warned that while I try to use good programming practices, I sometimes just go with whatever works.  To get these programs into a turtle on a server, you'll need to use a program like CC-copy -- Your solution to servers without HTTP API.

These programs are intended to be examples of what is possible and a starting point for your own programming efforts.  They are not intended to meet every need and they will likely require alterations to do what you want them to do if your needs aren't exactly like mine.

miner, brancher, and treefarm assume that fuel is in the turtle's first slot, and the turtle will automatically try to fuel itself with a single piece of whatever is in slot 1 when it runs low.  They are designed for when you're first starting out and don't have a lot of resources.  Dig down to just above bedrock level and send miner off to clear you some tunnels.  Then use brancher to dig off to each side of the tunnels, which will bring back the ores without clogging your inventory with unneeded items.  While that's going on, set up a treefarm back on the surface and start turning that wood into charcoal.  Now you have unlimited fuel!

You can use topper to pave over the ugly open pit mineshafts that the default excavate program leaves behind.  It fills in three levels deep for safety.  The excavate program leaves the turtle in the proper position and direction for this program.  Put filler material for lowest level in turtle slot 1; I usually use cobble for this.  Put filler material for the second lowest level in turtle slot 2; I usually use cobble for this as well.  Put filler material for the highest level in turtle slot 3; I use dirt if I'm near the surface or smooth stone if I'm down deep.  The topper program does not check fuel level or have any refuel function, so make sure your turtle has sufficient fuel before it starts.  It also can only use a single stack of materials for each level, it only does squares, and it doesn't handle its path being blocked by mobs or blocks, so there's a lot of room for improvement.

If you have 2x2 trees in your world, say the mighty redwood or fir trees, or even some jungle trees, this quickie tree program might be for you.  Put your turtle against the bottom of the tree on the left block of wood.  The turtle will dig in to get a toehold, then move up the tree cutting as it goes until it reaches open air.  It will then move over to the right and come back down.  It should end up right next to where it started.  You can also use this to dig a 2x2 mineshaft from deep underground up to the surface.  This program also has no fuel checks, so make sure your turtle has sufficient fuel before you start.

treefarmv3 and treefarmv3control are experimental programs for larger tree farms.  The intention is to set up several turtles with wireless modems to cut several rows of trees, setting them all into motion at once using the control program from a master control turtle.  Rename treefarmv3 to startup and the turtles will automatically run the program and wait for the signal.  This is intended for advanced players and no technical support is offered.

replicate is a fun little program that allows a crafty turtle (turtle with a crafting table inside) to build more turtles.

SelectionFile type iconFile nameDescriptionSizeRevisionTimeUser
ċ

Download
This branch mining program digs a 1x3 tunnel of the specified length, ignoring certain blocks but following all others.  5k v. 1 Jan 15, 2013, 7:15 AM Troy Cheek
ċ

Download
Simple mining program that digs a 3x3 tunnel of the specified length, optionally putting down torches and building a floor.  3k v. 1 Jan 15, 2013, 7:14 AM Troy Cheek
ċ

Download
Set up a row of chests with the proper supplies and a crafting turtle with this program can effortlessly create more turtles. See episode 47 for details.  1k v. 1 Sep 20, 2013, 9:30 PM Troy Cheek
ċ

Download
Use a melee turtle to automate your XP grinder. It even puts mob drops into a chest for you.  1k v. 1 Feb 14, 2013, 12:49 PM Troy Cheek
ċ

Download
Tops off mineshafts created by the default excavate program. Up to 8x8 only at this point.  1k v. 1 Jan 31, 2013, 4:30 AM Troy Cheek
ċ

Download
A quick way to cut down 2x2 trees. Place at the bottom of the tree on the left block of wood as you face it.  1k v. 1 Jan 31, 2013, 4:38 AM Troy Cheek
ċ

Download
Semi-automated tree farm, good for jungle, redwood, fir, and other 2x2 trees.  3k v. 1 Jan 15, 2013, 7:08 AM Troy Cheek
ċ

Download
Similar to treefarm, this program waits for a wireless modem signal before cutting trees in a straight line. See episode 45 for the setup.  3k v. 1 Sep 19, 2013, 10:31 PM Troy Cheek
ċ

Download
Sends wireless modem signal to treefarmv3 to activate multiple axe turtles at once. Great for remotely operating huge tree farm.  1k v. 1 Sep 19, 2013, 10:33 PM Troy Cheek
Comments