Posted 30 April 2012 - 11:37 PM
I wish to create a program that emits a redstone signal for a certain amount of time, stops for a certain amount of time, and then repeats this pattern until I turn off the computer. This will be used to control a builcraft pump. I do not know what one would call this type of program in coding nomenclature, maybe a loop?
Here is what I have so far, thanks in advance for your help!
Here is what I have so far, thanks in advance for your help!
print("Turning on the pump.")
clear
rs.setOutput("right", true)
sleep(10)
rs.setOutput("right", false)
I thought using the sleep command would be a reasonable way to keep signal going until I want signal to cease. This instead yields an error about '=' being expected on line 3. That is the syntax for the sleep command i have seen in other's programs.