Advertisement
rungholt

microcactus

Feb 14th, 2021
750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local function findSlot()
  2.     for i = 1,16 do
  3.         if turtle.getItemSpace(i) > 0 then
  4.             turtle.select(i)
  5.             return
  6.         end
  7.     end
  8. end
  9.  
  10. while true do
  11.     if  turtle.detectDown() then
  12.         turtle.digDown()
  13.     else
  14.         findSlot()
  15.         turtle.dropUp()
  16.         sleep(30)
  17.     end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement