Fish (mob)

Fish are passive mobs that live in oceans. They come in 3 variants: cod, salmon, and puffer fish. Each variant has their own spawn egg.

Spawning
The cod variant spawns in cold oceans, oceans, and lukewarm oceans. Puffer fish spawn in only lukewarm and warm oceans. Salmon spawn in frozen and cold oceans, and unlike the other two variants, can also spawn in rivers.

Drops
Fish will drop their item form when killed. For example, when a cod is killed, it will drop raw cod.

Behavior
All 3 types of fish will eventually die if put outside of water.

Cod and salmon tend to swim in groups of several fish (a maximum of nine cod or six salmon per shoal).

Pufferfish sometimes puff up. Upon contact with the player, fully puffed up pufferfish inflict a few seconds of poison.

Salmon will jump up waterfalls.

Fish bucket
a water bucket on a fish will cause the water bucket to now contain the fish. If you the fish bucket again, it will release the fish.

The 3 variants of fish buckets correspond to the 3 variants of fish mobs. For example, a water bucket with a cod fish in it is called a cod bucket.