Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. function start()
  2. a,b = turtle.inspectDown()
  3. if b.metadata ~= 0 then
  4. for i = 1,16 do
  5. turtle.back()
  6. end
  7. turtle.select(1)
  8. end
  9.  
  10. function stuff()
  11. c,d = turtle.inspectDown()
  12. id = d.metadata
  13. if id == 13 then
  14. turtle.digDown()
  15. os.sleep(0.1)
  16. turtle.dropDown()
  17. end
  18. end
  19.  
  20. function drop()
  21. for i = 1,5 do
  22. turtle.select(i)
  23. x = turtle.getItemCount(i)
  24. z = x-1
  25. turtle.dropDown(z)
  26. end
  27. end
  28.  
  29. while true do
  30.  
  31. for i = 1,6 do
  32. s = i-1
  33. turtle.select(s)
  34. stuff()
  35. turtle.forward()
  36. end
  37.  
  38. for i = 1,6 do
  39. turtle.back()
  40. end
  41.  
  42. drop()
  43.  
  44. os.sleep(300)
  45.  
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement