Advertisement
Guest User

exc

a guest
Apr 4th, 2020
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. length=30
  2. width=40
  3. depth=15
  4.  
  5. function dig()
  6.   i=length
  7.   repeat
  8.     turtle.dig()
  9.     turtle.forward()
  10.     i=i-1
  11.     until i==0
  12.     end
  13.  
  14. function lback()
  15.   i=length
  16.   repeat
  17.     turtle.back()
  18.     i=i-1
  19.     until i==0
  20.   end
  21.  
  22. function digw()
  23. turtle.turnRight()
  24. turtle.dig()
  25. turtle.forward()
  26. turtle.turnLeft()
  27. end
  28.  
  29. function plane()
  30. dig()
  31. lback()
  32. w=width
  33. repeat
  34.   digw()
  35.   dig()
  36.   lback()
  37.   w=w-1
  38.   until w==1
  39. w=width
  40. repeat
  41.   turtle.turnLeft()
  42.   turtle.forward()
  43.   w=w-1
  44.   until w==1
  45. turtle.turnRight()
  46.   end
  47.  
  48.   plane()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement