Dr3bin

Turtle Dropper v.1

Mar 27th, 2021 (edited)
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. waitTime = 404
  2.  
  3. function checkForItems()
  4.     if turtle.getItemCount() < 10 then
  5.         if turtle.getSelectedSlot() == 16 then
  6.             print("Not enough items")
  7.             os.exit()
  8.         end
  9.         turtle.select(turtle.getSelectedSlot() +  1)
  10.         checkForItems()        
  11.     end
  12. end
  13.  
  14. turtle.select(1)
  15. while true do
  16.     checkForItems()
  17.     turtle.dropDown(10)    
  18.     for i = 1, waitTime do
  19.         term.clear()
  20.         term.setCursorPos(1,1)
  21.         print("Running...")
  22.         term.setCursorPos(1,2)
  23.         print("Dropping more in " .. waitTime - i .. " seconds.")
  24.         sleep(1)
  25.     end
  26. end
Add Comment
Please, Sign In to add comment