Storm Shards
Storm Shards are rare drops from mobs and natural ore. Bosses offer better chances than common monsters. Shards are physical items: bring them with you when you upgrade. /shards gives an in-game introduction, and /shards info describes the item in your hand.
See Finding Storm Shards for sources and restrictions, and Upgrading with Storm Shards for the windmill, costs and failure chances.