Advertisement
Nonsanity

TTLib

Nov 3rd, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. function restock ()
  2. n = turtle.getSelectedSlot()
  3. if turtle.getItemSpace( n ) > 60 then
  4. n1 = n + 1
  5. turtle.select( n1 )
  6. turtle.placeUp()
  7. turtle.select( n )
  8. turtle.suckUp( turtle.getItemSpace( n ) )
  9. turtle.select( n1 )
  10. turtle.digUp()
  11. turtle.select( n )
  12. end
  13. end
  14.  
  15. function placeRow ( n )
  16. for a = 1,n do
  17. turtle.placeDown()
  18. restock()
  19. if a < n then turtle.forward() end
  20. end
  21. end
  22.  
  23. function nextRowLeft ()
  24. turtle.turnLeft()
  25. turtle.forward()
  26. turtle.turnLeft()
  27. end
  28.  
  29. function nextRowRight ()
  30. turtle.turnRight()
  31. turtle.forward()
  32. turtle.turnRight()
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement