But I am thinking about lifting hydraulic rather than "gears and pullies." As it is pumped upward, the energy is stored in the elevation of the tons of weight of the building. To recover the energy the pump is reversed, and the building lowers.
Be handy if a flood is coming. :) :)