Advertisement
Gokborg

WoodChopper

Apr 6th, 2020
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. turtle.dig()
  2. turtle.forward()
  3. turtle.dig()
  4. turtle.digUp()
  5. y = 1
  6. while true do
  7.     turtle.up()
  8.     turtle.dig()
  9.     local success, block = turtle.inspectUp()
  10.     if success == true then
  11.         if block.name ~= "minecraft:spruce_log" then
  12.             break
  13.         end
  14.     end
  15.     turtle.digUp()
  16.     y = y + 1
  17. end
  18.  
  19. turtle.turnLeft()
  20. turtle.forward()
  21. turtle.turnRight()
  22.  
  23. for i = 1, y do
  24.     turtle.digDown()
  25.     turtle.down()
  26.     turtle.dig()
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement