ComputerCraft Forums

ComputerCraft => Ask a Pro => Topic started by: October on Sep 13, 2022, 08:48 PM

Title: Getting data from modded blocks?
Post by: October on Sep 13, 2022, 08:48 PM
Can a computer or a turtle read data from a block? I would like to monitor the temperature of a reactor from "HBM's Mod".

It sounds far fetched without installing any other mods, but I'm just wondering.
Title: Getting data from modded blocks?
Post by: 6_4 on Sep 13, 2022, 09:10 PM
"HBM's Mod" has OpenComputers integration. If you place an OpenComputers relay directly adjacent to a ComputerCraft computer, and then connect the relay to the HBM's Mod block with OC cables and an OC adapter, you should be able to access the HBM's Mod block from the ComputerCraft computer as a peripheral.
If you don't have OpenComputers, you might want to try to find a redstone interface to output redstone if the temperature goes above a certain point. Unfortunately, it seems like HBM's Mod doesn't have any ComputerCraft integration; many other mods do, and in that case, you would be able to directly place the peripheral next to the computer.
If you are unsure of what a peripheral is, see this guide (https://tweaked.cc/module/peripheral.html).