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.

Pufferfish sometimes puff up.

Fish bucket
a fish with a water bucket in your hand 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.