Jump to content




If machine has work


  • You cannot reply to this topic
3 replies to this topic

#1 makeme

  • Members
  • 60 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 by makeme, 23 January 2015 - 07:13 PM.


#2 Doyle3694

  • Members
  • 815 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 by Doyle3694, 23 January 2015 - 11:11 PM.


#3 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 24 January 2015 - 12:06 AM

View Postmakeme, 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 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users