Advertisement
Guest User

robotDig.lua

a guest
Apr 20th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. -- Robot program by Alexey Varenevich for OpenComputers (MC)
  2. r = require("robot")
  3. while true do
  4. r.forward()
  5. if r.detect() then
  6. r.swing()
  7. r.suck()
  8. end
  9. if not r.detectDown() then
  10. r.placeDown()
  11. end
  12. if r.detectUp() then
  13. r.swingUp()
  14. r.suckUp()
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement