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

Minecraft Time Clock

Started by arongy, 09 February 2012 - 11:30 PM
arongy #1
Posted 10 February 2012 - 12:30 AM
Here mi In-Game Minecraft Time Clock
I got it to fully work with the help of Advert & Brigander, Thank you guys.

Im currently uploading a video on youtube, so i'll put it here when its done ;)/>/>



Advert #2
Posted 10 February 2012 - 08:43 AM
Nice work, you should try fitting it all into one computer now ;)/>/>
Espen #3
Posted 10 February 2012 - 12:15 PM
Looks very nice and is set up very clean.

And I agree with Advert, you could make it even simpler.
You're basically using a 7-segment display, composed of the segments: top, middle, bottom, top-left, top-right, bottom-left and bottom-right.
Your horizontal segments are 3 blocks wide, the vertical ones 2 blocks.
If you connect all blocks of one segment into one color, then you only need 7 colors per digit.
Well, in your case you also seem to use some extra blocks: 4 corner blocks + 2 extra on sides of the middle.
Since you seem to toggle these only for specific numbers you essentially have a 7+ segment display.
But as long as you don't go over 16 segments per digit, it doesn't really matter.

Because if you stay at <= 16 colors/segments per digit, you can bundle all of them up into one side of a computer.
And since you have 4 digits, you'd only have to use 4 sides of one single computer to control all 4 digits.
You could even control the colon in the middle with the computer now.
To summarize:
- Group the blocks of a digit into 7-16 Segments.
- Connect every segment/blockgroup with one color (put red alloy wire on all of them and then lead the wire out to a colored cable)
- Connect all 7-16 segments/blockgroups into a bundled cable
- Repeat with the other 3 digits.
- Connect all 4 bundled cables with one side of a computer.

You'd have to rewrite your code of course, but give it a try, it will be worth it.

Cheers! ;)/>/>
arongy #4
Posted 10 February 2012 - 01:21 PM
Here how i programed my stuff, I made 10 script, one for each number.

Here exemple of number one:

function colory(sSide,sColour,value)
nColour = colours[sColour]
if value == true then
		rs.setBundledOutput( sSide, colors.combine( rs.getBundledOutput( sSide ), nColour ) )
	elseif value == false then
		rs.setBundledOutput( sSide, colors.subtract( rs.getBundledOutput( sSide ), nColour ) )
	end
end
--top left bottom back right
--column ONE
colory("top","white",true)
colory("top","orange",true)
colory("top","magenta",true)
colory("top","red",true)
colory("top","yellow",true)
colory("top","lime",true)
colory("top","pink",true)
--column TWO
colory("left","white",false)
colory("left","red",false)
colory("left","pink",false)
--column THREE
colory("bottom","white",false)
colory("bottom","red",false)
colory("bottom","pink",false)
--column FOUR
colory("back","white",false)
colory("back","red",false)
colory("back","pink",false)
--column FIVE
colory("right","white",false)
colory("right","orange",false)
colory("right","magenta",false)
colory("right","red",false)
colory("right","yellow",false)
colory("right","lime",false)
colory("right","pink",false)

But as you guys said, i will give it a try and thanks for the nice comment ;)/>/>
Brigander #5
Posted 10 February 2012 - 07:56 PM
Don't wanna intrude here, but I wanna show off my clock as well.



Advert #6
Posted 10 February 2012 - 07:59 PM
Now that we have two digital clocks here, how about a virtual analog clock?
arongy #7
Posted 10 February 2012 - 08:07 PM
How would you make that XD
Advert #8
Posted 10 February 2012 - 08:13 PM
How would you make that XD

Make a 32x32 pixel display, then draw the clock on it. Or something like that.

I'd post my clock, but it doesn't use CC. I could make it use CC, though…

Edit: I've decided to go ahead anyways:
*Large images in spoiler. (~3MB total)
Spoiler

arongy #9
Posted 10 February 2012 - 08:50 PM
Im not sure to understand your wiring, can you explain how your clock work? ;)/>/>
Advert #10
Posted 10 February 2012 - 08:55 PM
Im not sure to understand your wiring, can you explain how your clock work? ;)/>/>

It flashes 12:00.
Brigander #11
Posted 10 February 2012 - 09:00 PM
You're silly
arongy #12
Posted 10 February 2012 - 09:07 PM
oh thought you found a way to show time without programing lol ;)/>/>
Brigander #13
Posted 12 February 2012 - 12:22 AM
I streamlined my processes for my clock. It now only requires 1 terminal.
arongy #14
Posted 12 February 2012 - 02:00 AM
I just made a smaller version of my clock on my server.
usernametook #15
Posted 16 February 2012 - 08:26 AM
OOh a server i want for when i get home in a week or two bcz my internet here is poo :D/>/>
pm it to me ill join it and show off my horrible skills :D/>/>
Chub1337 #16
Posted 19 February 2012 - 08:53 PM
I thought I'd share my work, without RedPower 2, just CC and vanilla redstone

The display:

Spoiler

Overview of it all:
Spoiler

And the redstone from above:
Spoiler

Hope you guys liked it? :)/>/>

Chub1337

P.S. Currently also working on one with RedPower 2 :D/>/>
FuzzyPurp #17
Posted 20 February 2012 - 01:39 PM
I thought I'd share my work, without RedPower 2, just CC and vanilla redstone

You need vertical redstone mod ;)/>/>
DarkNinja2462 #18
Posted 23 February 2012 - 02:09 AM
I thought I'd share my work, without RedPower 2, just CC and vanilla redstone
meap
DarkNinja2462 #19
Posted 23 February 2012 - 02:11 AM
I just made a smaller version of my clock on my server.
Can u tell me the server I NEED ONE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
PLZ I AM SITTING HERE LOOKING FOR ONE
arongy #20
Posted 27 February 2012 - 05:34 PM
http://friendlyserver.proboards.com/