Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- BuildWall
- arg = {...}
- local robot = require("robot")
- require("undock")
- require("wallwork")
- 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 Iron
- robot.select(1)
- robot.place()
- --Move to facilitate Place Redstone
- robot.up()
- robot.up()
- robot.forward()
- --Place Redstone--
- robot.select(2)
- robot.placeDown()
- --Facing Workspace
- robot.turnRight()
- robot.turnRight()
- --Move toward Workspace
- robot.forward()
- robot.down()
- 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()
- 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
- robot.turnRight()
- robot.turnRight()
- if j % 20 == 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