Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- clockSlave
- Written for dan200's ComputerCraft 1.41
- Written by MrBarry Sept. 2012
- Requires: clockWriter, numbers
- ]]--
- os.loadAPI("clockWriter")
- mon = peripheral.wrap("back")
- rednet.open("top")
- mon.setTextScale(3.5)
- tmX, tmY = term.getSize()
- tClockX = tmX - 5
- fnt = clockWriter.readFont(7, 4, 10, "numbers")
- ------------------
- while true do
- evt, id, msg = os.pullEvent("rednet_message")
- if msg:find("^!time%d.*") then
- clockWriter.printTime(msg:sub(6), fnt, mon)
- term.setCursorPos(tClockX,1)
- print(msg:sub(6))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement