Advertisement
jimthenerd1999

Untitled

Jul 2nd, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for i = 1, 20 do
  2.   for j = 1, 20 do
  3.     if (turtle.getItemCount(turtle.getSelectedSlot()) == 0) then
  4.       turtle.select(turtle.getSelectedSlot() + 1)
  5.     end
  6.    
  7.     if (turtle.detect() == false) then
  8.       turtle.place()
  9.     end
  10.    
  11.     if (i % 2 == 1) then
  12.     turtle.up()
  13.     else
  14.     turtle.down()
  15.     end
  16.   end
  17.  
  18.     if (i % 2 == 1) then
  19.   turtle.turnLeft()
  20.   turtle.forward()
  21.   turtle.turnRight()
  22. else
  23.     turtle.turnRight()
  24.     turtle.forward()
  25.  
  26.     turtle.turnLeft()
  27. end
  28.  
  29.  
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement