Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot = require("robot")
- -- Move into the cage
- robot.setLightColor(0xFF0000)
- for i = 1,2 do
- robot.forward()
- end
- for i = 1,4 do
- robot.down()
- end
- robot.turnAround()
- -- Place the blocks
- for i = 1,2 do
- robot.up()
- end
- -- Get outta there, quickly!
- for i = 1,2 do
- robot.up()
- end
- for i = 1,2 do
- robot.forward()
- end
- robot.turnAround()
- -- Done
- robot.setLightColor(0x00FF00)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement