Jump to content




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


3 replies to this topic

#1 brianxx

  • Members
  • 3 posts

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.

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 15 March 2017 - 07:43 PM

Well, turtle.down will work better than turle.down.

Have you fueled the turtle?

#3 brianxx

  • Members
  • 3 posts

Posted 15 March 2017 - 09:47 PM

View PostLyqyd, on 15 March 2017 - 07:43 PM, said:

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

#4 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

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






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users