Advertisement
saneckck

doof

Oct 11th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. r = require("robot")
  2.  
  3. local function chest()
  4. r.up()
  5. r.forward()
  6. r.select(1)
  7. r.place()
  8. r.select(2)
  9. for i = 1, 15 do
  10. r.suck(64)
  11. end
  12. r.select(1)
  13. r.swing()
  14. r.select(2)
  15. r.back()
  16. r.down()
  17. end
  18.  
  19. local function place()
  20. while true do
  21. placebel = r.place()
  22. if placebel == true then
  23. break
  24. else
  25. if r.select() == 16 then
  26. chest()
  27. else
  28. r.select(r.select()+1)
  29. end
  30. end
  31. end
  32. end
  33. r.select(2)
  34. while true do
  35. e = r.back()
  36. if e == true then
  37. place()
  38. else
  39. r.turnLeft()
  40. end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement