SHARE
TWEET

robotDig.lua

a guest Apr 20th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top