daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Jul 23rd, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
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