Glitchies

spiral1

Mar 1st, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local tArgs = {...}
  2. local x=1
  3. local y=1
  4. local z=1
  5.  
  6. local diam = tonumber(tArgs[1])*2
  7.  
  8. function Place()
  9.   while x>0 do
  10.     turtle.select(1)
  11.     turtle.placeDown()
  12.     turtle.forward()
  13.     x=x-1
  14.   end
  15.   x=z+1
  16.   turtle.turnLeft()
  17.   while y>0 do
  18.     turtle.select(1)
  19.     turtle.placeDown()
  20.     turtle.forward()
  21.     y=y-1
  22.   end
  23.   y=z+1
  24.   z=z+1
  25.   turtle.turnLeft()
  26. end    
  27.  
  28. for i = 1, diam do
  29.   Place()
  30. end
Advertisement
Add Comment
Please, Sign In to add comment