https://pastein.ru/t/FQV

  скопируйте уникальную ссылку для отправки


def dom2_N():
    d1 = [1, 1, 1, 1, 1]
    d2 = [1, 2, 1, 2, 1]
    d3 = [1, 1, 0, 1, 1]

    # Строим два первых ряда со входом
    for j in range(2):
        for i in range(len(d3)):
            if d3[i] == 1:
                mc.setBlock(pos.x, pos.y, pos.z, 4)
            elif d3[i] == 0:
                mc.setBlock(pos.x, pos.y, pos.z, 0)
            pos.x = pos.x + 1
        pos.y = pos.y + 1
        pos.x = pos.x - 5

    # строим два сплошных ряда блоков
    for j in range(2):
        for i in range(len(d1)):
            if d1[i] == 1:
                mc.setBlock(pos.x, pos.y, pos.z, 4)
            elif d1[i] == 0:
                mc.setBlock(pos.x, pos.y, pos.z, 0)
            pos.x = pos.x + 1
        pos.y = pos.y + 1
        pos.x = pos.x - 5

    # строим ряд блоков с окнами
    for i in range(len(d2)):
        if d2[i] == 1:
            mc.setBlock(pos.x, pos.y, pos.z, 4)
        elif d2[i] == 2:
            mc.setBlock(pos.x, pos.y, pos.z, 20)
        pos.x = pos.x + 1
    pos.y = pos.y + 1
    pos.x = pos.x - 5

    # строим два сплошных ряда блоков
    for j in range(2):
        for i in range(len(d1)):
            if d1[i] == 1:
                mc.setBlock(pos.x, pos.y, pos.z, 4)
            elif d1[i] == 0:
                mc.setBlock(pos.x, pos.y, pos.z, 0)
            pos.x = pos.x + 1
        pos.y = pos.y + 1
        pos.x = pos.x - 5

    # строим ряд блоков с окнами
    for i in range(len(d2)):
        if d2[i] == 1:
            mc.setBlock(pos.x, pos.y, pos.z, 4)
        elif d2[i] == 2:
            mc.setBlock(pos.x, pos.y, pos.z, 20)
        pos.x = pos.x + 1
    pos.y = pos.y + 1
    pos.x = pos.x - 5

    for i in range(len(d1)):
        if d1[i] == 1:
            mc.setBlock(pos.x, pos.y, pos.z, 4)
        elif d1[i] == 0:
            mc.setBlock(pos.x, pos.y, pos.z, 0)
        pos.x = pos.x + 1

    # строим вторую стену
    pos.y = pos.y - 8
    pos.x = pos.x - 1

    for j in range(4):
        for i in range(len(d1)):
            if d1[i] == 1:
                mc.setBlock(pos.x, pos.y, pos.z, 4)
            elif d1[i] == 0:
                mc.setBlock(pos.x, pos.y, pos.z, 0)
            pos.z = pos.z + 1
        pos.y = pos.y + 1
        pos.z = pos.z - 5

    for i in range(len(d2)):
        if d2[i] == 1:
            mc.setBlock(pos.x, pos.y, pos.z, 4)
        elif d2[i] == 2:
            mc.setBlock(pos.x, pos.y, pos.z, 20)
        pos.z = pos.z + 1
    pos.y = pos.y + 1
    pos.z = pos.z - 5

    for j in range(2):
        for i in range(len(d1)):
            if d1[i] == 1:
                mc.setBlock(pos.x, pos.y, pos.z, 4)
            elif d1[i] == 0:
                mc.setBlock(pos.x, pos.y, pos.z, 0)
            pos.z = pos.z + 1
        pos.y = pos.y + 1
        pos.z = pos.z - 5

    for i in range(len(d2)):
        if d2[i] == 1:
            mc.setBlock(pos.x, pos.y, pos.z, 4)
        elif d2[i] == 2:
            mc.setBlock(pos.x, pos.y, pos.z, 20)
        pos.z = pos.z + 1
    pos.y = pos.y + 1
    pos.z = pos.z - 5

    for i in range(len(d1)):
        if d1[i] == 1:
            mc.setBlock(pos.x, pos.y, pos.z, 4)
        elif d1[i] == 0:
            mc.setBlock(pos.x, pos.y, pos.z, 0)
        pos.z = pos.z + 1
    pos.y = pos.y + 1
    pos.z = pos.z - 5

    # строим третью стену
    pos.y = pos.y - 9
    pos.x = pos.x - 4

    for j in range(4):
        for i in range(len(d1)):
            if d1[i] == 1:
                mc.setBlock(pos.x, pos.y, pos.z, 4)
            elif d1[i] == 0:
                mc.setBlock(pos.x, pos.y, pos.z, 0)
            pos.z = pos.z + 1
        pos.y = pos.y + 1
        pos.z = pos.z - 5

    for i in range(len(d2)):
        if d2[i] == 1:
            mc.setBlock(pos.x, pos.y, pos.z, 4)
        elif d2[i] == 2:
            mc.setBlock(pos.x, pos.y, pos.z, 20)
        pos.z = pos.z + 1
    pos.y = pos.y + 1
    pos.z = pos.z - 5

    for j in range(2):
        for i in range(len(d1)):
            if d1[i] == 1:
                mc.setBlock(pos.x, pos.y, pos.z, 4)
            elif d1[i] == 0:
                mc.setBlock(pos.x, pos.y, pos.z, 0)
            pos.z = pos.z + 1
        pos.y = pos.y + 1
        pos.z = pos.z - 5

    for i in range(len(d2)):
        if d2[i] == 1:
            mc.setBlock(pos.x, pos.y, pos.z, 4)
        elif d2[i] == 2:
            mc.setBlock(pos.x, pos.y, pos.z, 20)
        pos.z = pos.z + 1
    pos.y = pos.y + 1
    pos.z = pos.z - 5

    for i in range(len(d1)):
        if d1[i] == 1:
            mc.setBlock(pos.x, pos.y, pos.z, 4)
        elif d1[i] == 0:
            mc.setBlock(pos.x, pos.y, pos.z, 0)
        pos.z = pos.z + 1

    # строим четвёртую стену
    pos.y = pos.y - 8
    mc.setBlocks(pos.x, pos.y, pos.z, pos.x + 4, pos.y + 8, pos.z, 4)

    # строим крышу
    mc.setBlocks(pos.x, pos.y + 9, pos.z, pos.x + 4, pos.y + 9, pos.z - 5, 20)