Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Robot program by Alexey Varenevich for OpenComputers (MC)
- r = require("robot")
- while true do
- r.forward()
- if r.detect() then
- r.swing()
- r.suck()
- end
- if not r.detectDown() then
- r.placeDown()
- end
- if r.detectUp() then
- r.swingUp()
- r.suckUp()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement