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

Item transfering and listing

Started by PatrikF1, 08 February 2016 - 05:30 PM
PatrikF1 #1
Posted 08 February 2016 - 06:30 PM
Is there a way to give an output and transfer items from one chest to another and it says like
"Added [Amount] [Name]"
for example
"Added 16 Diamonds"
and it post one per line. Is it easy to do?
Im not that experienced in computercraft. Was a long time since i played with computercraft last time
Dragon53535 #2
Posted 08 February 2016 - 06:36 PM
Like with most things programming related, there's many ways to do it. Given which way you want to set it up, do you want to use a turtle or OpenPeripherals. (Although I don't know if OpenP allows for chest item transferring to other chests, someone else might like to confirm.)
HPWebcamAble #3
Posted 09 February 2016 - 01:09 AM
If you only have ComputerCraft, this has to be done with a turtle, as other computers cannot interface with chests.
If you've got OpenPeripherals, any type of (block) computer can do it, since OP allows you to wrap chests as peripherals.

Let us know if you have OpenPeripherals or not, and we'll point you in the right direction.

(Although I don't know if OpenP allows for chest item transferring to other chests, someone else might like to confirm.)
You can, items are transferred relative to the chest, not the computer. So when you push an item up, it goes into the block above the chest, for example.
Edited on 09 February 2016 - 12:10 AM
Dragon53535 #4
Posted 09 February 2016 - 03:03 AM
You can, items are transferred relative to the chest, not the computer. So when you push an item up, it goes into the block above the chest, for example.
Knew that, just wasn't sure how exactly that worked.