Sir_Popsilots

lambearjeck

Dec 23rd, 2021 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local checkblock , checked = turtle.inspect()
  2.  
  3. if (checkblock) and (string.match(checked.name,"log")) then
  4.     turtle.dig()
  5.     turtle.forward()
  6.     while turtle.detectUp() do
  7.         turtle.digUp()
  8.         turtle.up()
  9.     end
  10.     while turtle.detectDown() == false do
  11.         turtle.down()
  12.     end
  13. end
Add Comment
Please, Sign In to add comment