Labirnyt

mail@pastecode.io avatar
unknown
python
24 days ago
1.2 kB
9
Indexable
Never
mury = [
    {"szerokosc": 44, "wysokosc": 6, "start": (0, -60, 0), "material": BEDROCK},
    {"szerokosc": 36, "wysokosc": 6, "start": (4, -60, 4), "material": PURPLE_TERRACOTTA},
    {"szerokosc": 28, "wysokosc": 6, "start": (8, -60, 8), "material": GREEN_TERRACOTTA},
    {"szerokosc": 20, "wysokosc": 6, "start": (12, -60, 12), "material": BLUE_TERRACOTTA},
    {"szerokosc": 12, "wysokosc": 6, "start": (16, -60, 16), "material": RED_TERRACOTTA},
    {"szerokosc": 4, "wysokosc": 6, "start": (20, -60, 20), "material": BLACK_TERRACOTTA}
]


def labirynt():
    for mur in mury:
        startX, startY, startZ = mur["start"]
        endX = startX + mur["szerokosc"]
        endY = startY + mur["wysokosc"]
        endZ = startZ + mur["szerokosc"]
        blok = mur["material"]

        blocks.fill(blok, world(startX,startY - 1,startZ), world(endX,endY,endZ), FillOperation.HOLLOW)
        blocks.fill(GLOWSTONE, world(startX,startY - 1,startZ),world(endX,endY - 1,endZ))
        blocks.fill(BEDROCK, world(startX,startY - 2,startZ),world(endX,endY - 2,endZ))
        blocks.fill(AIR, world(startX,endY,startZ),world(endX,endY,endZ))
Leave a Comment