rungholt

farmStuff

Mar 1st, 2021 (edited)
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. local function goForward()
  2.     for i = 1, 6 do
  3.         turtle.forward(i)
  4.     end
  5. end
  6.  
  7. local function goBack()
  8.     for i = 1, 6 do
  9.         turtle.back(i)
  10.     end
  11. end
  12.  
  13. while true do
  14.     local isBlock, data = turtle.inspectDown()
  15.     if isBlock then
  16.         if data.state and data.state.age == 7 then
  17.             turtle.digDown()
  18.             turtle.select(1)
  19.             turtle.placeDown()
  20.         end
  21.     else
  22.         goForward()
  23.     end
  24.         goBack()
  25.         sleep(30)
  26. end
Add Comment
Please, Sign In to add comment