Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cutUp()
- turtle.digUp()
- turtle.up()
- j = j + 1
- end
- --GLAVNI PROGRAM
- j=0
- if turtle.dig() then
- turtle.forward()
- while turtle.detectUp() do
- cutUp()
- end
- for i=1, j do
- turtle.down()
- end
- turtle.back()
- else
- print("Drvo nije pronadjeno")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement