Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkItems()
- currentSlot = 2
- while turtle.getItemCount() < 64 and currentSlot < 17 do
- turtle.select(currentSlot)
- turtle.transferTo(1)
- turtle.select(1)
- currentSlot = currentSlot + 1
- end
- if currentSlot == 17 then
- chat.say("I ran out of items, please bring more")
- turtle.select(1)
- while turtle.getItemCount() == 0 do
- os.sleep(5)
- end
- checkItems()
- end
- end
- i = 1
- while turtle.back() do
- turtle.place()
- i = i + 1
- if i % 50 == 0 then
- checkItems()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement