Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Laser Mining Control V1.0
- --]]
- local status = 1
- local enter = ""
- while true do
- sleep(1)
- term.clear()
- term.setCursorPos(1, 1)
- if status == 1 then
- print("Lasers Currently Engaged")
- print("Press Enter to Turn Lasers OFF")
- local input = read("")
- if input == enter then
- status = 0
- rs.setOutput("bottom",true)
- end
- end
- if status == 0 then
- print("Lasers Currently Disengaged")
- print("Press Enter to Turn Lasers ON")
- local input = read("")
- if input == enter then
- status = 1
- rs.setOutput("bottom",false)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment