If you dig up an anthill, but miss the queen, and keep the ants in an aquarium, they will not continue to behave and build as long as that queen is alive.Apparently the queen sends the "building plans" also from far away via the group consciousness of her subjects. She can be as far away as she wants, as long as she is alive."
Actually the nest only needs to smell its queen.