Oh Snap! Coders

Minecraft alarm clock

In this tutorial, you will learn how to read system time and play sounds. We will use “playsound” and “datetime” libraries as part of the program that will display the current time in Minecraft using a slightly unusual way, by building stacks of blocks. The height of each stack will represent the current value for hours, minutes and seconds. A the beginning, the user will be asked to provide the time when the alarm should be fired and a respective sound played.