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