Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local robot = require("robot")
  2. local component = require("component")
  3.  
  4. function restack()
  5. for i=1,16 do
  6. if robot.count(i) > 0 then
  7. robot.select(i)
  8. component.inventory_controller.equip()
  9. break
  10. end
  11. end
  12. end
  13.  
  14. for n=0,22 do
  15. for i=0,3 do
  16. for j=0, 52-n do
  17. robot.useUp()
  18. robot.forward()
  19. end
  20. restack()
  21. robot.turnRight()
  22. end
  23. robot.forward()
  24. robot.turnLeft()
  25. robot.back()
  26. robot.turnRight()
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement