Guest User

Untitled

a guest
Oct 7th, 2012
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. function selectNotEmptySlot()
  2.  for i=1, 9, 1 do
  3.   turtle.select(i)
  4.   if turtle.getItemCount(i)>0 then
  5.    i=10
  6.   end
  7.  end
  8. end
  9.  
  10. function placeDown()
  11.  selectNotEmptySlot()  
  12.  turtle.placeDown()
  13. end
  14.  
  15. for i=1, 8,1 do
  16.  for j=1, 2, 1 do
  17.   for k=1, 16, 1 do
  18.    placeDown()
  19.    turtle.forward()
  20.   end
  21.   turtle.turnRight()
  22.   turtle.forward()
  23.   turtle.turnRight()
  24.   for k=1, 16, 1 do
  25.    placeDown()
  26.    turtle.forward()
  27.   end
  28.   turtle.turnLeft()
  29.   turtle.forward()
  30.   turtle.turnLeft()
  31.  end
  32.  turtle.turnRight()
  33.  turtle.forward()
  34.  turtle.forward()
  35.  turtle.turnLeft()
  36. end
Advertisement
Add Comment
Please, Sign In to add comment