58 posts
Posted 23 January 2015 - 07:12 PM
I want lights to turn on above my machines when they have work, how would I do this is there a function to show this for all / most machines?
Edited on 23 January 2015 - 06:13 PM
818 posts
Posted 23 January 2015 - 09:31 PM
What machines are this? For example pneumaticcraft's machines have functions associated with them. OpenPeripherals also allows functions for some tile entities like the vanilla chest.
Edited on 23 January 2015 - 10:11 PM
957 posts
Location
Web Development
Posted 24 January 2015 - 12:06 AM
is there a function to show this for all / most machines?
Yes there is, in the peripheral API
peripheral.getMethods(name)
It returns the methods of 'name' in a table
If you are having trouble, here's a program that does it for you:
http://pastebin.com/sKLqTGrM
7083 posts
Location
Tasmania (AU)
Posted 24 January 2015 - 12:50 AM
Just throwing it out there, but you can do this with Buildcraft gates. Heck, wouldn't surprise me if Thermal Expansion's servos can do it by now.