The Parrot Cracker can be purchased from the PirateNPC when he is living in an ocean biome. It summons a Pet Parrot which looks like the Parrot enemy from the Pirate Invasion but just follows the player around and is purely cosmetic.
Eating the Parrot Cracker doesn't consume it, allowing the player to re-summon the Pet by re-eating the Cracker.