Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local computer = require("computer")
- local robot = require("robot")
- local shell = require("shell")
- local sides = require("sides")
- function placeRail()
- robot.down()
- if robot.detectDown() then
- if robot.compareTo(robot.select() + 1) then
- robot.placeDown()
- else
- robot.select(robot.select() + 1)
- robot.placeDown()
- end
- while(true) do
- robot.swing()
- robot.forward()
- robot.swingUp()
- robot.swingDown()
- robot.turnRight()
- robot.swing()
- robot.forward()
- robot.swingUp()
- robot.swingDown()
- robot.swing()
- robot.forward()
- robot.swingUp()
- robot.swingDown()
- robot.turnLeft()
- robot.swing()
- robot.forward()
- robot.swingUp()
- robot.swingDown()
- robot.turnLeft()
- robot.swing()
- robot.forward()
- robot.swingUp()
- robot.swingDown()
- robot.swing()
- placeRail()
- robot.forward()
- robot.swingUp()
- robot.swingDown()
- robot.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement