Cod

From Minecraft Wiki
Jump to navigation Jump to search
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 that are a source of raw cod and, occasionally, bones[Bedrock Edition only] or bone meal.‌[Java Edition only]

Spawning

[edit | edit source]
Cod spawns in:
Category:
Water ambient‌[JE only]
Water creature‌[BE only]
Java EditionBedrock Edition
Spawn areaSpawn weightSpawn chanceGroup sizeSpawn weightGroup size
Deep Ocean1010100%3–6754–7
Ocean1010100%3–6754–7
Cold Ocean153050%3–6754–7
Deep Cold Ocean153050%3–6754–7
Lukewarm Ocean154533.33%3–6754–7
Deep Lukewarm Ocean83821.05%3–6754–7
Deep Frozen Ocean754–7
Frozen Ocean754–7

Java Edition

[edit | edit source]

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

[edit | edit source]

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

[edit | edit source]

On death

[edit | edit source]

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

[edit | edit source]

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.

Cod cannot be bred, but only spawn in designated biomes.

Weaknesses

[edit | edit source]

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.

Axolotls always attack cod on sight.

Sounds

[edit | edit source]

Java Edition:

Sounds
SoundClosed captionsSourceDescriptionIdentifierTranslation 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
SoundClosed captionsSourceDescriptionIdentifierTranslation keyVolumePitch
​ ?Friendly MobsWhen a cod diesmob.fish.hurt​ ?1.00.8–1.2
​ ?Friendly MobsWhen a cod is damagedmob.fish.hurt​ ?1.00.8–1.2
​ ?Friendly MobsWhile a cod is on landmob.fish.flop​ ?1.01.0
​ ?Friendly MobsWhile a cod is swimmingmob.fish.step​ ?0.151.0

Data values

[edit | edit source]

Java Edition:

NameIdentifierEntity tags Translation 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 FamilyTranslation key
EntitySprite cod.png: Sprite image for cod in Minecraft Codcod112 aquatic
cod
fish
entity.cod.name

Entity data

[edit | edit source]

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

Java Edition:

Main article: Entity format

Bedrock Edition:

See Bedrock Edition level format/Entity format.

Achievements

[edit | edit source]
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 by right-clicking.20Bronze
It SpreadsKill a mob next to a 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 achievement.10Bronze

Achievements that apply to all mobs:

Advancements

[edit | edit source]
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

[edit | edit source]

Development

[edit | edit source]
June 28, 2010 Notch 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, 2010 Fish 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, 2012 Fish were jokingly teased in the fake snapshot 12marc40awesome, along with coral and "fish blocks".
April 13, 2013 When 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, 2013 During 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

[edit | edit source]
Java Edition
1.1318w08b Added cod as a mob.
Cod have 20HP❤️ × 10 health.
18w10a The health of cod has been changed to 3HP❤️💔.[2]
18w15a Cod now drop the cooked version of their item drops, if killed while on fire.
1.13.118w31a Cod now have a 5% chance of dropping bone meal when killed.
1.1821w40a Cod now only spawn between y=50 and y=64.

Bedrock Edition

[edit | edit source]
Bedrock Edition
1.4.0beta 1.2.14.2 Added cod.
1.13.0beta 1.13.0.9 Cod now drop experience when killed.
1.16.100beta 1.16.100.52 Cod now drop the cooked version of their item drops, if killed while on fire.
1.17.10beta 1.17.10.22 Cods no longer can be picked up with an empty bucket.
1.18.0beta 1.18.0.21 Cod now only spawn between y=50 and y=64.
1.19.10Preview 1.19.10.23 The max health of cod has been changed to 3HP❤️💔.

Legacy Console Edition

[edit | edit source]
Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU69 1.761.761.76Patch 38 Added cod.

Minecraft Education

[edit | edit source]
Minecraft Education
1.4.0 Added cod.

Issues

[edit | edit source]

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

Trivia

[edit | edit source]
  • A cod in real life is any species of fish that belong in the genus Gadus, except for Alaska pollock which is the same genus but not called "cod".
[edit | edit source]

Render

[edit | edit source]

Screenshots

[edit | edit source]

Textures

[edit | edit source]

Other

[edit | edit source]

See also

[edit | edit source]

References

[edit | edit source]
  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".
[edit | edit source]
  • Cod article on Wikipedia
[edit | edit source]