Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function selectSlot()
- slot = 0
- count = 0
- for i=1,16 do
- slot = slot + 1
- if slot == 17 then
- slot = 1
- end
- turtle.select(slot)
- count = turtle.getItemCount()
- if count > 0 then
- break
- end
- end
- end
- drop = 0
- function getItems()
- icount = 0
- turtle.select(1)
- for i=1,16 do
- drop = drop + 1
- if drop == 17 then
- drop = 1
- end
- turtle.select(drop)
- icount2 = turtle.getItemCount()
- icount = icount + icount2
- end
- return icount
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement