Cod

For other uses, see Fish (disambiguation).
Not to be confused with Commands/code.
Cod
Health points

3HPβ€οΈπŸ’”

Behavior

Passive

Mob type

Animal β€’ Aquatic

Hitbox size

In Java Edition:
Height: 0.3 blocks
Width: 0.5 blocks

In Bedrock Edition:
Height: 0.3 blocks
Width: 0.6 blocks

Speed

0.7

Spawn

Cold Ocean
Deep Cold Ocean
Lukewarm Ocean
Deep Lukewarm Ocean
Ocean
Deep Ocean
Frozen Oceanβ€Œ[BE only]
Deep Frozen Oceanβ€Œ[BE only]

Usable items

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

Spawning

Cod spawns in:
Category:
Water ambientβ€Œ[JE only]
Water creatureβ€Œ[BE only]
Java EditionBedrock Edition
Spawn areaSpawn weightSpawn chanceGroup sizeSpawn weightGroup size
File:BiomeSprite ocean-biomes.pngOcean biomes10⁄10100%3–6754–7
Deep Ocean10⁄10100%3–6754–7
Ocean10⁄10100%3–6754–7
Cold Ocean15⁄3050%3–6754–7
Deep Cold Ocean15⁄3050%3–6754–7
Lukewarm Ocean15⁄4533.33%3–6754–7
Deep Lukewarm Ocean8⁄3821.05%3–6754–7
Deep Frozen Oceanβ€”β€”β€”754–7
File:BiomeSprite ocean-biomes.pngOcean biomesβ€”β€”β€”754–7
Frozen Oceanβ€”β€”β€”754–7

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

On death

Java Edition:

ItemQuantity / Chance / Average
DefaultLooting ILooting IILooting III
Raw Cod[A]1100.00%1.001100.00%1.001100.00%1.001100.00%1.00
Cooked Cod[B]1100.00%1.001100.00%1.001100.00%1.001100.00%1.00
Bone Meal0–15.00%0.050–15.00%0.050–15.00%0.050–15.00%0.05

ItemQuantity / Chance / Average
DefaultLooting ILooting IILooting III
Raw Cod[A]111111111111
Cooked Cod[B]111111111111
Bone Meal0–11⁄201⁄200–11⁄201⁄200–11⁄201⁄200–11⁄201⁄20

ItemAmountProbability
DefaultLooting ILooting IILooting III
Raw Cod[A]11 (100.00%)1 (100.00%)1 (100.00%)1 (100.00%)
Average1 (1.00)1 (1.00)1 (1.00)1 (1.00)
Cooked Cod[B]11 (100.00%)1 (100.00%)1 (100.00%)1 (100.00%)
Average1 (1.00)1 (1.00)1 (1.00)1 (1.00)
Bone Meal019⁄20 (95.00%)19⁄20 (95.00%)19⁄20 (95.00%)19⁄20 (95.00%)
11⁄20 (5.00%)1⁄20 (5.00%)1⁄20 (5.00%)1⁄20 (5.00%)
Average1⁄20 (0.05)1⁄20 (0.05)1⁄20 (0.05)1⁄20 (0.05)

Killed1
ItemExpected Drops
DefaultLooting ILooting IILooting III
Raw Cod[A]1.001.001.001.00
Cooked Cod[B]1.001.001.001.00
Bone Meal0.050.050.050.05

  1. ↑ Only when not on fire and not killed with a weapon enchanted with Fire Aspect.
  2. ↑ Only when on fire or killed with a weapon enchanted with Fire Aspect.

Bedrock Edition:

ItemQuantity / Chance / Average
DefaultLooting ILooting IILooting III
Raw Cod[A]1100.00%1.001100.00%1.001100.00%1.001100.00%1.00
Cooked Cod[B]1100.00%1.001100.00%1.001100.00%1.001100.00%1.00
Bone0–125.00%0.250 / 2–326.00%0.650 / 3–527.00%1.080 / 4–728.00%1.54

ItemQuantity / Chance / Average
DefaultLooting ILooting IILooting III
Raw Cod[A]111111111111
Cooked Cod[B]111111111111
Bone0–11⁄41⁄40 / 2–313⁄5013⁄200 / 3–527⁄10027⁄250 / 4–77⁄2577⁄50

ItemAmountProbability
DefaultLooting ILooting IILooting III
Raw Cod[A]11 (100.00%)1 (100.00%)1 (100.00%)1 (100.00%)
Average1 (1.00)1 (1.00)1 (1.00)1 (1.00)
Cooked Cod[B]11 (100.00%)1 (100.00%)1 (100.00%)1 (100.00%)
Average1 (1.00)1 (1.00)1 (1.00)1 (1.00)
Bone03⁄4 (75.00%)37⁄50 (74.00%)73⁄100 (73.00%)18⁄25 (72.00%)
11⁄4 (25.00%)000
2013⁄100 (13.00%)00
3013⁄100 (13.00%)27⁄400 (6.75%)0
40027⁄200 (13.50%)7⁄150 (4.67%)
50027⁄400 (6.75%)7⁄75 (9.33%)
60007⁄75 (9.33%)
70007⁄150 (4.67%)
Average1⁄4 (0.25)13⁄20 (0.65)27⁄25 (1.08)77⁄50 (1.54)

