Jump to content

Mining turtle API


iPSY

Recommended Posts

Should be a pre-loaded program on them that will do it for you. I don't recall the specifics, but see if excavate() works, and drop the turtle next to a chest so it'll remember where it is.

Link to comment
Share on other sites

A good starting point is the built in "excavate <size>" command. it takes one argument, the area to excavate. When using excavate, I like to hit F9 to see the chunk grid and place my mining turtle right in the corner of a chunk with its left side against one chunk border and it's back side against the other border (the turtle will go forward and right). Then I place a chest directly behind the turtle, then run

dimensional anchor next to the chest and tell it to load a 3x3 area. You will want a big chest because you are going to get a lot of cobble and dirt and it will fill up fast, so you can't just leave it unattended. A better option is to use a mining script. I personally like the Vertical Shaft (rabbit hole) ore miner. To install this program on your turtle, first give your turtle a label so it will remember its programs and fuel levels. Any name will do.

excavate 16


to excavate that entire chunk (16x16). Place a 
label set CharlesDouglasDiggerson


Then use the built in pastebin program to install the rabbit hole miner as a program named "mine" from the pastebin url http://pastebin.com/Mj1H7sMF.


pastebin get Mj1H7sMF mine

Next move your turtle to a mining location, preferably in the manner I described above following chunk lines and run the "mine". A text based console will come up asking how far forward and right to go and what your current Y level is (depth) so it can resume if you log out or crash. You can tell it what type of blocks to skip (I usually use smooth stone, gravel, and dirt) and what fuel to save (it will collect coal and put it in a second chest to refuel itself). This script could reasonably run unattended for a longer period of time, but you will still want to check in once in a while to make sure it is not filled with cobble since it will still have to collect some as it digs down.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...