226: Making and displaying a clock. [Minecraft Map Making]
Ep226: There are other ways to make a clock using less commands, but this is a nice way that is easy to understand what is happening.
Java Version: 1.19
Commands, builds and ideas for people making their own Minecraft maps.
Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ
Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: https://discord.gg/amU84KykEu
The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.
Since angled brackets are not allowed in YouTube descriptions you will have to replace "greater than" with the appropriate angled bracket. Ascii code: 62
Commands used:
Setup:
IUN: scoreboard objectives add clock dummy
Controller:
RUA: scoreboard players add Ticks clock 1
CUA: execute if score Ticks clock matches 20.. run scoreboard players set Ticks clock 0
CCA: scoreboard players add Seconds clock 1
CCA: execute if score Seconds clock matches 60.. run scoreboard players set Seconds clock 0
CCA: scoreboard players add Minutes clock 1
CCA: execute if score Minutes clock matches 60.. run scoreboard players set Minutes clock 0
CCA: scoreboard players add Hours clock 1
Show time as title:
IUN: title @a times 20 80 20
CUA: title @a title {"text":" Current Time:","color":"dark_green"}
CUA: title @a subtitle [{"text":"H:"},{"score":{"name":"Hours","objective":"clock"},"color":"green"},{"text":" M:"},{"score":{"name":"Minutes","objective":"clock"},"color":"green"},{"text":" S:"},{"score":{"name":"Seconds","objective":"clock"},"color":"green"}]
Show time on action bar:
IUN: title @a actionbar [{"text":"H:"},{"score":{"name":"Hours","objective":"clock"},"color":"green"},{"text":" M:"},{"score":{"name":"Minutes","objective":"clock"},"color":"green"},{"text":" S:"},{"score":{"name":"Seconds","objective":"clock"},"color":"green"}]
Keep time on action bar:
RUA: scoreboard players add displayBar clock 1
CUA: execute if score displayBar clock matches 50.. run scoreboard players set displayBar clock 0
CCA: title @a actionbar [{"text":"H:"},{"score":{"name":"Hours","objective":"clock"},"color":"green"},{"text":" M:"},{"score":{"name":"Minutes","objective":"clock"},"color":"green"},{"text":" S:"},{"score":{"name":"Seconds","objective":"clock"},"color":"green"}]
Put time on a sign: [1.19]
IUN: data merge block ~ ~ ~ {Text2:'[{"text":"H:"},{"score":{"name":"Hours","objective":"clock"},"color":"green"},{"text":" M:"},{"score":{"name":"Minutes","objective":"clock"},"color":"green"},{"text":" S:"},{"score":{"name":"Seconds","objective":"clock"},"color":"green"}]'}
Put time on a sign: [1.20]
IUN: data merge block ~ ~ ~ {front_text:{messages:['[{"text":"H:"},{"score":{"name":"Hours","objective":"clock"},"color":"green"},{"text":" M:"},{"score":{"name":"Minutes","objective":"clock"},"color":"green"},{"text":" S:"},{"score":{"name":"Seconds","objective":"clock"},"color":"green"}]','{"text":""}','{"text":""}','{"text":""}']}}
Other Videos By Infernal Device
Other Statistics
Minecraft Statistics For Infernal Device
At present, Infernal Device has 181,722 views spread across 860 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.