Advertisement
darthgustav

largekube.lua

Feb 12th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. -- LargeKube
  2. arg = {...}
  3.  
  4. local robot = require("robot")
  5.  
  6. require("undock")
  7.  
  8. require("machinework")
  9.  
  10. for j = 1,arg[1],1
  11. do
  12. require("pentacube")
  13.  
  14. require("fivekubereturn")
  15.  
  16. --Shoot Pearl
  17. robot.use()
  18.  
  19. --Move Down from Button
  20. for i = 1,2,1
  21.  
  22. do
  23. robot.down()
  24. end
  25.  
  26. --Move Toward Work Area
  27. robot.forward()
  28.  
  29. --Face Work Area
  30. robot.turnRight()
  31.  
  32. --Enter Work Area
  33. robot.forward()
  34.  
  35. --Face Field Area
  36. for i = 1,66,1
  37.  
  38. do
  39. robot.turnRight()
  40. end
  41.  
  42. if j % 2 == 0 then
  43. require("machineworkreturn")
  44. require("restock")
  45. require("machinework")
  46.  
  47. end
  48. end
  49.  
  50. require("machineworkreturn")
  51. require("restock")
  52. require("dock")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement