Fish (food)

Raw cod is a food item. Raw salmon is a food item. Tropical fish is a food item that cannot be cooked. Pufferfish is a highly poisonous food item and potion ingredient. Cooked cod is a food item obtained by cooking raw fish. Cooked salmon is a food item obtained by cooking raw salmon.

Fishing
The most common way of obtaining any type of fish is fishing. The wait time of one being caught is decreased with the Lure enchantment and the chance of one being caught is slightly decreased with the Luck of the Sea enchantment (named as such because it increases treasure, not fish).

Guardians and Elder Guardians
Guardians and elder guardians have a 40% and 50% chance to drop raw fish as a common drop respectively when killed. The raw fish will become cooked if the guardian/elder guardian was killed while on fire.

Guardians and elder guardians also drop a random fish as a rare drop besides the common raw fish drop. This has a 60% chance of being raw fish, a 25% chance of being raw salmon, a 2% chance of being tropical fish and a 13% chance of being pufferfish. The chance of getting a fish can be increased with looting, but the type of fish is not affected.

Polar Bears
Polar bears drop 0–2 raw fish when killed. This has a 75% chance of being raw fish and a 25% chance of being raw salmon. Polar bears do not drop tropical fish or pufferfish. The fish and/or salmon will be raw even if the polar bear is on fire when killed.

Fish
Fish mobs will always drop 1 of their respective item form when killed. If a fish or salmon was killed while on fire, the dropped fish or salmon item will be cooked.

Dolphins
Dolphins drop 0–1 fish when killed, with the chance for an additional fish per level of looting used.

Trading
Fisherman villagers will sell 6 cooked fish for 6 raw fish and 1 emerald.

Food
Raw fish restores and 0.4 saturation. Cooked fish restores / and 0.6/6 saturation. Raw salmon restores and 0.2 saturation. Cooked salmon restores and 9.6 saturation. Tropical fish restores and 0.2 saturation. Pufferfish restores and 0.2 saturation, and inflicts  III for 15 seconds,  IV for 1 minute, and  II for 15 seconds.

Ocelots
Raw fish can be used to tame ocelots, get cats off of chests, beds, etc., breed cats, and make baby cats grow up faster by 10% of the remaining time. Other fish types will also work.

Dolphins
Dolphins can be fed raw fish. Doing this will improve their trust with the player, and interact with them more. However, unlike most animals, this will not cause them to breed.

Additionally, dolphins will swim to the nearest chest in an underwater ruins or shipwreck structure when they are fed raw fish. If the chest in the nearest structure is broken, they will instead swim to the nearest structure that has a chest.

Trivia

 * In the Halloween Update, Notch said he would add fish as a sea creature; however, he had limited time, and was thus only able to add them as an item. However, they will be added in 1.13 update.
 * Raw cod most closely resembles white crappie or tilapia, rather than actual cod.
 * The consumption of pufferfish inflicting the player with nausea and poison is actually based on reality, as real pufferfish contain the extremely dangerous toxin Tetrodotoxin within their organs, especially their liver. Muscle tissue and blood only contain trace amounts. In East Asia, pufferfish are considered a delicacy known as fugu, as small parts of the fish are actually edible.
 * If this dish is prepared incorrectly, it can be lethal through respiratory paralysis. Therefore, any chef preparing fugu would have to have special licensing/certification to prepare this dish.