Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fuelStatus = "Off"
- dynamoStatus = "Off"
- redstone.setOutput("back",false)
- redstone.setOutput("top",false)
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("== Compression Dynamo System ==")
- print("Commands listed below will toggle systems")
- print("(1) - Fuel Delivery - " .. fuelStatus)
- print("(2) - Dynamo Status - " .. dynamoStatus)
- print("")
- option = read()
- if option == "1" then
- if fuelStatus == "Off" then
- redstone.setOutput("back",true)
- fuelStatus = "On"
- texutils.slowPrint("Enabled fuel delivery system")
- sleep(2)
- else
- redstone.setOutput("back",false)
- fuelStatus = "Off"
- textutils.slowPrint("Disabled fuel delivery system")
- sleep(2)
- end
- elseif option == "2" then
- if dynamoStatus == "Off" then
- redstone.setOutput("top",true)
- dynamoStatus = "On"
- textutils.slowPrint("Enabled all dynamos")
- sleep(2)
- else
- redstone.setOutput("top",false)
- dynamoStatus = "Off"
- textutils.slowPrint("Enabled all dynamos")
- sleep(2)
- end
- else
- textutils.slowPrint("Unknown command")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement