A real time clock, that can be displayed on a 7 segment Redstone Lamp Display, using the Mods MoreRed and ComputerCraft.
In the ComputerCraft Command Line just type:
pastebin get https://pastebin.com/rCG5zpVx startup
And then run it with:
startup
Now it will always start automatically (e.g. after Server Restart or if you restart the Computer).
If you just want to use the code to build an easy working real time clock, you have to setup the cables like mine (you can also setup it like you want, but then you have to adjust the code.)
My setup:
(White, Orange, Purple, Yellow, Blue, Magenta, Grey)
These are cables from MoreRed (I played on ATM 9). You have to connect the bundled cables with the Computer:
You have to be sure that the bundled cables from right, left, top and back aren´t connected.
For each digit you have to do the same color setup. Then you have to connect each cable with the segment that matches the color of the cable.
The Right bundled cable leads to the hour (tens place) The Back bundled cable leads to the hour (units place) The Top bundled cable leads to the minute (tens place) The Left bundled cable leads to the minute (units place)
At the end it can look like this:
You can definetely do a better job in cable management, but it works.
And then you have your 7 segment clock in real time!




