from minecraftstuff import MinecraftTurtle
from mcpi.minecraft import Minecraft
from mcpi import block
import math
mc = Minecraft.create()
pos = mc.player.getPos()
answer = input('Какое сейчас время суток?')
steve = MinecraftTurtle(mc, pos)
steve.speed(0)
def night(steve, radius):
steve.penblock(block.WOOL.id, 7)
circumference = 2 * math.pi * radius
side_length = circumference / 360
for i in range(360):
steve.forward(side_length)
steve.right(1)
def day():
steve.penblock(block.WOOL.id, 1)
for i in range(18):
steve.forward(30)
steve.left(100)
if answer == 'день':
day()
if answer == 'ночь':
night(steve, 20)