Minecraft Wiki
This article is about the mob. For the food items, see Raw Cod and Cooked Cod.

Cod are common bucketable aquatic passive mobs found in oceans, and a source of raw cod and, occasionally, bones[Bedrock Edition only] or bone meal.‌[Java Edition only]


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.


Cod drop the following upon death:


Cod tend to swim in schools (a maximum of nine cod per school).

The player may collect a cod by using 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 used on a block, it empties the bucket, placing water with the cod swimming in it.

An empty bucket may be used as well.‌[Bedrock Edition only]


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. In Bedrock Edition, fish out of water rotate while flipping. They cannot swim or breathe in cauldron water.[2] They can swim in, but cannot survive in waterlogged blocks, most noticeably waterlogged slabs and stairs.

In Java Edition, cod are vulnerable to weapons that have the Impaling enchantment, which also affects other fish and aquatic mobs except drowned.


Java Edition:
Cod use the Friendly Creatures sound category for entity-dependent sound events.

SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
NoneNone[sound 1]Friendly CreaturesRandomlyentity.cod.ambientNone[sound 1]1.00.8-1.216
Cod diesFriendly CreaturesWhen a cod diesentity.cod.deathsubtitles.entity.cod.death1.00.8-1.216
Cod hurtsFriendly CreaturesWhen a cod is damagedentity.cod.hurtsubtitles.entity.cod.hurt1.00.8-1.216
Cod flopsFriendly CreaturesWhile a cod is on landentity.cod.flopsubtitles.entity.cod.flop0.30.8-1.216
None[sound 3]Friendly CreaturesWhile a cod is swimmingentity.fish.swimNone[sound 3]0.0-1.0 [sound 2]0.6-1.416
  1. a b NONE
  2. The fish's momentum, with the horizontal axes' velocities multiplied by 0.2 (capped at 1.0)
  3. a b MC-200508

Bedrock Edition:

SoundSourceDescriptionResource locationVolumePitch
Friendly CreaturesWhen a cod diesmob.fish.hurt1.00.8-1.2
Friendly CreaturesWhen a cod is damagedmob.fish.hurt1.00.8-1.2
Friendly CreaturesWhile a cod is on landmob.fish.flop1.01.0
Friendly CreaturesWhile a cod is swimmingmob.fish.step0.151.0

Data values[]


Java Edition:

NameIdentifierEntity tagsTranslation key

Bedrock Edition:

NameIdentifierNumeric ID Translation key

Entity data[]

Cod have entity data associated with them that contain various properties.

Java Edition:

Main article: Entity format
  • Entity data
    • Tags common to all entities
    • Tags common to all mobs
    •  FromBucket: 1 or 0 (true/false) - Whether the fish had ever been released from a bucket.

Bedrock Edition:

See Bedrock Edition level format/Entity format.


Icon Achievement In-game description Actual requirements (if different) Gamerscore earned Trophy type (PS4)
PS4 Other
I am a Marine BiologistCollect a fish in a bucketUse an empty bucket on any fish mob to collect it.20GBronze


Icon Advancement In-game description Parent Actual requirements (if different) Resource location
Advancement-fancy-rawIt Spreads
Kill a mob near a Sculk Catalyst Monster HunterKill one of these 70 mobs near a sculk catalyst: Mobs that drop no experience are ignored for this advancement.adventure/kill_mob_near_sculk_catalyst
Advancement-plain-rawTactical Fishing
Catch a Fish... without a Fishing Rod! Fishy BusinessUse a water bucket on any fish mob.husbandry/tactical_fishing


Java Edition Alpha
June 28, 2010Notch mentioned that fish might be a feature of coral, if he were able to add coral: "... I do know that the corals will have tiny fish particles around them."
October 4, 2010Fish were a passive mob that Notch showed interest in adding. In the promotional graphic for the Halloween Update, Notch indicated he would add fish. However, they were added only as an item; there was no code for a fish mob.
Java Edition
October 5, 2012Fish were jokingly teased in the fake snapshot 12marc40awesome, along with coral and "fish blocks".
April 13, 2013When Jon Kågström was asked in his AMA on Reddit, "What mob would you like to implement into the game?" He responded, "I would like to add birds, fish and tree animals to make it more alive. However this will take some time before it can be done."
July 31, 2013During Notch's AMA on Reddit, when asked about what happened to his plans of adding fish as a mob, he responded, "Oh yeah, the fish!"
1.1318w08bCod Added cod as a mob.
18w15aCod now drop the cooked version of their item drops, if killed while on fire.
1.13.118w31aCod now have a 5% chance of dropping bone meal when killed.
1.1821w40aCod now only spawn between y=50 and y=64.
Bedrock Edition
1.4.0beta BE Added cod.
1.13.0beta now drop experience when killed.
1.16.100beta now drop the cooked version of their item drops, if killed while on fire.
1.18.0beta now only spawn between y=50 and y=64.
1.19.10beta max health of cod has been changed to 3♥♥.
Legacy Console Edition
TU69 1.76 Patch 38Cod BE Added cod.
Education Edition
1.4.0Cod BE Added cod.


Issues relating to "Cod" are maintained on the bug tracker. Report issues there.


  • 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.


See also[]


  1. MC-212795 — Salmon & Fish mobs are not affected by Looting
  2. MC-126819 – "fish bouncing and suffocating on top of the cauldron which fills with water" resolved as "Won't Fix"