One way to store mechanical energy is to convert it into potential energy, such as raising a weight. Many grandfather clocks use this method, and it can store energy for an unlimited amount of time. In a similar way, you can store energy in compressed springs. This is much more compact and does not depend on gravity; however, the springs can degrade with time.