alexhorner

Sugarcane

Jul 1st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. i=0
  4. print("DevelopedLogic's Sugar Cane Farmer")
  5. print()
  6.  
  7. while true do
  8.     if turtle.detect() then
  9.         i=i+1
  10.         print("Round "..i)
  11.         for i = 1,5 do
  12.             turtle.up()
  13.         end
  14.         for i =1,5 do
  15.             turtle.dig()
  16.             turtle.down()
  17.         end
  18.         if turtle.detect() then
  19.             turtle.dig()
  20.         end
  21.         turtle.dropDown()
  22.     end
  23. end
Add Comment
Please, Sign In to add comment