Advertisement
gunny576

Wall Build

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