Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("Main Street Station Terminal")
- print("Type 'Destinations' for a list of routes, or")
- print("type 'go' to select your destination")
- input = read()
- if input == "destinations" or "Destinations" then
- print("Destinations:")
- print("1. Quarry Station")
- print("2. Creeper Canyon")
- print("3. Mining Post 0")
- event, key = os.pullEvent("key")
- start()
- end
- if input == "go" or "Go" then
- local event, key = os.pullEvent("key")
- if key == keys.one then
- print("Quarry Station selected")
- redstone.setBundledOutput("back", colors.white)
- end
- if key == keys.two then
- print("Creeper Canyon selected")
- redstone.setBundledOutput("back", colors.orange)
- end
- if key == keys.three then
- print("Mining Post 0 selected")
- redstone.setBundledOutput("back", colors.magenta)
- end
- else
- print("Invalid input")
- sleep(2)
- start()
- end
- else
- print("Invalid input")
- sleep(2)
- start()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement