Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon1=peripheral.wrap("back")
- rednet.open("left")
- print(os.getComputerID())
- while true do
- id,message = rednet.receive()
- if message == "f_red" then
- mon1.setTextColor(colors.red)
- else
- if message == "f_green" then
- mon1.setTextColor(colors.lime)
- else
- if message == "f_blue" then
- mon1.setTextColor(colors.blue)
- else
- if message == "f_white" then
- mon1.setTextColor(colors.white)
- else
- if message == "b_red" then
- mon1.setBackgroundColor(colors.orange)
- else
- if message == "b_green" then
- mon1.setBackgroundColor(colors.green)
- else
- if message == "b_blue" then
- mon1.setBackgroundColor(colors.cyan)
- else
- if message == "b_black" then
- mon1.setBackgroundColor(colors.black)
- else
- mon1.write(message)
- cX,cY = mon1.getCursorPos()
- mon1.setCursorPos(1,cY+1)
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement