here is the script for it.
function Dig()
rednet.open("right")
local x, y, z = gps.locate(4)
term.setCursorPos(1,1)
term.clear()
print("Diging to bedrock")
Num = y
local TimesDone = 1
while TimesDone <= Num do
redstone.setBundledOutput(bundle,dig)
sleep(1)
redstone.setBundledOutput(bundle,0)
redstone.setBundledOutput(bundle,down)
sleep(1)
redstone.setBundledOutput(bundle,0)
sleep(6)
TimesDone = TimesDone + 1
end
Num = y
local TimesDone = 1
while TimesDone <= Num do
redstone.setBundledOutput(bundle,down)
sleep(1)
redstone.setBundledOutput(bundle,0)
sleep(6)
TimesDone = TimesDone + 1
end
os.reboot()
end
now this script is just a fuction whiten the larger program all other fuctiosn work.
now it dose pull the GPS data and passes the Y cordenit to be ussed in its diging fuction, it moves all the way down to bedrock and just keeps going evendought its reatched it(it didn't do this before i updated it would actualy stop and move back up) becaus of this it wont go up becaus it thinks its still needs to go down.
Edited by Lyqyd, 19 February 2013 - 06:58 AM.
added code tags











