Posted 03 January 2013 - 07:35 PM
I have been playing with the "DNS" Techpack and computercraft is part of
it and i have a program for mining and it does not seem to work at all.I am
using a fuel source but my turtle will still not go forward.
Can you please help me?
Here is the program.
local a = 0
local b = 0
io.write("How long do you want you mineshaft to be?")
a = tonumber(read())
while b < a do
if turtle.detect() or turtle.detectDown() or turtle.detectUp() then
turtle.dig()
turtle.digUp()
turtle.digDown()
if turtle.detect() then
turtle.dig()
turtle.forward()
else
turtle.forward()
end
end
b = b + 1
end
it and i have a program for mining and it does not seem to work at all.I am
using a fuel source but my turtle will still not go forward.
Can you please help me?
Here is the program.
local a = 0
local b = 0
io.write("How long do you want you mineshaft to be?")
a = tonumber(read())
while b < a do
if turtle.detect() or turtle.detectDown() or turtle.detectUp() then
turtle.dig()
turtle.digUp()
turtle.digDown()
if turtle.detect() then
turtle.dig()
turtle.forward()
else
turtle.forward()
end
end
b = b + 1
end