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

Chest monitor

Started by HyperGamer925, 03 April 2015 - 05:12 PM
HyperGamer925 #1
Posted 03 April 2015 - 07:12 PM
I want to make something that will list the items in a specific chest, can anyone help me do that?
KingofGamesYami #2
Posted 03 April 2015 - 08:43 PM
Step 1: Get OpenPeripherals
Step 2: Place chest to the right of a computer
Step 3:

openp/docs right
Step 4: Varies depending on your OpenPeripherals version.
HyperGamer925 #3
Posted 03 April 2015 - 09:06 PM
I tried to print getAllStacks() in a program and it gave me a table
artman41 #4
Posted 03 April 2015 - 10:33 PM
Step 1: Get OpenPeripherals
Step 2: Place chest to the right of a computer
Step 3:

openp/docs right
Step 4: Varies depending on your OpenPeripherals version.

How would you go about saving this to a file? The function always returns true so it always saves True to a file :/
Lupus590 #5
Posted 03 April 2015 - 10:43 PM
look up how to use the file system API
Edited on 03 April 2015 - 08:44 PM
Bomb Bloke #6
Posted 03 April 2015 - 10:56 PM
How would you go about saving this to a file? The function always returns true so it always saves True to a file :/

Sounds like you might want to try some different functions?