Pufferfish

Pufferfish are uncommon neutral mobs found in oceans. They deal damage and inflict poison to nearby players and certain mobs. They do not attack the player/mob on sight, but they inflict poison of a player/mob gets too close without provoking it in any way.

Spawning
$$, pufferfish spawn in warm, lukewarm and deep lukewarm ocean biomes in groups of 1-3. $$, fish spawn underwater at around 12–32 blocks away from the player in groups of 3–5 in warm ocean biomes. Pufferfish 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
Fish drop 1 of their item form when killed:


 * 1
 * 1 (5% chance)
 * 1-2 s (25% chance)
 * when killed by a player or tamed wolf.

Behavior
Pufferfish inflate themselves when approached by the player, most mobs, and armor stands.

The player may collect a fish by a water bucket on it, giving the player a bucket of pufferfish. Fish placed with buckets do 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.

Unlike other fish, pufferfish don't swim in schools.

Weaknesses
Like other fish, pufferfish cannot survive out of water. Outside of water, they flop around like guardians for a while until they start suffocating, and then die like squid. $$ they rotate when flopping. Fish cannot swim or breathe in cauldron water.

All fish are vulnerable to weapons that have the Impaling enchantment, which also affects squid, turtles, guardians, elder guardians, and dolphins.

Defenses
A pufferfish inflates when approached by a player in Survival or Adventure mode, a drowned, or any non-water mob within a 5×5×5 volume around the fish, going from unpuffed, then semi-puffed, to fully puffed, or instantly to the fully-puffed state. Going near a pufferfish when it is fully puffed inflicts the player/mob with seven seconds of, and touching one in its puffed or semi-puffed form deals damage separate from the poison. Pufferfish also instantly inflate to their fullest form after taking any kind of damage. After inflating, they slowly deflate to their normal shape. Undead mobs are unaffected by the poison effect, but still take damage when they come into contact with pufferfish.

Entity data
Pufferfish have additional entity data, beyond what other fish have.

Trivia

 * The pufferfish can poison the player in creative mode if another entity causes it to puff up.
 * $$, the pufferfish plays the same sound effect as other fish mobs.