Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Welcome to test
- --local vars
- local side = "left"--CHANGE THIS TO MONITOR SIDE
- intro()
- --FUNCTIONS
- --Intro and program
- function intro()
- term.clear()
- term.setCursorPos(1,1)
- term.write("Welcome to Status Message")
- askc()
- sleep(1)
- askq()
- sleep(1)
- status()
- end
- --Cart Status
- function askc()
- term.clear()
- term.setCursorPos(1,1)_
- term.write("Is the cart running?")
- cart = read()
- if cart == "yes" then
- local scart = "Cart: Mining"
- else
- local scart = "Cart: OFF"
- end
- end
- --Quarry Status
- function askq()
- term.clear()
- term.setCursorPos(1,1)
- term.write("Is the Quarry on?")
- quarry = read()
- if quarry == "yes" then
- local squarry = "Quarry: ON"
- else
- local squarry = "Quary: OFF"
- end
- end
- --Status Begin
- function status()
- mon = peripheral.wrap(side)
- mon.clear()
- mon.setTextSize(2)
- mon.setCursorPos(1,1)
- mon.write(scart)
- mon.write(squarry)
- mon.write(sneed)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement