Advertisement
LeviathanV

Water Bucket

May 20th, 2022 (edited)
856
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.  
  3. local function fill()
  4.     turtle.select(1)
  5.     turtle.place()
  6.     turtle.select(2)
  7.     turtle.dropDown()
  8. end
  9.  
  10. local function check()
  11.     if turtle.getItemCount(1) <= 1 then
  12.     turtle.select(1)
  13.     turtle.place()
  14.     turtle.dropDown()
  15.     sleep(1)
  16.     else
  17.     fill(turtle.getItemCount(1)-0)
  18.     end
  19. end
  20.  
  21. local function run()
  22.     turtle.select(1)
  23.     turtle.suckDown()
  24.     if turtle.getItemCount(1) >= 1 then
  25.         check()
  26.     else
  27.        
  28.         sleep(2.5)
  29.     end
  30. end
  31.  
  32.  
  33. run()
  34.  
  35. end
Advertisement
RAW Paste Data Copied
Advertisement