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

Reading number of items from deep storage unit

Started by Arimus, 29 March 2014 - 11:11 PM
Arimus #1
Posted 30 March 2014 - 12:11 AM
Hi everyone,

I have a tree farm setup and all collected items are sent to Deep Storage Units. This is great and everything but I would really like to show how many of each item is currently being stored. Is there a way to read which item and number of that item from a deep storage unit and display it on a computer monitor? If it is possible, how would I go about achieving this?

Many thanks.
Edited on 29 March 2014 - 11:12 PM
RoD #2
Posted 30 March 2014 - 02:25 AM
You can see how many items are in a slot by using the code:

print(turtle.getItemCount(1))
Keep in mind that 1 is the slot you want to check for items.
Hope its usefull.
CometWolf #3
Posted 30 March 2014 - 02:44 AM
That's for checking the slots of a turtle, it has nothing to do with deep storage units…
openP can probably help you out here, provided you have it installed. Try placing the storage unit next to the computer, then type "openp/docs sideOfTheUnit" and see what it prints out.
Edited by