Wenades

Mine^2

Jul 20th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1.  
  2. term.clear()
  3. term.setCursorPos(1,1)
  4.  
  5. write("Distance: ")
  6. input = read()
  7. distance = tonumber(input)
  8. i = 0
  9. it = 0
  10.  
  11. while i < 4 do
  12.     while it < distance do
  13.         turtle.dig()
  14.         turtle.forward()
  15.         turtle.digUp()
  16.         it = it + 1
  17.     end
  18.     it = it - 4
  19.     i = i + 1
  20.     turtle.turnLeft()
  21. end
Advertisement
Add Comment
Please, Sign In to add comment