2 posts
Posted 18 November 2013 - 04:26 PM
I want to create a program which will basically allow me to enter "start" and the redstone output will be set to true and the to have to type "stop" for the engines to stop. How would i do this with out restarting the computer?
7083 posts
Location
Tasmania (AU)
Posted 18 November 2013 - 05:20 PM
while true do
print("Start or Stop?")
myTask = read()
if myTask:lower() == "start" then redstone.setOutput("back", true) end
if myTask:lower() == "stop" then redstone.setOutput("back", false) end
print("")
end
2 posts
Posted 18 November 2013 - 05:44 PM
while true do
print("Start or Stop?")
myTask = read()
if myTask:lower() == "start" then redstone.setOutput("back", true) end
if myTask:lower() == "stop" then redstone.setOutput("back", false) end
print("")
end
Thanks so much!