This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
mainque's profile picture

a easy clock?

Started by mainque, 23 May 2012 - 09:08 PM
mainque #1
Posted 23 May 2012 - 11:08 PM
sorry for mi english :P/>/>
somebody can make a program that displays the time in a monitor?i dont want to make a bigass redpower structure when i have fucking monitors .________.


PD.:a facebook chat program?please?can be cool chat from minecraft :D/>/>
MysticT #2
Posted 24 May 2012 - 02:38 AM
Well, this is not a suggestion, so you shouldn't post it here, but…
For the clock:

local sSide = "left" -- change to the side the monitor is on
local nScale = 5 -- the text scale on the monitor. 1-5

local mon = peripheral.wrap(sSide)
if not mon then
  print("No monitor on "..sSide.." side.")
  return
end
mon.setTextScale(nScale)
term.redirect(mon)
while true do
  term.clear()
  term.setCursorPos(1, 1)
  print(textUtils.formatTime(os.time(), true))
  sleep(0.5)
end

There's some chat programs in the program library if that's what you want.
EmTeaKay #3
Posted 24 May 2012 - 03:33 AM
No MysticT, he wants to talk to people from Facebook in Minecraft. Sorry, there's no such thing.
MysticT #4
Posted 24 May 2012 - 03:53 PM
Yeah, I suppose that's what he wanted, but it would be too hard to do (if possible).
PixelToast #5
Posted 25 May 2012 - 02:44 AM
you might be able to pull it off with the http api but if you wanted to connect to facebook you would need to be able to handle javascript/php requests and https