bigtwisty

Receiving

Jul 26th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. local name = "Receiving"
  2. local version = "1.0a"
  3.  
  4. local function doScreen(txt)
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. print(name.." (v"..version..")")
  8. print("------------------------------")
  9. print(txt)
  10. end
  11.  
  12. local function isTrash()
  13. for i=5,16 do
  14. if turtle.compareTo(i) then return true end
  15. end
  16. return false
  17. end
  18.  
  19. while true do
  20. if turtle.suckUp() then
  21. if isTrash() then
  22. turtle.dropDown()
  23. else
  24. turtle.drop()
  25. end
  26. else
  27. turtle.sleep(1)
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment