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

Reading from energy pylons

Started by saltmydalt, 13 January 2017 - 01:17 AM
saltmydalt #1
Posted 13 January 2017 - 02:17 AM
Hello, new to computer craft and semi new to programming and have no idea how to read max energy current energy and percent and rf per tick from an energy pylon added by draconic evolution. I have the computer connected to the pylon and its called "draconic_rf_storage_3" but dont know where to start. An outline of what to do would be useful but I just want something like this https://youtu.be/NYuxSGPcilo
Thanks for the help.
KingofGamesYami #2
Posted 13 January 2017 - 03:25 AM
Welcome! Lucky for you, I've written a tutorial specifically about interfacing with peripherals. I do, however, assume you have a basic understanding of Lua and ComputerCraft in general.
TheRockettek #3
Posted 13 January 2017 - 06:56 AM
you can always use peripheral.getMethods(name or side) to output all functions you can use sith a certain block :)/>