Jump to content




Turtles, move items on is own inventory?!

turtle

4 replies to this topic

#1 camadas

  • Members
  • 16 posts

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

#2 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

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 by Dragon53535, 18 December 2015 - 12:29 AM.


#3 camadas

  • Members
  • 16 posts

Posted 18 December 2015 - 12:32 AM

View PostDragon53535, on 18 December 2015 - 12:27 AM, said:

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

#4 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

Posted 18 December 2015 - 12:50 AM

View Postcamadas, on 18 December 2015 - 12:32 AM, said:

and only drop items from 2 to 16 into the chest

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

Edited by Lupus590, 18 December 2015 - 12:51 AM.


#5 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 18 December 2015 - 02:21 AM

View PostLupus590, on 18 December 2015 - 12:50 AM, said:

View Postcamadas, on 18 December 2015 - 12:32 AM, said:

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users