Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- function close()
- redstone.setOutput("right",false)
- redstone.setOutput("top",false)
- redstone.setOutput("back",false)
- end
- term.clear()
- term.setCursorPos(1,1)
- print("== Fuel Delivery System ==")
- print("Type a specified number to select fuel type")
- print("(1) - Gaseous Fuel")
- print("(2) - Dense Fuel")
- print("(3) - Light Fuel")
- print("(off) - Close all valves")
- print("")
- option = read()
- if option == "1" then
- close()
- redstone.setOutput("right",true)
- texutils.slowPrint("Selected (1), Gaseous Fuel")
- sleep(2)
- elseif option == "2" then
- close()
- redstone.setOutput("top",true)
- texutils.slowPrint("Selected (2), Dense Fuel")
- sleep(2)
- elseif option == "3" then
- close()
- redstone.setOutput("back",true)
- texutils.slowPrint("Selected (3), Light Fuel")
- sleep(2)
- elseif option == "off" then
- close()
- texutils.slowPrint("Selected (off), closed all valves")
- sleep(2)
- else
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement