Pufferfish

Pufferfish are passive mobs found in oceans. They defend themselves by dealing damage and inflicting poison to nearby players and certain mobs.

Spawning
$$, pufferfish spawn in groups of 1-3 in warm, lukewarm and deep lukewarm ocean biomes. $$, 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
Pufferfish 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. Pufferfish are technically passive mobs but going near one when 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.

A pufferfish inflicting damage to a mob via touching provokes that mob to retaliate.

ID




Entity data
Pufferfish have entity data associated with them that contains various properties.

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.
 * Pufferfish's damage and poison time is directly related to it's current PuffState. The PuffState data value can be changed using the /data command.
 * There are only three textures for the three different PuffState data values in Minecraft. Exceeding PuffState 2 does not visually increase the pufferfish size, but does create a bigger shadow on the ground.
 * Pufferfish in real life aren't venomous, their spikes are used for intimidation purposes and not to inject toxins. Their flesh is still poisonous however, and this is reflected accurately in-game.
 * All sizes of pufferfish’s texture are contained in the same texture file.