Posted 11 May 2013 - 02:09 PM
Hi, i Created my own program to make farming, all was working perfect, but when i saved it, and runned the program, the turtle stucked in a loop just excavating the block below, (with saving i mean to put in the Computercraft -> lua -> programs folder)
the first code (that wasn´t saved) is this:
(i used the notepad aplication to see the code)
Please help me! :(/>
the first code (that wasn´t saved) is this:
turtle.up()
turtle.forward()
while turtle.detectDown() do
turtle.digDown()
turtle.forward()
end
while not turtle.detectDown() do
turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.forward()
end
while turtle.detectDown() do
turtle.digDown()
turtle.forward()
end
while not turtle.detectDown() do
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
turtle.forward()
end
while turtle.detectDown() do
turtle.digDown()
turtle.forward()
end
turtle.turnRight()
turtle.down()
turtle.forward()
turtle.turnRight()
while not turtle.detect() do
turtle.forward()
end
turtle.drop(10)
turtle.drop(10)
but after saving the code it was looking like this:
turtle.up()
turtle.forward()while turtle.detectDown() doturtle.digDown()turtle.forward()
end
while not turtle.detectDown() do
turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.forward()
endwhile turtle.detectDown() do
turtle.digDown()turtle.forward()
endwhile not turtle.detectDown() do
turtle.turnLeft()turtle.forward()turtle.turnLeft()
turtle.forward()endwhileturtle.detectDown() doturtle.digDown()
turtle.forward()
end
turtle.turnRight()
turtle.down()turtle.forward()turtle.turnRight()
while not turtle.detect() do
turtle.forward()
endturtle.drop(10)turtle.drop(10)
(i used the notepad aplication to see the code)
Please help me! :(/>
Edited by