Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkInventory()
- local emptyInvSlots = 0
- for i = 1, 16 do
- if turtle.getItemCount(i) == 0 then
- emptyInvSlots = emptyInvSlots + 1
- end
- end
- if emptyInvSlots == 0 then
- print("My inventory is full, master...")
- else
- print("Still ", emptyInvSlots, " empty inventory slots remaining...")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment