Robot Hat

The Robot Hat is a vanity item and is a rare drop from Piranhas, which can be found in water in the Jungle and Underground.

Trivia
This hat appears to be a reference to the hat worn by the protagonist from the popular indie game 'Cave Story', as seen here.