Shore-based water wave energy produced by the impact of ocean waves on the coastline is a kind of clean and renewable energy. In this paper, a pendular-translational hybrid nanogenerator (PT-HNG) with two multilayer triboelectric nanogenerators and a spring base is proposed to harvest the wave energy. Pendular-translational movement mechanism is a sliding rail structure embedded with a permanent magnet, and the output is greatly improved compared to the previous pendular–pendular movement mechanism. Furthermore, the use of the spring base not only makes the device easy to install and fix but also increases the swing angle, which can better harvest the water wave energy. When the PT-HNG is used on the beach, a 33 μF capacitor can be charged to 4.3 V in 85 s. PT-HNG can be used to build self-powered wireless sensor networks to monitor the surrounding environment. This work proposes an innovative and efficient way to capture shore-based wave energy.