Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Bottom = Closed Sign
- Back = Lights
- --]]
- term.setCursorPos(1,1)
- term.clear()
- local Sign = false
- local Light = false
- local Input
- while true do
- term.setCursorPos(1, 1)
- term.clear()
- print("Please enter light on/off or sign on/off")
- Input = read()
- if Input == "sign on" then
- Sign = true
- end
- if Input == "sign off" and Sign == true then
- Sign = false
- end
- if Input == "light on" and Light == false then
- Light = true
- end
- if Input == "light off" and Light == true then
- Light = false
- end
- if Input == "exit" then
- break
- end
- if Sign == true then
- rs.setOutput("bottom", true)
- else
- rs.setOutput("bottom", false)
- end
- if Light == true then
- rs.setOutput("back", true)
- else
- rs.setOutput("back", false)
- end
- print("Working...")
- sleep(1.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement