What eliminates the minerals that cause hard water?
Hard water can be softened (have its minerals removed) by treating it with lime or by passing it over an ion exchange resin. The ion exchange resins are complex sodium salts. Water flows over the resin surface, dissolving the sodium. The calcium, magnesium, and other cations precipitate onto the resin surface. Sodium goes into the water, but the other cations stay with the resin. Very hard water will end up tasting saltier than water that had fewer dissolved minerals.