Advertisement
Guest User

main3

a guest
Feb 26th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. local function doFarm()
  2. local a = 0
  3. local function doRow()
  4.     local i = 0
  5.   while i<14 do
  6.       turtle.forward()
  7.       turtle.select(1)
  8.       local success, data = turtle.inspectDown()
  9.             if data.metadata == 7 then            
  10.               turtle.digDown()
  11.               turtle.placeDown()
  12.               i = i + 1
  13.           else i = i + 1
  14.          end
  15.     end
  16. end
  17. while a <= 6 do
  18.     doRow()
  19.     turtle.turnRight()
  20.     turtle.forward()
  21.     turtle.turnRight()
  22.     doRow()
  23.     turtle.turnLeft()
  24.     turtle.forward()
  25.     turtle.turnLeft()
  26.     a = a + 1
  27. end
  28. end
  29. doFarm()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement