![]() HourHandEnd = findPointOnCircle(clockCentre.x, clockCentre.y, 10.0, angle)ĭrawLine(mc, clockCentre.x, clockCentre.y, clockCentre.z - 1, hourHandEnd, hourHandEnd, blockType)ĭef drawMinuteHand(mc, clockCentre, minutes, blockType): Y = cy + s(math.radians(angle)) * radiusĭef drawHourHand(mc, clockCentre, hours, minutes, blockType):Īngle = getAngleForHand(int((hours * 5) + (minutes * (5.0/60.0)))) X = cx + math.sin(math.radians(angle)) * radius If steep: mc.setBlock(y, x, z, blockType)ĭef findPointOnCircle(cx, cy, radius, angle): Mc.setBlock(x0 - y, y0 - x, z, blockType)ĭef drawLine(mc, x, y, z, x2, y2, blockType): Mc.setBlock(x0 + y, y0 - x, z, blockType) Mc.setBlock(x0 - y, y0 + x, z, blockType) Mc.setBlock(x0 + y, y0 + x, z, blockType) Mc.setBlock(x0 - x, y0 - y, z, blockType) Mc.setBlock(x0 + x, y0 - y, z, blockType) Mc.setBlock(x0 - x, y0 + y, z, blockType) Mc.setBlock(x0 + x, y0 + y, z, blockType) Mc.setBlock(x0 - radius, y0, z, blockType) Mc.setBlock(x0 + radius, y0, z, blockType) Mc.setBlock(x0, y0 - radius, z, blockType) ![]() Mc.setBlock(x0, y0 + radius, z, blockType) #import the minecraft.py module from the minecraft directoryĭef drawCircle(mc, x0, y0, z, radius, blockType): ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |