Advertisement
djPtica

sCut

Nov 14th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1.     function cutUp()
  2.        turtle.digUp()
  3.        turtle.up()
  4.        j = j + 1
  5.     end
  6.      
  7.     --GLAVNI PROGRAM
  8.      
  9.     j=0
  10.     if turtle.dig() then
  11.        turtle.forward()
  12.        while turtle.detectUp() do
  13.           cutUp()
  14.        end
  15.        for i=1, j do
  16.           turtle.down()
  17.        end
  18.        turtle.back()
  19.     else
  20.        print("Drvo nije pronadjeno")
  21.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement