Posted 17 March 2014 - 07:03 AM
i having an issue with my program where the turtle will just sit in one place instead of moving forward that is stated in the program
i dont know if i am doing something wrong here but i can see any think wrong with my program here.
i dont know if i am doing something wrong here but i can see any think wrong with my program here.
function DigTunnel(Int)
torch = 0
while Int > 0 do
if turtle.detectUp() then
turtle.digUp()
end
if turtle.detectDown() then
turtle.digDown()
end
while turtle.detect() do
turtle.dig()
sleep(0.5)
end
if torch == 8 then
turtle.select(2)
turtle.placeDown()
torch = 0
end
turtle.forward()
torch = torch + 1
Int = Int - 1
end
end
DigTunnel(48)
turtle.turnRight()
DigTunnel(3)
turtle.turnRight()
DigTunnel(48)