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

Clocks

Started by willhcraft, 16 February 2013 - 03:36 AM
willhcraft #1
Posted 16 February 2013 - 04:36 AM
How do you make the time command run on a monitor with out causing an error when you walk 50 or so blocks away?
Lyqyd #2
Posted 16 February 2013 - 04:46 AM
Split into new topic.

Please provide the code you are using and any error messages you are receiving.
AnDwHaT5 #3
Posted 16 February 2013 - 02:33 PM
hmm i had a hard time too but i got this it takes to files and is a bit glitchy lol

file name: t

shell.run("monitor", "side", "time")
os.reboot()

file name: startup

shell.run("time")


as i said its glitchy but it has a updated time and works fine

edit: file name is t not time that will screw up the whole thing. :P/>
soccer16x #4
Posted 17 February 2013 - 05:59 PM
Do you have optifine installed, because a known issue of optifine is that from far away it will make it appear glitchy. So this isnt a computercraft issue its a optifine/minecraft issue
AnDwHaT5 #5
Posted 18 February 2013 - 06:50 PM
Its on tekkit
Doyle3694 #6
Posted 19 February 2013 - 01:22 AM
hmm i had a hard time too but i got this it takes to files and is a bit glitchy lol

file name: t

shell.run("monitor", "side", "time")
os.reboot()

file name: startup

shell.run("time")


as i said its glitchy but it has a updated time and works fine

edit: file name is t not time that will screw up the whole thing. :P/>


mon = peripheral.wrap("right")
while true do
  mon.clear()
  mon.setCursorPos(1,1)
  mon.write(textutils.formatTime(os.time()))
  sleep(0.5)
end
AnDwHaT5 #7
Posted 20 February 2013 - 01:35 PM
Ahh that could work why didn't i think of that oops :P/>