Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- BuildTunnel
- arg = {...}
- local robot = require("robot")
- require("undock")
- require("wallwork")
- --Start Queue
- for j = 1,arg[1],1
- do
- --Movement from Workspace to Center of Field
- for i = 1,9,1
- do
- robot.forward()
- end
- --Work
- --Place Compact Machine Wall
- robot.select(4)
- robot.place()
- --Move to Place Hopper
- robot.up()
- --Place Hopper
- robot.select(3)
- robot.place()
- --Place First Redstone--
- robot.select(2)
- robot.placeDown()
- --Face to Place Second Redstone
- robot.turnLeft()
- --Move to Place Second Redstone
- robot.forward()
- --Place Second Redstone
- robot.placeDown()
- --Face to Place Third Redstone
- robot.turnRight()
- --Move to Place Third Redstone
- robot.forward()
- --Place Third Redstone
- robot.placeDown()
- --Move to Place Fourth Redstone
- robot.forward()
- --Place Fourth Redstone
- robot.placeDown()
- --Face to Place Fifth Redstone
- robot.turnRight()
- --Move to Place Fifth Redstone
- robot.forward()
- --Place Fifth Redstone
- robot.placeDown()
- --Move to Place Sixth Redstone
- robot.forward()
- --Place Sixth Redstone
- robot.placeDown()
- --Face to Place Seventh Redstone
- robot.turnRight()
- --Move to Place Seventh Redstone
- robot.forward()
- --Place Seventh Redstone
- robot.placeDown()
- --Move to Place Eighth Redstone
- robot.forward()
- --Place Eighth Redstone
- robot.placeDown()
- --Face to Return to Job Origin
- robot.turnRight()
- --Move to Job Origin
- robot.forward()
- --Facing Workspace
- robot.turnLeft()
- --Move toward Workspace
- robot.down()
- for i = 1,8,1
- do
- robot.forward()
- end
- --Facing to Move to Button
- robot.turnRight()
- --Move to Press Button
- robot.forward()
- robot.up()
- --Facing to Press Button
- robot.turnRight()
- robot.turnRight()
- --Pressing Redstone Dispenser Button
- robot.use()
- --Move toward Workspace
- robot.down()
- robot.forward()
- --Facing Workspace
- robot.turnRight()
- --Move into Workspace
- robot.forward()
- robot.down()
- --Return Facing to Field
- for d = 1,9,1
- do
- robot.turnRight()
- robot.turnRight()
- end
- if j % 5 == 0 then
- require("wallworkreturn")
- require("restock")
- require("wallwork")
- end
- end
- require("wallworkreturn")
- require("restock")
- require("dock")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement