tom5454 / Toms-Storage

Simple vanilla style storage mod for Minecraft
https://www.curseforge.com/minecraft/mc-mods/toms-storage
MIT License
107 stars 33 forks source link

ComputerCraft Compatibility? #134

Open ghost opened 2 years ago

ghost commented 2 years ago

Firstly, I want to say I've been loving this mod recently! I like that I can easily work with large amounts of items without them all being magically compacted into a single block. It feels so much more natural to have to actually build a warehouse to store everything.

I love integrating ComputerCraft into my builds (I'm using CC: Tweaked on 1.18.2) and I've noticed that it doesn't seem there's a way for my computers to get information about Inventory Connectors or the whole inventory network at large.

It would be awesome if there was a block that could be connected to the network that would give integration with ComputerCraft to access things like a table of the items contained within the network, number of free slots available, etc..

Barring direct integration with ComputerCraft, even just a block with a TileEntity that stores the contents of the inventories in its NBT would allow players to access its info using something like the Block Reader from Advanced Peripherals.

This would allow you to do things like giving yourself an alert when your storage starts to get full, displaying inventory levels on monitors or directly to the GUI (with Advanced Peripherals AR Glasses), monitoring the flow of items in and out of your storage, or even dynamically adding more chests to a storage bank with turtles - the sky's the limit!

Is this something you'd consider adding to the mod? If you don't have the time or desire to work on this but wouldn't mind adding it, let me know and I can work on submitting a PR or even make an addon if there's an API or other way to extend the mod.

Regardless, thanks for the work you've already done. Love the mod!

P.S.: for anyone else looking to use the mod with CC, you can at least use Level Emitters to get amounts of a specific item, but you have to make one for each breakpoint you want for each item, and it can't help you get a general idea of how full your storage is if you're storing more than one or two items.

lexi-the-cute commented 2 months ago

+1

i'd like to be able to read from connectors and push/pull items through the connector

Zelaux commented 1 month ago

+1

AndrewGraber commented 3 weeks ago

+1

Honestly just assumed the Inventory connector or interface would work with the inventory api when I saw Tom also has a peripherals mod

IAteMinecraft commented 1 week ago

+1

I wish it had integration so that I could make it that some storages can only have items taken out of and not inserted into