Jump to content




reactor safety prpduce

api help lua

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

#1 Britizz

  • Members
  • 6 posts

Posted 20 April 2018 - 10:12 AM

hello,
i will soon go in the moon (with galacticraft of course) and i make a program for safety produce (without interuption).
there is the specifications :

when all reactors (two reactors) are down, one reactor are activated
when one reactor are down the other are activated.

but i can do that beacause my skils on conditional statments are limited
can you give me an advice or a program (thank's you very much if someone do that) for competing my program and terminate him (i will not leave on the moon until the program is ready).

thank's you

#2 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 20 April 2018 - 02:49 PM

I'm not 100% sure what you want, but is it this logic you mean?
Psuedo-code
Do take note that this is for the most part only a psuedo-code and I haven't checked what methods actually are available for the reactors in galacticacraft nor tested the code.
But from what I understood you only want one reactor active at a time?

Edited by TheOddByte, 20 April 2018 - 02:50 PM.


#3 Britizz

  • Members
  • 6 posts

Posted 20 April 2018 - 05:15 PM

yes that's it

EDIT : THANK'S YOU SO MUCH it's works (with correct function)

Edited by Britizz, 20 April 2018 - 05:23 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users