Advertisement
darthgustav

maxkube.lua

Feb 12th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. -- MaxKube
  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("pentacubee")
  13.  
  14. robot.turnRight()
  15.  
  16. require("fivekubereturn")
  17.  
  18. --Shoot Pearl
  19. robot.use()
  20.  
  21. --Move Down from Button
  22. for i = 1,2,1
  23.  
  24. do
  25. robot.down()
  26. end
  27.  
  28. --Move Toward Work Area
  29. robot.forward()
  30.  
  31. --Face Work Area
  32. robot.turnRight()
  33.  
  34. --Enter Work Area
  35. robot.forward()
  36.  
  37. --Face Field Area
  38. for i = 1,66,1
  39.  
  40. do
  41. robot.turnRight()
  42. end
  43.  
  44. if j % 2 == 0 then
  45. require("machineworkreturn")
  46. require("restock")
  47. require("machinework")
  48.  
  49. end
  50. end
  51.  
  52. require("machineworkreturn")
  53. require("restock")
  54. require("dock")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement