Cod

Cod are passive mobs in Minecraft, they usually live in water that can be popular. You can find them in the oceans and are a good source of raw cod and sometimes bones‌ or bone meal‌.

Cod Minecraft Wiki

Cod Spawning

Java version

Spawn underwater in normal, cold and warm oceans, and their deep variations, in groups of 3-6, depending on the fish’s reproductive requirements.

Platform version

Cod spawns underwater
How the player 12-32 blocks in the:

  • normal ocean
  • cold
  • freeze
  • warm and
  • their deep variations
  • in groups of 4-7.

Also, cod spawns only on the surface; that is, there must be no spawnable block above the spawn location with a non-solid block on top.

Drop

Codfish drop the following things after death:

  • 1 raw cod or 1 cooked cod if killed on fire. This drop is not affected by Loot.[1]
  • 1 bone meal (5% chance)‌[Java version only]
  • 1–2 bones (25% chance)‌[Bedrock version only]
  • 1–3 experience, if killed by a tame wolf or by the player.

Behavior

In Minecraft, Cod tend to swim in schools (maximum nine per school).

The player can collect a cod using a bucket of water on it, which will give the player a bucket of fish. Cod placed in buckets does not appear naturally. It will empty the bucket, when that fish bucket is used on a block, put water with cod swimming in it.

An empty bucket can also be used.‌[Bedrock version only]

Weaknesses

  • It cannot survive outside of water.
  • They tip over on the outside of the water,
  • Like guardians for a while
  • Try to get back to the water until after 10 seconds
  • They start taking suffocation damage and die.

In the Bedrock Version, the fish emerges from the water while rotating and flipping. In cauldron water, they cannot swim or breathe. They can swim in, but cannot survive in flooded blocks, most notably flooded slabs and stairs.

In the Java Version, they are vulnerable to the Impaling enchanted weapon, which also affects other fish and aquatic life except drowning.

This is one of the best Mobs that MC Wiki has just updated