Esempio n. 1
0
def construct_vaulted_roof(level, coords, biome, height):
    minx, minz, miny, maxx, maxz = get_coords(coords)
    roof_block = BlockUtils.get_roof_block(biome)
    for i in range(-1, abs(maxx - minx) / 3):
        for x in range(minx, maxx):
            for z in range(minz + i, maxz - i):
                utilityFunctions.setBlock(level, roof_block, x, height + i, z)
Esempio n. 2
0
def construct_floor_and_flat_roof(level, coords, biome, height):
    minx, minz, miny, maxx, maxz = get_coords(coords)
    roof_block = BlockUtils.get_roof_block(biome)
    floor_block = BlockUtils.get_floor_block(biome)

    # roof and floor
    for x in range(minx, maxx):
        for z in range(minz, maxz):
            utilityFunctions.setBlock(level, roof_block, x, height, z)
            utilityFunctions.setBlock(level, floor_block, x, miny, z)