Chest

Chests are objects that appear in Jolly Roger Bay and Dire, Dire Docks. They are brown and gray chests. They have to be touched in a specific order for a star to appear. If the chests are touched in the wrong order, the player will be electrocuted and take damage. They appear 3 different times throughout the game. The underwater chests also give a bubble to fill the player's breath.

Empty Chest
There is an unused behavior for a chest that does not increment a counter or deal damage to the player, and instead only opens and gives the player a bubble.

Big Red Chest
Found in the files of Super Mario 64 is a red chest. What it unlocks is unclear, most likely being a star.