Posted 20 May 2013 - 04:42 PM
i could use some help setting up the basics of a logging program, i have created a program and am having trouble with the debugging. i know it is very basic and an absolute mess, but i want to do this without looking at someone else's program as i wanted to do this of my own accord, any sudgestions?
here is the program:
here is the program:
while true do
turtle.select(1)
turtle.place()
turtle.select(2)
if turtle.compare()==true then
turtle.dig()
turtle.forward()
if turtle.compareUp()==true then
turtle.digUp()
turtle.up()
"t"="t" + 1
end
else
turtle.turnLeft(2)
turtle.down("t")
turtle.forward()
turtle.turnLeft(2)
end
end
while true do
turtle.select(1)
turtle.place()
turtle.select(2)
if turtle.compare()==true then
turtle.dig()
turtle.forward()
if turtle.compareUp()==true then
turtle.digUp()
turtle.up()
"t"="t" + 1
end
else
turtle.turnLeft(2)
turtle.down("t")
turtle.forward()
turtle.turnLeft(2)
end
end
thanks