Posted 19 October 2012 - 01:06 AM
I am using a computer to be able to turn on my forcefield and tesla coil killing field. Below is the programs i am using. What i need to do is have it send a pulse of redstone after it is turned off so it can flip the latch switch by the generators to the off posistion.
edit startup
print("type shield to power the shield or to power it off")
print("type tesla to turn on or off the tesla coils")
edit shield :
print("type on to power the shield") print("type off to power off shield")
text = read()
if text == "on" then redstone.setOutput("bottom", true) end
if text == "off" then redstone.setOutput("bottom", false) end
edit tesla :
print("type on to turn the tesla coils on") print("type off to turn the tesla coils off")
text = read()
if text == "on" then redstone.setOutput("top", true) end
if text == "off" then redstone.setOutput("top", false) end
edit startup
print("type shield to power the shield or to power it off")
print("type tesla to turn on or off the tesla coils")
edit shield :
print("type on to power the shield") print("type off to power off shield")
text = read()
if text == "on" then redstone.setOutput("bottom", true) end
if text == "off" then redstone.setOutput("bottom", false) end
edit tesla :
print("type on to turn the tesla coils on") print("type off to turn the tesla coils off")
text = read()
if text == "on" then redstone.setOutput("top", true) end
if text == "off" then redstone.setOutput("top", false) end