Cod

Cod are common bucketable aquatic passive mobs found in oceans, and a source of raw cod and, occasionally, bones or bone meal.
== Spawning ==
=== Java Edition ===
Cod spawn underwater in normal, cold, and lukewarm oceans, and their deep variants, in groups of 3-6, subject to fish spawning requirements.
=== Bedrock Edition ===
Cod spawn underwater 12-32 blocks away from the player in normal, cold, frozen, lukewarm oceans, and their deep variants, in groups of 4-7. In addition, cod spawn only on the surface; that is, there must not be a spawnable block above the spawn location with a non-solid block on top.
== Drops ==
Cod drop the following upon death:
* 1 , or 1 if killed while on fire. This drop is unaffected by Looting.
* 1 (5% chance)
* 1–2 s (25% chance)
* experience when killed by a player or tamed wolf.
== Behavior ==
Cod tend to swim in schools (a maximum of nine cod per school).
The player may collect a cod by a water bucket on it, which gives the player a bucket of fish. Cod placed with buckets do not despawn naturally. When that fish bucket is on a block, it empties the bucket, placing water with the cod swimming in it.
An empty bucket may be used as well.
=== Weaknesses ===
A cod cannot survive outside of water. Outside of water, they flip around on their sides like guardians for a while trying to get back into the water until, after 10 seconds of time, they start taking suffocation damage and die. , fish out of water rotate while flipping. They cannot swim or breathe in cauldron water. – "fish bouncing and suffocating on top of the cauldron which fills with water" resolved as "Won't Fix" They can swim in, but cannot survive in waterlogged blocks, most noticeably waterlogged slabs and stairs.
, cod are vulnerable to weapons that have the Impaling enchantment, which also affects other fish and aquatic mobs except drowned.
== Sounds ==
:
Cod use the Friendly Creatures sound category for entity-dependent sound events.
:
== Data values ==
=== ID ===
:
:
=== Entity data ===
Cod have entity data associated with them that contain various properties.
:
:
: See Bedrock Edition level format/Entity format.
== Achievements ==
== Advancements ==
== History ==
== Issues ==
== Trivia ==
* A cod in real life are any species of fish that belong in the genus Gadus, except for Alaska pollock which is the same genus but not called "cod".
**Interestingly, cod in Minecraft have two dorsal fins while all real members of the genus Gadus have three dorsal fins.
== Gallery ==
School of cod.png|A school of 6 cod swimming in an ocean.
Pufferfish mob.png|A fully inflated pufferfish, with six deflated pufferfish and a school of cod behind it.
Coral reef at night.png|An ocean with some fish visible.
Land Fish.png|A dying cod next to a pufferfish that is also taking damage due to the absence of water around them. 
Ocean life.png|Cod and tropical fish, along with a turtle and squid.
ArgoMajor Fish.jpg|First image of fish mobs in Bedrock Edition.
== See also ==
* Salmon
* Tropical Fish
* Pufferfish
== References ==
Category:Passive mobs
Category:Aquatic mobs
Category:Animal mobs
cs:Treska
de:Kabeljau
es:Bacalao
fr:Poisson (créature)
ja:タラ
ko:대구
hu:Hal
nl:Vis (wezen)
pl:Ryba (mob)
pt:Bacalhau
ru:Треска
th:Fish (mob)
uk:Тріска
zh:鳕鱼