In Animal Crossing, adding a town fountain requires donating to your town's development fund. The commonly cited amounts are around 200,000 bells for the first donation tier and up to 500,000 bells to fully complete it. Once you've contributed enough, the fountain is built as a new town feature.