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

[QUESTION] Monitor Text in Sync with Door

Started by nikkolaus, 18 December 2012 - 10:08 AM
nikkolaus #1
Posted 18 December 2012 - 11:08 AM
I have a Facility that has a decontamination chamber … and i would like the Text on the Monitor to BEGIN when somebody steps through the door … so is there a way i can make the computer TURN ON when a redstone signal is sent to it , or something similar ?
Lyqyd #2
Posted 18 December 2012 - 11:14 AM
You can have your program run but wait for a specific redstone input. Place this at the beginning:


repeat until os.pullEvent("redstone") and rs.getInput("back")

Change "back" to whichever side your program should look for input on. Then run your program and it will start waiting for that specific input signal.
ChunLing #3
Posted 18 December 2012 - 09:26 PM
Why not "repeat os.pullEvent("redstone") until rs.getInput("back")"?