Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot = require("robot")
- local component = require("component")
- local sides = require("sides")
- loop = 1
- repeat
- if component.redstone.getInput(sides.right) < 1
- then
- robot.down()
- robot.down()
- robot.down()
- robot.down()
- robot.down()
- robot.suck(2)
- robot.turnAround()
- robot.select(2)
- robot.suck(1)
- robot.turnRight()
- robot.up()
- robot.up()
- robot.up()
- robot.up()
- robot.up()
- robot.forward()
- robot.turnRight()
- robot.forward()
- robot.turnLeft()
- robot.place()
- robot.up()
- robot.select(1)
- robot.place()
- robot.back()
- robot.drop(1)
- robot.turnRight()
- robot.back()
- robot.down()
- os.sleep(5)
- else
- print("sorry, but it looks like we already have too much machine wall!")
- os.sleep(5)
- end
- until loop >1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement