How do I make a working clock that displays AM and PM time? I made one that displays one time but does not auto-update. So, how would I make an auto-updating, or looping clock?
Thanks!
Thanks!
How do I make a working clock that displays AM and PM time? I made one that displays one time but does not auto-update. So, how would I make an auto-updating, or looping clock?
Thanks!
What do you mean with this? One block a RP2 sequencer synced to worldtime (IIRC you'll need to set it to 5 minutes), the other a lamp which is lit on PM and off on AM?I'm on Yogcraft, if that helps. I just want to make a simple AM/PM 1 X 2 clock that displays the time in the Minecraft world.
What do you mean with this? One block a RP2 sequencer synced to worldtime (IIRC you'll need to set it to 5 minutes), the other a lamp which is lit on PM and off on AM?
So you want a computer connected to a monitor, which displays the time? Why didn't you say so from the beginning?All I want to do is make a monitor that says "The time is" then displays the current minecraft world time in AM and PM.
What the hell do you think I've been doing? Your link doesn't help, by the way. I know how to make a clock, but I want a LOOPING clock. You know, one that tells the current time.
While true do
--insert code from link here
end
You do know that, as far as I know, it isn't possible. Even if you made a clock that kept Minecraft time, as soon as you slept in a bed it would mess it up.
Minecraft doesn't keep track of time, just that, after X mins (I forget how long a day is) it turns into night, then after Y mins it turns into day. There is no clock in Minecraft that says it's 7 pm, therefore go to night.
So, as long as you never sleep you should be able to make one, which wouldn't be hard.
I suspect, in Minecraft 1.5.1 it could be possible, but only because of different redstone signal strengths, meaning you can hook up a daylight sensor to a computer (which I am assuming will have the functionality to detect differing redstone strengths), at least then you could make it auto set the time when the redstone signal changes strength.
Also, that link is helpful. Using just that one page (and one other as I forgot the command to clear the screen) I now have a computer which shows a time and refreshes every second. Ontop of that, it;s really simple and uses only 7 lines. It could be possible to make it shorter, but I just wanted something that worked. Again, it's not accurate to Minecraft time, but then again, it never could be.
Code:While true do --insert code from link here end
i = 1
while i == 1 do
term.clear()
term.setCursorPos(1,1)
print(textutils.formatTime(os.time(), boolean))
sleep(1)
end