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

Can someone look over my code and see where i made a mistake?

Started by dom123, 25 October 2013 - 02:38 PM
dom123 #1
Posted 25 October 2013 - 04:38 PM
Can someone look over my code and see where i made a mistake?

This is for a turtle miner

it will mine all the way down close to bedrock excluding 4 given materials and will store everything in colored enderchest


http://pastebin.com/....php?i=StBd2DEg
Lyqyd #2
Posted 25 October 2013 - 08:54 PM
Split into new topic.

You might want to read this post and formulate a better question, as you haven't really given any details on what the problem is.
Kingdaro #3
Posted 25 October 2013 - 09:05 PM
Looked over it, and found some stuff:
  • Comments are denoted with a double dash "–", not a hash symbol.
  • "Turtle" should be lowercased on line 17.
  • Every instance of "turtle.CompareUp" should be "turtle.compareUp", and "turtle.CompareDown" should be "turtle.compareDown".
  • "turtle.Down" should be "turtle.down".
  • You forgot the parentheses on the function at line 143.
At this point, I think it would be helpful if you took a look through some Lua tutorials, and perhaps a nice rundown on the Lua syntax.
w1zzard #4
Posted 26 October 2013 - 07:25 PM
noticed a small error in 2 of your functions, you run ChuckUp() in
function MineRight() and MineLeft() however that function doesnt exist, i assume u meant to type CheckUp() , could cause some problems