Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Side = "back"
- local oldPull = os.pullEvent
- os.pullEvent = os.pullEventRaw
- while true do
- term.clear()
- term.setCursorPos(5, 5)
- term.setTextColor(colors.red)
- print(" Welcome at Your Home System! ")
- term.setTextColor(colors.orange)
- print(" For Help, enter 'help' ")
- print(" Please enter the Command.... ")
- input = read()
- if input == "help" then
- term.setCursorPos(1, 1)
- term.clear()
- sleep(0.5)
- term.setTextColor(colors.blue)
- print("ReCoKo's Home System help")
- print("")
- print("- Mainenergy on")
- print("- Mainenergy off")
- print("> Toggles the Main Energy")
- print("")
- print("- ME on")
- print("- ME off")
- print("> Toggles the ME")
- print("")
- print("This Closes after 5 Seconds!")
- sleep(5)
- else if input == "Mainenergy on" then
- term.setCursorPos(1, 1)
- term.clear()
- term.setTextColor(colors.orange)
- print("Turning on the Main Energy")
- sleep(2)
- redstone.setBundledOutput(Side, colors.combine(redstone.getBundledOutput(Side), colors.black))
- term.setTextColor(colors.green)
- print("Successfully turned on the Main Energy!")
- sleep(2)
- else if input == "Mainenergy off" then
- term.setCursorPos(1, 1)
- term.clear()
- term.setTextColor(colors.orange)
- print("Turning off the Main Energy")
- sleep(2)
- redstone.setBundledOutput(Side, colors.subtract(redstone.getBundledOutput(Side), colors.black))
- term.setTextColor(colors.green)
- print("Succesfully turned off the Main Energy!")
- sleep(2)
- else if input == "Exit" then
- term.clear()
- term.setCursorPos(0, 0)
- exit()
- end
- end
- end
- end
- end
- os.pullEvent = ooldPull
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement