Edited by makeme, 23 January 2015 - 07:13 PM.
If machine has work
Started by makeme, Jan 23 2015 07:12 PM
3 replies to this topic
#1
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?
#2
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 by Doyle3694, 23 January 2015 - 11:11 PM.
#3
Posted 24 January 2015 - 12:06 AM
makeme, on 23 January 2015 - 07:12 PM, said:
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
#4
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.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











