Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("top")
- while true do
- if not rs.getInput("right") then
- rs.setOutput("bottom")
- m.clear()
- m.setCursorPos(1,1)
- m.setTextColor(colors.lime)
- m.write("WE ARE ON FIRE!")
- end
- if rs.getInput("right") then
- m.clear()
- m.setCursorPos(1,1)
- m.setTextColor(colors.red)
- m.write("We're safe!!")
- sleep(0.8)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement