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

Turtles, move items on is own inventory?!

Started by camadas, 17 December 2015 - 11:22 PM
camadas #1
Posted 18 December 2015 - 12:22 AM
Hi guys after seeying the API of the turtles I could not find info about this.

It is possible to move an item that say its on slot 10 to slot 1 ?! And if they have the same ID just stack them ?!

Thanks in advance
Dragon53535 #2
Posted 18 December 2015 - 12:27 AM

turtle.select(1)
turtle.transferTo(2)
Moves the items from slot 1, to slot 2.

Won't transfer to slots filled with non-stackable items or different items from itself.
Edited on 17 December 2015 - 11:29 PM
camadas #3
Posted 18 December 2015 - 12:32 AM

turtle.select(1)
turtle.transferTo(2)
Moves the items from slot 1, to slot 2.

Won't transfer to slots filled with non-stackable items or different items from itself.

Thanks :D/>

Just trying to get all the coal into the same slot (at least a stack of it) for fuel, and only drop items from 2 to 16 into the chest
Lupus590 #4
Posted 18 December 2015 - 12:50 AM
and only drop items from 2 to 16 into the chest

turtle.drop can take a number for how many items to drop
Edited on 17 December 2015 - 11:51 PM
Dragon53535 #5
Posted 18 December 2015 - 02:21 AM
and only drop items from 2 to 16 into the chest

turtle.drop can take a number for how many items to drop

I think you misunderstand, he means slots 2-16