Advertisement
DemidShumakher

Untitled

Apr 30th, 2020
473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local t,name = turtle.inspectDown()
  2. while name.name  ~= 'minecraft:wool' do
  3.     if turtle.detect() then
  4.         turtle.turnRight()
  5.     else
  6.         turtle.forward()
  7.         turtle.turnLeft()
  8.         if turtle.detect() then
  9.             turtle.turnRight()
  10.         else
  11.             turtle.forward()
  12.         end
  13.     end
  14.     t,name = turtle.inspectDown()
  15.     print(name.name)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement