In Avengers: Endgame in the final battle with Thanos,
Captain America not only was able to wield Mjolnir, but also used its lightning powers.
And I remembered in Thor: Ragnarok when Thor complained to Odin about being powerless without the hammer, to which Odin replied
Are you Thor, the God of hammers? The hammer is only to control your power.
or something like that (don't remember exact words).
This led me to believe that Mjolnir was just a powerful weapon, rather than the source of lightning. Then reading Stack Exchange I was reminded about Odin's enchantment that he placed on Mjolnir in the original Thor:
Whosoever holds this hammer, if he be worthy, shall possess the power of Thor.
And by "power of Thor", I assume he meant the power of lightning? This seems like a contradiction with what he later said. Was Odin just trying to motivate Thor since
Hela was beating him pretty easily. But then again, he was able to "hit her with the biggest lighting in the history of lightnings" without Mjolnir.
So which is it about Mjolnir?