Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t=peripheral.wrap("right")
- local slot=0
- local time=0
- function sortItems()
- for count=1,5 do
- turtle.select(count)
- while turtle.getItemCount(count)~=0 do
- if slot==0 then
- turtle.transferTo(16,1)
- slot=slot+1
- elseif slot==1 then
- turtle.transferTo(15,1)
- slot=slot+1
- elseif slot==2 then
- turtle.transferTo(14,1)
- slot=slot+1
- elseif slot==3 then
- turtle.transferTo(13,1)
- slot=slot+1
- elseif slot==4 then
- turtle.transferTo(12,1)
- slot=0
- end
- time=time+1
- end
- count=count+1
- end
- end
- function dropItems()
- for c=0,4 do
- turtle.select(12+c)
- t.drop(1+c)
- c=c+1
- end
- end
- function suckItems()
- sleep(1260)
- turtle.select(6)
- t.suckSneaky(0)
- end
- sortItems()
- dropItems()
- for timer=0,time do
- suckItems()
- timer=timer+1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement