The sword itself deals melee damage while the star projectile deals ranged damage.
The sword is a reference to the Starfury, a melee weapon in Terraria, which also summons stars from the sky and has a similar appearance. It is referenced due to a crossover between the games.
The weapon's description is also referential to Terraria, in which certain swords can be combined into a sword called the Zenith.