Posted 15 December 2012 - 10:13 PM
                It says I need to have a do command when it's already there. Please can you HELP me. Thank you
                
            
function Mine()
   turtle.dig()
   turtle.digDown()
   turtle.digUp()
   turtle.turnLeft()
   turtle.dig()
   turtle.turnRight()
   turtle.turnRight()
   turtle.dig()
   turtle.turnLeft()
   turtle.forward()
end
-- Gets how many times to repeat Mine()
local a = 1
local c = 1
print("How many times would you like to complete the process?")
local b = tostring( read())
-- 'while a = 1 do' says expected 'do'
while a = 1 do
   for c = 1,b do
	  Mine()
   end
   if c = b then
	  a = a+1
   end
end
 
         
                