Cod

Jump to navigation Jump to search
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

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

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]

Item Roll Chance Quantity (Roll Chance)
Default Looting I Looting II Looting III
Invicon Raw Cod.png: Cod drops Raw Cod with quantity 1Raw Cod[d 1]100%1111
Invicon Bone Meal.png: Cod drops Bone Meal with quantity 1Bone Meal(JE)5%1111
Invicon Bone.png: Cod drops Bone with quantity 1-2Bone(BE)25%1–22–43–64–8
  1. Dropped as cooked cod if on fire when killed.
  • 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. An empty bucket may be used as well.‌[Bedrock Edition only]

Cod can not 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.

Sounds[edit | edit source]

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

[hide]Sounds
SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
distance
NoneNone[sound 2]Friendly CreaturesRandomlyentity.cod.ambientNone[sound 2]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
​SplashesFriendly CreaturesWhile 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. Jump up to: a b NONE

Bedrock Edition:

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

ID[edit | edit source]

Java Edition:

NameIdentifierEntity tags[hide]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 [hide]Translation key
EntitySprite cod.png: Sprite image for cod in Minecraft Codcod112entity.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]

[hide]
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 Mace20Silver

Advancements[edit | edit source]

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

[hide]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.
[hide]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.
[hide]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♥♥.
[hide]Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU69 1.761.761.76Patch 38 Added cod.
[hide]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 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[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".

External links[edit | edit source]

  • Cod article on Wikipedia

Navigation[edit | edit source]