Cod

This article is about the mob. For the food items, see Raw Cod and Cooked Cod. For other uses, see Fish (disambiguation).
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
Deep Frozen Ocean

Usable items

Cod are common bucketable aquatic passive mobs found in oceans, 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

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–11201200–11201200–11201200–1120120

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 Meal01920 (95.00%)1920 (95.00%)1920 (95.00%)1920 (95.00%)
1120 (5.00%)120 (5.00%)120 (5.00%)120 (5.00%)
Average120 (0.05)120 (0.05)120 (0.05)120 (0.05)

Killed1
ItemExpected Drop
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–114140 / 2–3135013200 / 3–52710027250 / 4–77257750

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)
Bone034 (75.00%)3750 (74.00%)73100 (73.00%)1825 (72.00%)
114 (25.00%)000
2013100 (13.00%)00
3013100 (13.00%)27400 (6.75%)0
40027200 (13.50%)7150 (4.67%)
50027400 (6.75%)775 (9.33%)
6000775 (9.33%)
70007150 (4.67%)
Average14 (0.25)1320 (0.65)2725 (1.08)7750 (1.54)

Killed1
ItemExpected Drop
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.‌

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:
Cod use the Friendly Creatures sound category for entity-dependent sound events.

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.death1.00.8-1.216
​Cod hurtsFriendly MobsWhen a cod is damagedentity.cod.hurtsubtitles.entity.cod.hurt1.00.8-1.216
​Cod flopsFriendly MobsWhile a cod is on landentity.cod.flopsubtitles.entity.cod.flop0.30.8-1.216
​SplashesFriendly MobsWhile a cod is swimmingentity.fish.swimsubtitles.entity.fish.swim0.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 Creatures‌
Friendly Mobs​
When a cod diesmob.fish.hurt1.00.8-1.2
Friendly Creatures‌
Friendly Mobs​
When a cod is damagedmob.fish.hurt1.00.8-1.2
Friendly Creatures‌
Friendly Mobs​
While a cod is on landmob.fish.flop1.01.0
Friendly Creatures‌
Friendly Mobs​
While 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
It SpreadsKill a mob next to a catalyst10Bronze
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
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)
A Throwaway JokeThrow a Trident at something.
Note: Throwing away your only weapon is not a good idea.
Hit a mob with a thrown trident.
AdventureAdventure, exploration and combatKill any mob, or be killed by any living entity.
ArbalisticKill five unique mobs with one crossbow shotArmor Stand also counts for this advancement.
This is a hidden advancement, meaning that it can be viewed by the player only after completing it, regardless of if its child advancement(s), if any, have been completed.
It SpreadsKill a mob near a Sculk Catalyst Mobs that drop no experience as well as the ender dragon are ignored for this advancement.
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.
Tactical FishingCatch a Fish... without a Fishing Rod!Use a water bucket on any fish mob.
Take AimShoot something with an ArrowUsing a bow or a crossbow, shoot a mob with an arrow, tipped arrow, or spectral arrow.

History

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.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
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
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU69 1.761.761.76Patch 38 Added cod.
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".
    • Interestingly, cod in Minecraft have two dorsal fins while all real members of the genus Gadus have three dorsal fins.

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