Advertisement
Andersfc

stray's rotating milk-machine

Oct 15th, 2013
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. --Put cobble in slot 15, Milk bucket in slot 16, normal bucket slot 1
  2. --Put a piece of cobble on a side where there is not an engine
  3. print("Put cobble in slot 15, Milk bucket in slot 16, normal bucket slot 1")
  4. print("Put a piece of cobble on a side/sides where there is not an engine, if that is the case")
  5. print("Put a cow above the turtle, it wont drown :p")
  6. sleep(5)
  7. a = 1
  8. b = 0
  9.  
  10. while true do
  11. turtle.select(15)
  12. if turtle.compare() == true then
  13. turtle.turnRight()
  14. else
  15. turtle.select(1)
  16. if turtle.compareTo(16) then
  17. turtle.drop()
  18. turtle.suck()
  19. turtle.placeUp()
  20. turtle.turnRight()
  21. else
  22. turtle.placeUp()
  23. turtle.drop()
  24. turtle.suck()
  25. turtle.turnRight()
  26. end
  27. end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement