Dojnaz

OxygenDetector

Apr 22nd, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local oxymon = peripheral.wrap("back")
  2.  
  3. while true do
  4.   if rs.getInput("left") then
  5.     oxymon.setCursorPos(3,7)
  6.     oxymon.setBackgroundColor(colors.blue)
  7.     oxymon.clear()
  8.     oxymon.write("Oxygen Present")
  9.   else
  10.     oxymon.setCursorPos(7,6)
  11.     oxymon.setBackgroundColor(colors.red)
  12.     oxymon.clear()
  13.     oxymon.write("Oxygen")
  14.     oxymon.setCursorPos(4,7)
  15.     oxymon.write("Decompression")
  16.   end
  17.   os.pullEvent("redstone")
  18. end
Add Comment
Please, Sign In to add comment