Jump to content




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


4 replies to this topic

#1 Popeye

  • Members
  • 46 posts

Posted 17 April 2013 - 04: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?

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 17 April 2013 - 04:17 AM

turtle.drop will place in inventories before dropping it.
there is also dropUp and dropDown...

#3 Popeye

  • Members
  • 46 posts

Posted 17 April 2013 - 04: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.

#4 SadKingBilly

  • Members
  • 160 posts

Posted 17 April 2013 - 05:33 AM

Well, you would have to add turtle.select(inventory) before doing the drop, but yes, that should work.

#5 HurricaneCoder

  • Members
  • 52 posts

Posted 18 April 2013 - 04: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






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users