Killed1
ItemExpected Drops
DefaultLooting ILooting IILooting III
Raw Cod[A]1.001.001.001.00
Cooked Cod[B]1.001.001.001.00
Bone0.250.651.081.54

  1. ↑ Only when not on fire.
  2. ↑ Only when on fire.
  • 1–3XP experience when killed by a player or tamed wolf.

Behavior

Cod tend to swim in schools with a maximum of 9 cod per school.

The player may collect a cod by using a water bucket on it, which gives the player a bucket of cod. 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]

Cod can not be bred, but only spawn in designated biomes.

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. In Bedrock Edition, fish out of water rotate while flipping. They cannot swim or breathe in cauldron water.[1] 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.

Sounds

Java Edition:

Sounds
SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
distance
NoneNone​[sound 2]​Friendly MobsRandomlyentity.cod.ambientNone​[sound 2]​1.00.8-1.216
​Cod diesFriendly MobsWhen a cod diesentity.cod.deathsubtitles.entity.cod.death​1.00.8-1.216
​Cod hurtsFriendly MobsWhen a cod is damagedentity.cod.hurtsubtitles.entity.cod.hurt​1.00.8-1.216
​Cod flopsFriendly MobsWhile a cod is on landentity.cod.flopsubtitles.entity.cod.flop​0.30.8-1.216
​SplashesFriendly MobsWhile a cod is swimmingentity.fish.swimsubtitles.entity.fish.swim​0.0-1.0 [sound 1]0.6-1.416
  1. ↑ The fish's momentum, with the horizontal axes' velocities multiplied by 0.2 (capped at 1.0)
  2. ↑ a b ​MC-97521​

Bedrock Edition:

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

Data values

ID

Java Edition:

NameIdentifierEntity tagsTranslation key
EntitySprite cod.png: Sprite image for cod in Minecraft Codcodaquatic
axolotl_hunt_targets
can_breathe_under_water
not_scary_for_pufferfish
sensitive_to_impaling
entity.minecraft.cod

Bedrock Edition:

NameIdentifierNumeric ID Translation key
EntitySprite cod.png: Sprite image for cod in Minecraft Codcod112entity.cod.name

Entity data

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

Java Edition:

Main article: Entity format
  • [NBT Compound / JSON Object] Entity data
    • Tags common to all entities see Template:Nbt inherit/entity/template
    • Tags common to all mobs see Template:Nbt inherit/mob/template
    • [Byte] 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.

Achievements

IconAchievementIn-game descriptionActual requirements (if different)Gamerscore earnedTrophy type (PS)
PS4Other
I am a Marine BiologistCollect a fish in a bucketUse a water bucket on any fish mob.20Bronze
OverkillDeal nine hearts of damage in a single hit.Damage can be dealt to any mob, even those that do not have nine hearts of health overall.30Bronze
It SpreadsKill a mob next to a catalystβ€”10Bronze
Over-OverkillDeal 50 hearts of damage in a single hit using the MaceDamage can be dealt to any mob, even those that do not have 50 hearts of health overall.20Silver

Advancements

IconAdvancementIn-game descriptionActual requirements (if different)
It SpreadsKill a mob near a Sculk CatalystKill any mob that drops experience near a sculk catalyst, with the sole exception of the ender dragon. Mobs that drop no experience are ignored for this advancement.
Tactical FishingCatch a Fish... without a Fishing Rod!Use a water bucket on any fish mob.

Advancements that apply to all mobs:

History

Development

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.
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!"

Java Edition

Java Edition
1.1318w08b Added cod as a mob.
Cod have 20HP❀️ Γ— 10 health.
18w10aThe health of cod has been changed to 3HPβ€οΈπŸ’”.[2]
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

Bedrock Edition
1.4.0beta 1.2.14.2 Added cod.
1.13.0beta 1.13.0.9Cod now drop experience when killed.
1.16.100beta 1.16.100.52Cod now drop the cooked version of their item drops, if killed while on fire.
1.18.0beta 1.18.0.21Cod now only spawn between y=50 and y=64.
1.19.10Preview 1.19.10.23The max health of cod has been changed to 3HPβ€οΈπŸ’”.

Legacy Console Edition

Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU69 1.761.761.76Patch 38 Added cod.

Minecraft Education

Minecraft Education
1.4.0 Added cod.

Issues

Issues relating to "Cod" are maintained on the bug tracker. Issues should be reported and viewed there.

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

Gallery

Render

Screenshots

Textures

Other

See also

References

  1. ↑ MC-126819 – "fish bouncing and suffocating on top of the cauldron which fills with water" resolved as "Won't Fix"
  2. ↑ MC-126091 β€” Fish mobs have 20 health β€” resolved as "Fixed".

External links

  • Cod article on Wikipedia

Navigation