Advertisement
Guest User

Untitled

a guest
Jan 17th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. -- Variables
  2. local args = {...}
  3. local mode = args[1]
  4.  
  5. -- Functions
  6.  
  7.     showInfo = function()
  8.         print(info)
  9.     end
  10.  
  11.     setup = function()
  12.         go()
  13.         left()
  14.         go()
  15.         turtle.digDown()
  16.     end
  17.  
  18.     start = function()
  19.  
  20.     end
  21.  
  22.  
  23.     left = function()
  24.         turtle.turnLeft()
  25.         go()
  26.     end
  27.  
  28.     right = function()
  29.         turtle.turnRight()
  30.         go()
  31.     end
  32.  
  33.     go = function()
  34.         turtle.forward()
  35.     end
  36.  
  37.  
  38. -- Main
  39.  
  40. showInfo();
  41. if args == "setup" then
  42.     setup();
  43. else if args == "start" then
  44.     start();
  45. else then
  46.     start();
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement