Collective Construction of Environmentally-adaptive Structures