Advertisement
Guest User

Machine Wall Robot with Redstone Control

a guest
Jul 21st, 2020
2,640
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. local robot = require("robot")
  2. local component = require("component")
  3. local sides = require("sides")
  4.  
  5. loop = 1
  6.  
  7. repeat
  8. if component.redstone.getInput(sides.right) < 1
  9. then
  10. robot.down()
  11. robot.down()
  12. robot.down()
  13. robot.down()
  14. robot.down()
  15. robot.suck(2)
  16. robot.turnAround()
  17. robot.select(2)
  18. robot.suck(1)
  19. robot.turnRight()
  20. robot.up()
  21. robot.up()
  22. robot.up()
  23. robot.up()
  24. robot.up()
  25. robot.forward()
  26. robot.turnRight()
  27. robot.forward()
  28. robot.turnLeft()
  29. robot.place()
  30. robot.up()
  31. robot.select(1)
  32. robot.place()
  33. robot.back()
  34. robot.drop(1)
  35. robot.turnRight()
  36. robot.back()
  37. robot.down()
  38. os.sleep(5)
  39. else
  40. print("sorry, but it looks like we already have too much machine wall!")
  41. os.sleep(5)
  42. end
  43. until loop >1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement