Advertisement
Guest User

trial

a guest
Oct 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local times =tonumber(io.read())
  2.  
  3. while times > 0 do
  4.   local depth = 0  
  5.   turtle.turnLeft()
  6.   turtle.forward()
  7.   turtle.turnRight()
  8.  
  9.   while depth > -50 do
  10.     turtle.digDown()
  11.     turtle.down()
  12.     depth = depth - 1
  13.   end
  14.  
  15.   while depth < 0 do
  16.     turtle.up()
  17.     depth = depth + 1
  18.   end
  19.   times = times - 1
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement