Posted 16 January 2013 - 04:22 AM
I am making now a program to automaticaly chop down rubber trees (FTB mod pack :D/>) and I want to make the program never reach end. That's the code:
function Up()
turtle.up()
end
function Dig()
turtle.dig()
end
function DigUp()
turtle.digUp()
end
function Dw()
turtle.down()
end
while turtle.detectDown() do
turtle.select(1)
turtle.place()
Up()
end
while turtle.detect() do
Dw()
Dig()
Up()
Dig()
DigUp()
Up()
Dig()
DigUp()
Up()
Dig()
DigUp()
Up()
Dig()
DigUp()
Up()
Dig()
DigUp()
Up()
Dig()
DigUp()
Up()
Dig()
DigUp()
Dw()
Dw()
Dw()
Dw()
Dw()
Dw()
Dw()
end
I know, it's so loong, please don't be mad…