2 posts
Posted 25 June 2012 - 06:52 PM
As stated in my topic, is it possible to load/unload a specific slot in the turtles inventory? I can load/unload via buildcraft/red power but it always follows top left->bottom right ordering. Is it possible to target a specific inventory slot in any way?
(And I don't mean the drop command. I can already unload a turtle docking at a buildcraft or redpower station I have setup. My main problem is not being able to direct which slot items go into the turtles inventory when items are sent to it via tubes/etc)
8543 posts
Posted 25 June 2012 - 07:02 PM
Yep. Just load up the turtle with nine different items/blocks that you won't ever want to actually load into it, then have it drop the items out of the slots you want loaded. Drop the rest when finished.
65 posts
Location
The Internet
Posted 25 June 2012 - 10:27 PM
The wiki is not the best source since a lot of it isn't updated to the latest version, or doesn't even exist. but for the turtle question it should work fine. From what I understand, you're trying to change the active slot in the turtle so you can place a block type from a slot other than the first without needing them to be completely depleted.
To select a different slot, you would put
turtle.select( The slot number )
The slot numbers start at the top left with number 1 and go through to the bottom right at number 9.
For better reference:
2 posts
Posted 25 June 2012 - 10:53 PM
Yep. Just load up the turtle with nine different items/blocks that you won't ever want to actually load into it, then have it drop the items out of the slots you want loaded. Drop the rest when finished.
Not a bad idea, should work with what I already got going after some temporary chests/etc to juggle slots around. Thanks for the idea. While not a direct method like I would have wanted this makes it possible.
The wiki is not the best source since a lot of it isn't updated to the latest version, or doesn't even exist. but for the turtle question it should work fine. From what I understand, you're trying to change the active slot in the turtle so you can place a block type from a slot other than the first without needing them to be completely depleted.
To select a different slot, you would put
turtle.select( The slot number )
The slot numbers start at the top left with number 1 and go through to the bottom right at number 9.
Yea, I know all about the turtle.select() function. I am talking about sending a stack of blocks from a tube (either red power or build craft) and choosing which slot of the turtles inventory they arrive in.
351 posts
Posted 25 June 2012 - 11:55 PM
They will be placed inside in order, that's the best you can do. You could just toss in a couple non-stacking blocks, then the block you want, and then drop the buffer blocks, but that's about it.