Advertisement
phredeye

Untitled

Aug 31st, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local height = 5
  2. local width = 5
  3.  
  4. function BuildUp(height)
  5.     for i=1,height do
  6.         turtle.place()
  7.         turtle.up()
  8.     end
  9. end
  10.  
  11. function BuildDown(height)
  12.     for i=height,1,-1 do
  13.         turtle.place()
  14.         turtle.down()
  15.     end
  16. end
  17.  
  18. function MoveRight()
  19.     turtle.turnRight()
  20.     turtle.forward()
  21.     turtle.turnLeft()
  22.     turtle.down()
  23. end
  24.  
  25. for currWidth=1,width+2,2 do
  26.     BuildUp(height)
  27.     MoveRight()
  28.     BuildDown(height)
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement