it is a little complicated to hook up.
———————————————————————————|/
you need 8 computers plus one for the colon in the middle of HH : MM
its in a zip because there are 9 files and one folder (because i like to keep things neat and orderly)
if you look at any of the files with a one you will see the following:
--[[
(1)> ---- <(1)
2> | | <(3)
2> | | <(3)
(4)> ---- <(4)
5> | | <(6)
5> | | <(6)
7> ---- <7
sides:
left=1
right=3
back=4
front=6
]]
and any one with a 2 you will see this:
--[[
1> ---- <1
(2)> | | <3
(2)> | | <3
4> ---- <4
(5)> | | <6
(5)> | | <6
(7)> ---- <(7)
sides:
left=2
right=5
back=7
--]]
for those of you confused about what file does what:
H H : M M
h10 controls the ten hours part [H] h : m m
h01 controls the one hours part h [H] : m m
m10 controls the ten mins part h h :[M] m
m01 controls the one mins part h h : m [M]
*20 and *02 are the extended parts of *10 and *01
for example:
m20 extends m10
i think blinker is pretty strait forward
i hope you understand now if not ask what you don't know
Tips:
-Those will help you GREATLY to make your giant clock work so i suggest you study them closely!
-I would use this on a server. (much better than a golden clock)
-I also suggest using wireless redstone. (if available)
I'm a noob lua scripter and only in grade 9 so any way to make these less clutterfull will be very helpfull
screenshots are in the downloads section because im a noob and dont know how to put them
[here]
comment are welcome and thanks for checking this out (even if you didn't download)
if i forgot anything just ask and il respond to the best of my abilities.
(code is below for those who don't want malware but i strongly suggest downloading it as there are 9 different files)
Spoiler
blinker:
while true do
sleep(0.5)
redstone.setOutput("back", true)
sleep(0.5)
redstone.setOutput("back",false)
end
h01:--[[
(1)> ---- <(1)
2> | | <(3)
2> | | <(3)
(4)> ---- <(4)
5> | | <(6)
5> | | <(6)
7> ---- <7
sides:
left=1
right=3
back=4
front=6
redstone.setOutput("side", true)
times
--15:00 = 15.00
--15:15 = 15.25
--15:30 = 15.50
--15:45 = 15.75...
]]
while true do
sleep(0.001)
local nTime = os.time()
local nHour = math.floor(nTime)
local nMinute = math.floor((nTime - nHour)*60) --time = (string.format("%d %02d", nHour, nMinute))
print(""..nHour, ":"..nMinute)
local function reset()
redstone.setOutput("left",false)
redstone.setOutput("right",false)
redstone.setOutput("front",false)
redstone.setOutput("back",false)
end
if nHour >=19 then
nHour = nHour - 20
else
if nHour >=9 then
nHour = nHour - 10
end
end
if (nHour) - 0 == 0 then --0
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
end
if (nHour) - 1 == 0 then --1
reset()
redstone.setOutput("right",true)
redstone.setOutput("front",true)
end
if (nHour) - 2 == 0 then --2v
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nHour) - 3 == 0 then --3
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
redstone.setOutput("front",true)
end
if (nHour) - 4 == 0 then --4
reset()
redstone.setOutput("right",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
if (nHour) - 5 == 0 then --5
reset()
redstone.setOutput("left",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
if (nHour) - 6 == 0 then --6
reset()
redstone.setOutput("left",true)
redstone.setOutput("back",true)
redstone.setOutput("front",true)
redstone.setOutput("top",true)
end
if (nHour) - 7 == 0 then --7
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
end
if (nHour) - 8 == 0 then --8
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
if (nHour) - 9 == 0 then --9
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
end
h02:
--[[
1> ---- <1
(2)> | | <3
(2)> | | <3
4> ---- <4
(5)> | | <6
(5)> | | <6
(7)> ---- <(7)
sides:
left=2
right=5
back=7
--]]
while true do
sleep(0.001)
local nTime = os.time()
local nHour = math.floor(nTime)
local nMinute = math.floor((nTime - nHour)*60)
local function reset()
redstone.setOutput("left",false)
redstone.setOutput("right",false)
redstone.setOutput("front",false)
redstone.setOutput("back",false)
end
if nHour >=19 then
nHour = nHour - 20
else
if nHour >=9 then
nHour = nHour - 10
end
end
if (nHour) - 0 == 0 then --0
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nHour) - 1 == 0 then --7
reset()
end
if (nHour) - 2 == 0 then --2
reset()
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nHour) - 3 == 0 then --3
reset()
redstone.setOutput("back",true)
end
if (nHour) - 4 == 0 then --4
reset()
redstone.setOutput("left",true)
end
if (nHour) - 5 == 0 then --5
reset()
redstone.setOutput("left",true)
redstone.setOutput("back",true)
end
if (nHour) - 6 == 0 then --6
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nHour) - 7 == 0 then --7
reset()
end
if (nHour) - 8 == 0 then --8
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nHour) - 9 == 0 then --9
reset()
redstone.setOutput("left",true)
end
end
h10:
--[[
(1)> ---- <(1)
2> | | <(3)
2> | | <(3)
(4)> ---- <(4)
5> | | <(6)
5> | | <(6)
7> ---- <7
sides:
left=1
right=3
back=4
front=6
times
--15:00 = 15.00
--15:15 = 15.25
--15:30 = 15.50
--15:45 = 15.75...
]]
while true do
sleep(0.001)
local nTime = os.time()
local nHour = math.floor(nTime)
local nMinute = math.floor((nTime - nHour)*60)
print(""..nHour, ":"..nMinute)
nHour = math.floor(nHour/10)
local function reset()
redstone.setOutput("left",false)
redstone.setOutput("right",false)
redstone.setOutput("front",false)
redstone.setOutput("back",false)
end
if (nHour) - 0 == 0 then --0
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
end
if (nHour) - 1 == 0 then --1
reset()
redstone.setOutput("right",true)
redstone.setOutput("front",true)
end
if (nHour) - 2 == 0 then --2
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nHour) - 3 == 0 then --3
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
redstone.setOutput("front",true)
end
if (nHour) - 4 == 0 then --4
reset()
redstone.setOutput("right",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
if (nHour) - 5 == 0 then --5
reset()
redstone.setOutput("left",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
if (nHour) - 6 == 0 then --6
reset()
redstone.setOutput("left",true)
redstone.setOutput("back",true)
redstone.setOutput("front",true)
redstone.setOutput("top",true)
end
if (nHour) - 7 == 0 then --7
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
end
if (nHour) - 8 == 0 then --8
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
if (nHour) - 9 == 0 then --9
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
end
h20:
--[[
1> ---- <1
(2)> | | <3
(2)> | | <3
4> ---- <4
(5)> | | <6
(5)> | | <6
(7)> ---- <(7)
sides:
left=2
right=5
back=7
redstone.setOutput("side", true)
--]]
while true do
sleep(0.001)
local nTime = os.time()
local nHour = math.floor(nTime)
local nMinute = math.floor((nTime - nHour)*60)
nHour = math.floor(nHour/10)
local function reset()
redstone.setOutput("left",false)
redstone.setOutput("right",false)
redstone.setOutput("front",false)
redstone.setOutput("back",false)
end
if nHour >=9 then
nHour = nHour - 10
endif (nHour) - 0 == 0 then --0
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nHour) - 1 == 0 then --7
reset()
end
if (nHour) - 2 == 0 then --2
reset()
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nHour) - 3 == 0 then --3
reset()
redstone.setOutput("back",true)
end
if (nHour) - 4 == 0 then --4
reset()
redstone.setOutput("left",true)
end
if (nHour) - 5 == 0 then --5
reset()
redstone.setOutput("left",true)
redstone.setOutput("back",true)
end
if (nHour) - 6 == 0 then --6
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nHour) - 7 == 0 then --7
reset()
end
if (nHour) - 8 == 0 then --8
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nHour) - 9 == 0 then --9
reset()
redstone.setOutput("left",true)
end
end
m01:
--[[
(1)> ---- <(1)
2> | | <(3)
2> | | <(3)
(4)> ---- <(4)
5> | | <(6)
5> | | <(6)
7> ---- <7
sides:
left=1
right=3
back=4
front=6
times
--15:00 = 15.00
--15:15 = 15.25
--15:30 = 15.50
--15:45 = 15.75...
]]
while true do
sleep(0.001)
local nTime = os.time()
local nHour = math.floor(nTime)
local nMinute = math.floor((nTime - nHour)*60)
local function reset()
redstone.setOutput("left",false)
redstone.setOutput("right",false)
redstone.setOutput("front",false)
redstone.setOutput("back",false)
end
if nMinute >= 50 then
nMinute = nMinute - 50
else
if nMinute >= 40 then
nMinute = nMinute - 40
else
if nMinute >= 30 then
nMinute = nMinute - 30
else
if nMinute >= 20 then
nMinute = nMinute - 20
else
if nMinute >= 10 then
nMinute = nMinute - 10
end
end
end
end
endif (nMinute) - 0 == 0 then --0
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
end
if (nMinute) - 1 == 0 then --1
reset()
redstone.setOutput("right",true)
redstone.setOutput("front",true)
end
if (nMinute) - 2 == 0 then --2
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nMinute) - 3 == 0 then --3
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
redstone.setOutput("front",true)
end
if (nMinute) - 4 == 0 then --4
reset()
redstone.setOutput("right",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
if (nMinute) - 5 == 0 then --5
reset()
redstone.setOutput("left",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
if (nMinute) - 6 == 0 then --6
reset()
redstone.setOutput("left",true)
redstone.setOutput("back",true)
redstone.setOutput("front",true)
redstone.setOutput("top",true)
end
if (nMinute) - 7 == 0 then --7
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
end
if (nMinute) - 8 == 0 then --8
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
if (nMinute) - 9 == 0 then --9
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
end
m02:
--[[
1> ---- <1
(2)> | | <3
(2)> | | <3
4> ---- <4
(5)> | | <6
(5)> | | <6
(7)> ---- <(7)
sides:
left=2
right=5
back=7
redstone.setOutput("side", true)
--]]
while true do
sleep(0.001)
local nTime = os.time()
local nHour = math.floor(nTime)
local nMinute = math.floor((nTime - nHour)*60)
local function reset()
redstone.setOutput("left",false)
redstone.setOutput("right",false)
redstone.setOutput("front",false)
redstone.setOutput("back",false)
end
if nMinute >= 50 then
nMinute = nMinute - 50
else
if nMinute >= 40 then
nMinute = nMinute - 40
else
if nMinute >= 30 then
nMinute = nMinute - 30
else
if nMinute >= 20 then
nMinute = nMinute - 20
else
if nMinute >= 10 then
nMinute = nMinute - 10
end
end
end
end
end
if (nMinute) - 0 == 0 then --0
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nMinute) - 1 == 0 then --7
reset()
if (nMinute) - 2 == 0 then --2
reset()
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nMinute) - 3 == 0 then --3
reset()
redstone.setOutput("back",true)
end
if (nMinute) - 4 == 0 then --4
reset()
redstone.setOutput("left",true)
end
if (nMinute) - 5 == 0 then --5
reset()
redstone.setOutput("left",true)
redstone.setOutput("back",true)
end
if (nMinute) - 6 == 0 then --6
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nMinute) - 7 == 0 then --7
reset()
end
if (nMinute) - 8 == 0 then --8
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nMinute) - 9 == 0 then --9
reset()
redstone.setOutput("left",true)
end
end
m10:
--[[
(1)> ---- <(1)
2> | | <(3)
2> | | <(3)
(4)> ---- <(4)
5> | | <(6)
5> | | <(6)
7> ---- <7
sides:
left=1
right=3
back=4
front=6
times
--15:00 = 15.00
--15:15 = 15.25
--15:30 = 15.50
--15:45 = 15.75...
]]
while true do
sleep(0.001)
local nTime = os.time()
local nHour = math.floor(nTime)
local nMinute = math.floor((nTime - nHour)*60)
nMinute = math.floor((nMinute)/10)
local function reset()
redstone.setOutput("left",false)
redstone.setOutput("right",false)
redstone.setOutput("front",false)
redstone.setOutput("back",false)
end
if (nMinute) - 0 <= 0 then --0
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
end
if (nMinute) - 1 == 0 then --1
reset()
redstone.setOutput("right",true)
redstone.setOutput("front",true)
end
if (nMinute) - 2 == 0 then --2
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nMinute) - 3 == 0 then --3
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
redstone.setOutput("front",true)
end
if (nMinute) - 4 == 0 then --4
reset()
redstone.setOutput("right",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
if (nMinute) - 5 == 0 then --5
reset()
redstone.setOutput("left",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
if (nMinute) - 6 == 0 then --6
reset()
redstone.setOutput("left",true)
redstone.setOutput("back",true)
redstone.setOutput("front",true)
redstone.setOutput("top",true)
end
if (nMinute) - 7 == 0 then --7
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
end
if (nMinute) - 8 == 0 then --8
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
if (nMinute) - 9 == 0 then --9
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("front",true)
redstone.setOutput("back",true)
end
end
m20:
--[[
1> ---- <1
(2)> | | <3
(2)> | | <3
4> ---- <4
(5)> | | <6
(5)> | | <6
(7)> ---- <(7)
sides:
left=2
right=5
back=7
--]]
while true do
sleep(0.001)
local nTime = os.time()
local nHour = math.floor(nTime)
local nMinute = math.floor((nTime - nHour)*60)
nMinute = math.floor(nMinute/10)
local function reset()
redstone.setOutput("left",false)
redstone.setOutput("right",false)
redstone.setOutput("front",false)
redstone.setOutput("back",false)
end
if (nMinute) - 0 == 0 then --0
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nMinute) - 1 == 0 then --1
reset()
end
if (nMinute) - 2 == 0 then --2
reset()
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nMinute) - 3 == 0 then --3
reset()
redstone.setOutput("back",true)
end
if (nMinute) - 4 == 0 then --4
reset()
redstone.setOutput("left",true)
end
if (nMinute) - 5 == 0 then --5
reset()
redstone.setOutput("left",true)
redstone.setOutput("back",true)
end
if (nMinute) - 6 == 0 then --6
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nMinute) - 7 == 0 then --7
reset()
end
if (nMinute) - 8 == 0 then --8
reset()
redstone.setOutput("left",true)
redstone.setOutput("right",true)
redstone.setOutput("back",true)
end
if (nMinute) - 9 == 0 then --9
reset()
redstone.setOutput("left",true)
end
end