Advertisement
gunny576

Untitled

Jul 22nd, 2014
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. arg = {...}
  2. c = 1
  3. turtle.select(1)
  4.  
  5. function place ()
  6. turtle.placeDown()
  7. item()
  8. turtle.place()
  9. item()
  10. turtle.placeUp()
  11. item()
  12. turtle.back()
  13. end
  14.  
  15. function item ()
  16. if (turtle.getItemCount(c) == 0) then
  17. c = c +1
  18. turtle.select(c)
  19. end
  20. end
  21.  
  22. function row ()
  23. for i=1, arg[1], 1 do
  24. place()
  25. end
  26. turtle.place()
  27. item()
  28. turtle.turnRight()
  29. turtle.turnRight()
  30. end
  31.  
  32. turtle.turnRight()
  33. turtle.turnRight()
  34. row()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement