With the scarcity of water resources in various regions, the pressure on water supply projects is also increasing, which has led to a sharp increase in the water hammer effect in water supply pump projects. In response to this issue, the study proposes to apply a unidirectional pressure regulating tower based on mechanical hydraulic technology to water hammer protection in water supply pumps. In addition, the study also optimizes the calculation method of water hammer and designs one simulation software, which is used to simulate and analyze the proposed water hammer protection measures. The study first determines through simulation software that the optimal initial water level of the unidirectional pressure regulating tower is 2m and the optimal diameter of the make-up water pipe is 600 mm. Afterwards, simulation analysis is conducted on different water hammer protection measures, and it is found that the maximum pressure of the water hammer under the proposed protection measures is the lowest, at 14.8m, which was lower than the comparison measures. In addition, according to expert ratings, the average protective effect rating of protective measure 1 by relevant technical personnel is 9.4 points, which is better than the comparative measure. The above results indicate that through the simulation analysis of hydraulic transition process based on mechanical hydraulics, it can be found that the water hammer protection measures proposed in the study have good protective functions and can effectively reduce the water hammer effect in water supply engineering.