znepb

newwater.lua

Jan 12th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. -- A simple program to suck up water into a bucket.
  2. -- Put a bucket into slot one, a chest in front of the turtle, and a water source below. You will get a water bucket in the chest.
  3.  
  4. while true do
  5. if turtle.getItemCount(1) >= 1 then
  6. turtle.select(1)
  7. if turtle.getItemCount(1) ~= 0 then
  8. turtle.placeDown()
  9. turtle.drop()
  10. end
  11. else
  12. sleep()
  13. end
  14. end
Add Comment
Please, Sign In to add comment