Dolphin

"Social creatures of habit, dolphins can be found swimming together through the ocean in large groups. As they spot the player, they will try to interact with them, showing them just how highly intelligent and curious they are. Above all else – they are extremely playful!"

- Per Landin

Dolphins are neutral mobs that live in the ocean.

Spawning
Dolphins are found in normal, cold, and lukewarm oceans, as well as their deep variants.

Drops
When killed, dolphins drop 0–1 raw cod, with the chance of an additional fish per level of looting.

Behavior
Dolphins will normally swim in groups, occasionally leaping out of the water to get air, they're also able to jump from one body of water to another. They will also try to chase after players in boats.

Dolphins are lured by dropped items, knocking them around and chasing them. If the player hits a dolphin, the entire group will become aggressive and hit the player back.

Feeding dolphins raw cod will also improve their "trust" with you, depending on the amount of fish fed, causing them to interact with the player more.

Weaknesses
If a dolphin is not in water, it will start taking suffocation damage after a while, and eventually die. They can't survive without getting air every once in a while either, so if they stay submerged for too long, they will begin drowning.

Data values
Dolphins have entity data associated with them that contain various properties of the mob. Their entity ID is.