Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = turtle
- result = {}
- sleeptime = 10
- function getItemFromFluid()
- for i=1,16 do
- t.select(i)
- t.suck()
- end
- end
- function checkItem(slot)
- item = t.getItemDetail(slot)
- t.select(slot)
- for i = 1,#result do
- if item.name == result[i] then
- t.drop()
- else
- t.dropDown()
- end
- end
- end
- function checkInventory()
- for i = 1,16 do
- if t.getItemCount(i) > 0 then
- checkItem(i)
- end
- end
- end
- function main()
- getItemFromFluid()
- checkInventory()
- sleep(sleeptime)
- end
- while true do
- main()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement