SHOW:
|
|
- or go back to the newest paste.
| 1 | local oxymon = peripheral.wrap("back")
| |
| 2 | ||
| 3 | - | if rs.get |
| 3 | + | |
| 4 | - | oxymon.setBackgroundColor(colors.lightBlue) |
| 4 | + | if rs.getInput("left") then
|
| 5 | - | oxymon.clear() |
| 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 |