r/ComputerCraft • u/UnixTMDev • Jun 05 '24
Identify front chest that's also on network
My chest that's hooked up to a storage system I'm making is showing up as minecraft:chest_3 AND front. Is there some way I can identify them as being the same?
2
Upvotes
2
u/SeasonApprehensive86 Jun 05 '24
Maybe comparing the .list() of them could work. Its a pretty bad solution, but its the only one I can think of. Wouldn't work for empty inventories tho. Also this is pretty expensive, .list() takes a long time. Since tables are reference types you would need to loop throught and compare values. For conscistency you should just attach the chest with a modem not adjecent to the computer.
2
u/fatboychummy Jun 05 '24
Either ignore the
frontchest, or move it. You can't move items fromfrontposition to something on the network anyways, as items cannot move through computers1.1: In most cases, anyways. If both chests are directly attached to the computer, you can move items through it. However, you cannot move items from a directly-connected inventory to an inventory on a wired network.
2
u/Xella37 Jun 06 '24
Depending on what you need, it might help to use a barrel instead as it shows up differently from all chests :)