Salmon

"You're not the only new explorer of the updated oceans, mind. We've filled the seas with new types of fish! Above is the delightful pufferfish, which filled me with delightful poison because I was too busy taking that screenshot to swim away in time :("

- Tom Stone

Salmon are common passive mobs found in oceans and rivers.

Spawning
Fish spawn underwater at a Y-level of 12–32.

Salmon spawn in groups of 3–5 in cold and frozen oceans, and their deep variants. Unlike the other types of fish, they also spawn in normal and frozen rivers regardless of Y-level. Salmon spawn in small, normal, and large sizes $$.

Drops
Salmon drop 1 of their item form when killed:


 * 1 (1  if killed while on fire),
 * 1 (5% chance)
 * 1 s (25% chance) if salmon size is small or medium.
 * 1-2 s (25% chance) if salmon size is large.
 * 1-2 orbs when killed by a player or tamed wolf.

Behavior
Salmon tend to swim in schools of fish (a maximum of six salmon per school). Salmon are able to swim up approximately 4-5 blocks in waterfalls.

The player may collect salmon by a water bucket on it, which gives the player a bucket of fish. Fish placed with buckets will not despawn naturally. When that fish bucket is against a block, it empties the bucket, placing water with that fish swimming in it. An empty bucket may be used as well.

Weaknesses
None of the fish are able to survive out of water. Outside of water, they flop around like guardians for a while until eventually they start to suffocate and die like squid. Cod, salmon and tropical fish will flip around on their sides. In Bedrock Edition and Legacy Console Edition, they will rotate when flipping. Fish cannot swim or breathe in cauldron water.

Fish have a weakness to weapons that have the Impaling enchantment, which also affects squid, turtles, guardians, elder guardians and dolphins.

Entity data
salmon have entity data associated with them that contain various properties of the mob.