Posted 01 July 2015 - 09:56 PM
Hello, recently I'm playing minecraft with computercraft. I tryed to create my program for a mining turtle. The program works… but there is a problem: the turtle doesn't stop. I wrote this:
while true do
turtle.digUp ()
turtle.digDown ()
turtle.up ()
turtle.turnLeft ()
turtle.dig ()
turtle.turnRight ()
turtle.turnRight ()
turtle.dig ()
turtle.down ()
turtle.dig ()
turtle.turnLeft ()
turtle.turnLeft ()
turtle.dig ()
turtle.down ()
turtle.dig ()
turtle.turnRight ()
turtle.turnRight ()
turtle.dig ()
turtle.up ()
turtle.turnLeft ()
turtle.dig ()
turtle.forward ()
end
But I want that the turtle will stop when its inventory is full. And I also want that the turtle leave the mined items in a chest and then it returns to dig. How can I do? Or can you help me completing the program?
P.s. Sorry for the wrong translation but I don't speak english very well :unsure:/> :unsure:/> :unsure:/>
while true do
turtle.digUp ()
turtle.digDown ()
turtle.up ()
turtle.turnLeft ()
turtle.dig ()
turtle.turnRight ()
turtle.turnRight ()
turtle.dig ()
turtle.down ()
turtle.dig ()
turtle.turnLeft ()
turtle.turnLeft ()
turtle.dig ()
turtle.down ()
turtle.dig ()
turtle.turnRight ()
turtle.turnRight ()
turtle.dig ()
turtle.up ()
turtle.turnLeft ()
turtle.dig ()
turtle.forward ()
end
But I want that the turtle will stop when its inventory is full. And I also want that the turtle leave the mined items in a chest and then it returns to dig. How can I do? Or can you help me completing the program?
P.s. Sorry for the wrong translation but I don't speak english very well :unsure:/> :unsure:/> :unsure:/>