def stairs(x, y, z, radius, width, btype, subtype, height=0, turns=1, start=0, railings=False): import remoteMCServer mc = remoteMCServer.create("") for stair in range(width): spiral(mc, x, y, z, radius + stair, btype, subtype, height, turns, start) if railings == True: spiral(mc, x, y + 2, z, radius - 1, height, turns, start) spiral(mc, x, y + 2, z, radius + width, height, turns, start)
roofx += 1 roofy += 1 roofw -= 2 #2 part door, torch, and windows mc.setBlock(doorx, y + 1, z, 193) mc.setBlock(doorx, y + 2, z, 193) mc.setBlock(doorx, y + 3, z + 1, 5, 2) mc.setBlock(doorx, y + 4, z + 1, 50) mc.setBlocks(x, y + 2, z + 2, x, y + 3, z + int(5 / 7 * length), 102) mc.setBlocks(x + width - 1, y + 2, z + 2, x + width - 1, y + 3, z + int(5 / 7 * length), 102) #circular porch #radius of circle is different from center to corner r = int(width / math.sqrt(2) + 3) mc.setBlocks(x - 2, y, z - 2, x + width + 1, y, z + length + 1, 5, 2) #finding the circle for dx in range(-r, r + 1): for dz in range(-r, r + 1): if dx * dx + dz * dz <= r * r: #pythagoras mc.setBlock(ctrx + dx, y, ctrz + dz, 5, 2) if __name__ == "__main__": import remoteMCServer mc = remoteMCServer.create("") #Clear out area before testing again mc.setBlocks(-20, 4, -20, 20, 20, 20, 0) buildHouse(mc, 0, 4, 0)