Advertisement
100Toby1

Untitled

Mar 22nd, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. function getItemSlots()
  2. local slots = 16
  3. for i = 0, 15 do
  4. if turtle.getItemCount(0) > 0 then
  5. slots = slots - 1
  6. end
  7. end
  8. return slots
  9. end
  10.  
  11. print(getItemSlots())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement