Advertisement
Jeyjey0

inventoryFull (computercraft)

Apr 19th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. os.loadAPI("mine")
  2. os.loadAPI("torch")
  3. os.loadAPI("bridge")
  4.  
  5.  
  6.  
  7. function full()
  8. diffi = 0
  9. count = 0
  10. for i=1,16 do
  11. turtle.select(i)
  12. count = count+turtle.getItemCount()
  13. if count > 0 then
  14. diffi = diffi + 1
  15. if diffi > 12 then
  16. return true
  17. else
  18. return false
  19. end
  20. end
  21. if count > 500 then
  22. return true
  23. else
  24. return false
  25. end
  26. end
  27. return false
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement