Advertisement
rungholt

micromelon

Feb 14th, 2021
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 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.detect() then
  12.         turtle.dig()
  13.     else
  14.         findSlot()
  15.         turtle.dropUp()
  16.         turtle.turnRight()
  17.         sleep(30)
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement