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.
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.