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

How do I make a Turtle place Item's in Chest's

Started by Popeye, 17 April 2013 - 03:16 AM
Popeye #1
Posted 17 April 2013 - 05:16 AM
Hello Everyone,

For the next Version of my DDT (Diggy Diggy Turtle) I want to have it put the Item's from Slot 2 - 4
Into a Chest.

Anyone have any Help?
theoriginalbit #2
Posted 17 April 2013 - 05:17 AM
turtle.drop will place in inventories before dropping it.
there is also dropUp and dropDown…
Popeye #3
Posted 17 April 2013 - 05:25 AM
Would this work?


for inventory = 2, 4 do
    turtle.dropDown()
end

Also, if there is a Chest under the Turtle will the Turtle put the Items from Slot 2 - 4 into the Chest.
SadKingBilly #4
Posted 17 April 2013 - 06:33 AM
Well, you would have to add turtle.select(inventory) before doing the drop, but yes, that should work.
HurricaneCoder #5
Posted 18 April 2013 - 05:48 PM
for inventory = 2, 4 do
turtle.dropDown()
end
That will not work.. In order to select from slot 2 -4 you must do this


for inventory = 2, 4 do
    turtle.select(inventory)
    turtle.dropDown()
end