Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Video of it in action: https://www.youtube.com/watch?v=kTzkTcCTVZg&list=PL9XabkF_A5YhxWelwj2yzjcegL9E0WLw6
- p1, p2 = turtle.inspectDown()
- for k, v in pairs(p2) do
- print("k: "..k.." v: "..v)
- if k == "metadata" then
- if v == 7 then
- turtle.drop()
- end
- end
- end
- sleep(6)
- while true do
- p1, p2 = turtle.inspectDown()
- for k,v in pairs(p2) do
- if k == "metadata" then
- term.clear()
- term.setCursorPos(1,1)
- print(v)
- end
- if v == 0 then
- turtle.suck()
- end
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement