This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
WhiteLion's profile picture

Suck Items from a chest?

Started by WhiteLion, 06 December 2019 - 11:44 AM
WhiteLion #1
Posted 06 December 2019 - 12:44 PM
Hi,
I want my turtle to suck items from a chest.
Is there a way to manage this ?
Thanx !
SquidDev #2
Posted 06 December 2019 - 02:54 PM
turtle.suck should do it.
WhiteLion #3
Posted 06 December 2019 - 09:14 PM
turtle.suck should do it.
Thx for your fast answer:
That does not work if my turtle has 1 item as spaceholder in each slot.
this is my turtle preset:

This my chet:

This is what I tried:

function suckAllItemsForV18()
u = 1
while u < 17 do
turtle.select(u)
t = 1
while t < 17 do
turtle.suck()
t = t + 1
end
u = u + 1
end
end
suckAllItemsForV18()

more readable:
Edited on 06 December 2019 - 08:44 PM
Lyqyd #4
Posted 15 December 2019 - 10:52 PM
Moved to Ask a Pro.