tonytonov

Cow milking turtle

Mar 28th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. function checkBucket()
  2.     print("Waiting for a bucket")
  3.     while turtle.getItemCount(1) < 1 do
  4.         os.sleep(10)
  5.     end
  6. end
  7.  
  8. while true do
  9.     turtle.place()
  10.     turtle.dropDown()
  11.     print ("Sleeping...")
  12.     os.sleep(3)
  13.     checkBucket()
  14. end
Advertisement
Add Comment
Please, Sign In to add comment