[Feature] Allow Computers to read block entity NBT values for data collection.
MrVintage710 opened this issue ยท 5 comments
Describe your feature idea
When computers use the peripheral api on an unsupported block entity, it instead return a table that contains get methods for getting each value in that nbt table. These functions would not allow you to edit the nbt data. That way you can still collect data from mods that might not be supported.
Describe alternatives you've considered if you've any
There could also be a different api that wraps this behavior, but I believe that peripheral api would make the most sense.
Additional context
I think this was a feature in one of the many peripheral mods back it the day, because I distinctly remember using it with redpower 2 to get the energy levels in batteries.
I will close this for now to reduce the issues. I will reopen it if you respond to my question.
Sorry for the late response. I guess I should clarify the mechanic: Allow computers to read NBT Data from and block entities. Just like how a player can use the /data command to get nbt data from a block, so to could the computer using the peripheral api. The battery was just an example. Using this you could get the contents of a book in an adjacent lectern or the pattern of an adjacent banner. It would make getting information easier, because if the data is saved in the nbt, then you have access to it.
Hope that make sense!