Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- success, block = turtle.inspect()
- if block.name == "minecraft:log" then
- turtle.dig()
- turtle.forward()
- counter = 0
- while true do
- success, block = turtle.inspectUp()
- if block.name == "minecraft:log" then
- turtle.digUp()
- turtle.up()
- counter = counter + 1
- else
- while counter ~= 0 do
- turtle.down()
- counter = counter - 1
- end
- turtle.turnRight()
- tuerlt.turnRight()
- turtle.drop()
- return
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement