Hardware Reference
In-Depth Information
FIGURE.7-5
Finding where to point the hands on a clock face
Trigonometry
is the branch of mathematics that deals with the relationships
between angles and the lengths of sides in triangles. Visit
en.wikipedia.org/wiki/
Trigonometry
to learn more.
To create your clock, follow these steps:
1.
Create a new program for the Minecraft clock by opening IDLE and creating a
new file. Save the file as
MinecraftClock.py
in the
MyAdventures
folder.
2.
Import the
minecraft
,
block
,
minecraftstuff
,
time
,
datetime
and
math
modules by typing the following code:
import mcpi.minecraft as minecraft
import mcpi.block as block
import mcpi.minecraftstuff as minecraftstuff
import time
import datetime
import math