This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Vultraz's profile picture

Mining Program help?

Started by Vultraz, 06 July 2012 - 11:52 PM
Vultraz #1
Posted 07 July 2012 - 01:52 AM
a = 0
for i = 1,383 do
turtle.dig()
turtle.forward()
turtle.digUp()
if a == 6 then
if turtle.detectDown() then
turtle.back()
turtle.select(1)
turtle.place()
end
a = 0
turtle.forward()
else
a = a + 1
end
end

This returns
bios :206: [string "tunnel"]:11: '=' expected
archit #2
Posted 07 July 2012 - 04:26 AM
Be sure to format your code, better for us reading it to help you, as well as helps you spot mistakes as well.

Saying that, I do not spot any mistakes in the code you posted. Is this the entire code of the program?
Is this also part of the file called tunnel?