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

Getting starting with turtles, don't understand why mine won't move after digging

Started by brianxx, 15 March 2017 - 06:29 PM
brianxx #1
Posted 15 March 2017 - 07:29 PM
http://pastebin.com/DCiChxLv

So basically, I check if there is sand, then dig.

Two issues:
1) If there is sand below, I get "Sand6:31: attempt to index ? (a nil value)" , which is turle.down()
2) If there is no sand below, it just digs the sand around it then continues to turn forever, never moving.

I am basically just trying to set this up in a desert and have it go mine all the same efficiently it can find, and not mine anything else. Any help would be appreciated.
Lyqyd #2
Posted 15 March 2017 - 07:43 PM
Well, turtle.down will work better than turle.down.

Have you fueled the turtle?
brianxx #3
Posted 15 March 2017 - 09:47 PM
Well, turtle.down will work better than turle.down.

Have you fueled the turtle?

Thanks that solved it.. it lost its fuel after i replaced it
Dog #4
Posted 16 March 2017 - 01:14 AM
If you label the turtle, it won't lose it's programs and fuel when you break it.

label set YourLabelHere