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

[Lua] bios:338: [string "CobbleGen"]:2;'<name>' expected

Started by Craftme2theMax, 06 January 2013 - 06:19 PM
Craftme2theMax #1
Posted 06 January 2013 - 07:19 PM
Can someone tell me what did I did wrong in this program? It was meant to be a cobblestone breaker.

repeat
  turtle.break()
  turtle.suck()
  wait(0.5)
until false
TheArchitect #2
Posted 06 January 2013 - 07:24 PM
There isn't a break() command, you should use turtle.dig().
1lann #3
Posted 06 January 2013 - 07:28 PM
also there isn't a wait function. It's sleep(num)
Craftme2theMax #4
Posted 06 January 2013 - 07:30 PM
Oh. Derp on my part. Also, thanks for the link! I thought since the turtle had a pickaxe it would "break" instead of "dig".

EDIT: Well, I need to look at the wiki. Thank you, TheArchitect and 1lann.