Minecraft wiki entry for Raw_Cod, associated text: When a player feeds raw cod to a dolphin, it swims toward the nearest chest in an underwater ruins or shipwreck. If the chest in the nearest structure is broken, they swim to the next nearest structure that has a chest.