Jump to content




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


3 replies to this topic

#1 dom123

  • Members
  • 21 posts

Posted 25 October 2013 - 03: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

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 25 October 2013 - 07: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.

#3 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 25 October 2013 - 08: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.

#4 w1zzard

  • Members
  • 10 posts

Posted 26 October 2013 - 06: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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users