Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lib = {}
- lib.tick = 1
- function lib.move()
- while turtle.detect() do turtle.up() end
- while not(turtle.forward()) do sleep(lib.tick) end
- while not(turtle.detectDown()) do turtle.down() end
- local succ, meta = turtle.inspectDown()
- return meta.name
- end
- for i=1, 12 do
- print(lib.move())
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement