rungholt

farmStuff

Mar 1st, 2021 (edited)
230
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data