Pufferfish

Pufferfish are passive mobs found in oceans. They defend themselves by dealing damage and inflicting poison to nearby players (if not in Peaceful difficulty) 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, an axolotl, 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 semi-puffed or fully puffed inflicts the player/mob with two or five seconds of based on the inflation level, 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 as long as a threat is out of range. If the player/mob leaves the radius while pufferfish is in its semi-puffed stage, it deflates back to normal.

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 other than creeper and ghast via touching provokes that mob to retaliate.

In Peaceful difficulty, pufferfish do not inflict damage or poison to player.

ID




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




 * See Bedrock Edition level format/Entity format.
 * See Bedrock Edition level format/Entity format.

Trivia

 * In real life, pufferfish use their spikes for intimidation purposes and not to inject venom. Their flesh is toxic, which is reflected accurately in-game.
 * Pufferfish's damage and poison time is directly related to its current PuffState data value, which can be changed using the /data command.
 * There are 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. All sizes of pufferfish textures are contained in the same texture file.