Advertisement
Melodicolt

Untitled

Aug 2nd, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function checkInventory()
  2. local fullInvSlots = 0
  3. for i = 1, 16 do
  4. if turtle.getItemCount(i) > 0 then
  5. fullInvSlots = fullInvSlots + 1
  6. end
  7. end
  8. if fullInvSlots == 16 then
  9. print("My inventory is full, master...")
  10. end
  11. end
  12.  
  13. checkInventory()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement