Posted 11 March 2014 - 12:23 AM
Self-Sustaining Branch-Mining Turtle Program
Welcome to my Branch-Mining program. This program will mine a strait tunnel in front of the turtle and mine any resources on the walls, floor, and ceiling. To make it a "branch mine" you would require at least 2 turtles running this program 2 blocks apart (this will get all of the resources in that area). So what exactly do I mean by self-sustaining? Well the Turtle will return to the surface whenever the inventory is full or if it needs fuel and it will deposit it's items and get fuel from the fuel chest. Then it will go back and continue it's tunnel. But the biggest difference between this program and others is that, if you log out and log in, it will start up, know where it is, and continue it's mine after it stops for fuel and to drop off it's resources.
NEW FEATURES (as of 6/8/2015):
- Now supports no GPS mode! Just set useGPS to false and then fill out StartX, StartY, and StartZ, and the facing direction, the program will now constantly keep track of it's current location.
- The Turtle will now mine into walls that contain ores and such instead of just mining what it sees by default (this means it will attempt to mine the whole vein). It will still know where it is after reboot!
Quick Example:
[media]http://youtu.be/Eqou3l03oTE[/media]
Full Setup Tutorial and code walkthrough:
New (not in video) for no GPS mode fill this information located at the top of the script:
– Set this to false if you don't have a working GPS system
local UseGPS = false
–ALL THIS MUST BE FILLED IN IF YOU DON"T USE GPS
local StartX = 0
local StartY = 0
local StartZ = 0
– EX: "SOUTH", "NORTH", "EAST", "WEST"
local ForwardFacingDirection = ""
–END NO GPS FILL INFORMATION
Finally the pastebin: http://pastebin.com/NzKDScRh
Setup Guide (Text)
Congratulations! You have successfully setup the Self-Sustaining Branch-Mining program. If you have any questions first watch the setup video also linked further up in this post and if you still have questions feel free to comment.
Welcome to my Branch-Mining program. This program will mine a strait tunnel in front of the turtle and mine any resources on the walls, floor, and ceiling. To make it a "branch mine" you would require at least 2 turtles running this program 2 blocks apart (this will get all of the resources in that area). So what exactly do I mean by self-sustaining? Well the Turtle will return to the surface whenever the inventory is full or if it needs fuel and it will deposit it's items and get fuel from the fuel chest. Then it will go back and continue it's tunnel. But the biggest difference between this program and others is that, if you log out and log in, it will start up, know where it is, and continue it's mine after it stops for fuel and to drop off it's resources.
NEW FEATURES (as of 6/8/2015):
- Now supports no GPS mode! Just set useGPS to false and then fill out StartX, StartY, and StartZ, and the facing direction, the program will now constantly keep track of it's current location.
- The Turtle will now mine into walls that contain ores and such instead of just mining what it sees by default (this means it will attempt to mine the whole vein). It will still know where it is after reboot!
Quick Example:
[media]http://youtu.be/Eqou3l03oTE[/media]
Full Setup Tutorial and code walkthrough:
Spoiler
[media]http://www.youtube.com/watch?v=_ko_utMn9G0[/media]New (not in video) for no GPS mode fill this information located at the top of the script:
– Set this to false if you don't have a working GPS system
local UseGPS = false
–ALL THIS MUST BE FILLED IN IF YOU DON"T USE GPS
local StartX = 0
local StartY = 0
local StartZ = 0
– EX: "SOUTH", "NORTH", "EAST", "WEST"
local ForwardFacingDirection = ""
–END NO GPS FILL INFORMATION
Finally the pastebin: http://pastebin.com/NzKDScRh
Setup Guide (Text)
Spoiler
- If you wish to set up a GPS system and use GPS mode I would recommend this program if you are having trouble setting it up: http://www.computerc...-gps-deploy-10/
- Place a Mining Turtle (with wireless connectivity) at a place where you are ok for it to mine down.
- At this location place 1 chest in front of it (this will be the ore dump chest), and 1 chest to the LEFT of it (this will be the re-fueling chest).
- Place any of the fuel (has to be the same fuel) you are going to be using in the LEFT chest.
- Open the turtle and type in:
Then type in:pastebin get NzKDScRh BranchMine
edit BranchMine
- Change the top 3 variables to your liking (the comments will inform you on what they mean/do).
- Pay attention to the IgnoreSlots variable and set it to the number of blocks you don't want the turtle to mine (EX: Stone, Dirt, etc) and put these in the first slots.
- If you want No GPS mode then change UseGPS to false and fill in the proceeding variables (read the comments)
- (REMEMBER) the item values for the ignoreslots have to be the same. So for example if you put cobblestone in, the turtle will still mine the smooth stone
- Now press ctrl then Enter to save the program
- Now type in:
edit Startup
- put these lines in the Startup program accordingly:
sleep(5)
print("Resuming Mine program")
shell.run("BranchMine")
Congratulations! You have successfully setup the Self-Sustaining Branch-Mining program. If you have any questions first watch the setup video also linked further up in this post and if you still have questions feel free to comment.
Edited on 08 June 2015 - 08:11 PM