Neopherus

Wall

Apr 25th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. length = tonumber(tArgs[1])
  2. height = tonumber(tArgs[2])
  3.  
  4. function checkInv()
  5.     if turtle.getItemCount(1) <1 then
  6.     turtle.select(16)
  7.     turtle.placeUp()
  8.     turtle.select(1)
  9.     turtle.suckUp()
  10.     turtle.select(16)
  11.     turtle.digUp()
  12.     turtle.select(1)
  13.     end
  14. end
  15.  
  16. function turnaround()
  17. turtle.turnRight()
  18. turtle.turnRight()
  19. end
  20.  
  21.  
  22. for h=1,height do
  23. turtle.up()
  24. checkInv()
  25. turnaround()
  26.     for l=1,length do
  27.     checkInv()
  28.     turtle.placeDown()
  29.     turtle.forward()
  30.     end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment