All I need help with is the correct syntax I should be using to "catch" the error when it checks its inventory. I have searcher far and wide! For the correct syntax I would use in this situation to prevent the error from crashing the turtle. I don't want/need any help with the rest of the code (unless you see an obvious error) I am trying to do most of this on my own. ITS FUN! :)/> I love programming and most of what I know is self taught and I am taking classes for java. So any help you can provide would be great. (I've been up all night. Its 3:36 AM for christ's sake. would love to get some sleep)
Here is a link to the code (copy pasting it removes all of the spacing and organization)
Pastebin: http://pastebin.com/KpSzh2Rd
Thanks in advance!
Edit: I forgot to put the error code in. Here it is: quarry:31:Expected number