Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pumping = false;
- local option = 1;
- while true do
- term.clear()
- term.setCursorPos(1,1)
- if pumping then
- print("Pumps are currently on.")
- else
- print("Pumps are currently off.")
- end
- rs.setOutput("bottom", pumping)
- if option == 1 then
- print("[On]Off")
- else
- print(" On[Off]")
- end
- local event, key = os.pullEventRaw("key")
- if key == 203 then
- option = 1
- elseif key == 205 then
- option = 2
- elseif key == 28 then
- if option == 1 then pumping = true else pumping = false end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment