Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. local lib = {}
  2. lib.tick = 1
  3.  
  4. function lib.move()
  5. while turtle.detect() do turtle.up() end
  6. while not(turtle.forward()) do sleep(lib.tick) end
  7. while not(turtle.detectDown()) do turtle.down() end
  8. local succ, meta = turtle.inspectDown()
  9. return meta.name
  10. end
  11.  
  12. for i=1, 12 do
  13. print(lib.move())
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement