Panda

A panda is a mob that resides in jungles.

Spawning
Pandas spawn in groups of 1–2 in jungle biomes at the surface on grass blocks with a (minimum) two-block space above them at a light level of 9 or more, but are rarer than other jungle mobs. They spawn with a randomized personality, with the normal one being the most common and the brown variant being the rarest.

In Bedrock Edition pandas can spawn at light level 7 or above in jungle biomes and have a higher spawn rate in bamboo jungle biomes. 5% of pandas spawn as babies.

Behavior
Pandas act similarly to other passive mobs; they wander aimlessly, avoiding falling off cliffs high enough to cause fall damage, and stay out of water or lava, unless they roll over an edge. They also move faster in water than other land mobs, similarly to polar bears. Pandas follow any player who is carrying bamboo and stop following if the player moves beyond approximately 16 blocks away. They also whimper if a thunderstorm is happening in the area. Adult pandas seek out bamboo and cake items to eat.

Baby pandas sometimes sneeze, which rarely drops a slime ball and makes nearby adult pandas jump. They also occasionally roll over and jump around.

Pandas become aggressive when hurt. When hit, a panda panics for few seconds before trying to attack the attacker only once, similar to llamas.

Pandas can be ridden by baby zombie variants..

Pandas cannot be attached to a lead.

If a panda is being attacked by a player near a villager, that villager will display angry particles.

Personalities


Pandas have different personalities: either normal, lazy, worried, playful, aggressive, weak, or brown.


 * Normal pandas:
 * Do not have unique personality actions.
 * Lazy pandas:
 * Lie on their backs.
 * Are slower than normal pandas, making them the slowest land mob in the game.
 * Do not follow a player who is holding bamboo while they're lying on their back.
 * Worried pandas:
 * Avoid the player and most hostile mobs, except slimes, magma cubes, ghasts, shulkers, phantoms and the ender dragon.
 * Shake and hide their faces during thunderstorms.
 * Do not eat bamboo or cake items on their own.
 * Playful pandas:
 * Roll over and jump around even as adults. The ability to roll may sometimes may cause harm or kill the panda as it can accidentally roll off a cliff or another high altitude.
 * Aggressive pandas:
 * Unlike other pandas, when hit, aggressive pandas attack the player and other mobs continuously until the target dies or goes beyond detection range. It also doesn't panic when harmed.
 * When nearby pandas are attacked, aggressive pandas become hostile toward the attacker.
 * Are very slow, but have reach rivaling that of the player.
 * Weak pandas:
 * Tend to sneeze more often as babies than regular baby pandas.
 * Have 10 health instead of 20.
 * Brown pandas:
 * Do not have unique personality actions, but are brown and white instead of the usual black and white.

Breeding
The panda is the only animal to have extra breeding conditions. To enter love mode, there must be at least eight bamboo blocks within a five-block radius of both pandas. Once that requirement is met, feeding them bamboo causes them to mate, producing a baby panda. If a panda is fed without a sufficient amount of bamboo nearby, it sits and eats the bamboo, but does not enter love mode.

Genetics
Each panda has two hidden values called "genes" or "alleles"; similar to biology, there is a main gene and a hidden gene. Normal, aggressive, lazy, worried, and playful personalities are dominant traits, and weak and brown personalities are recessive traits. A dominant trait always has priority over a recessive trait. If both the main and hidden genes are dominant, the main gene has priority and presents itself as the panda's personality. Being recessive, weak and brown personalities occur if both the main and hidden genes of a panda are recessive genes. However, if the main gene is recessive and the hidden gene is not the same gene, then a normal personality results. To get a brown or weak panda, both the main and hidden gene must be both brown or weak.

When two pandas breed, each one passes one of their genes to their children, who then randomly mix both obtained genes as their respective main and hidden gene. There is also a $1/32$ chance for each gene of the baby to mutate into another gene. Mutations have different probabilities to mutate into the different genes, these probabilities can be found in the table underneath. These mutation probabilities also apply to spawned (not bred) pandas for their main and hidden genes.

Appearance


The appearance of pandas depends on their personality:
 * Aggressive pandas have angry eyebrows.
 * Lazy pandas have a smiling face.
 * Weak pandas have teary eyes and snotty noses.
 * Worried pandas have 'puppy' eyes similar to tamed wolves.
 * Playful pandas have their tongues out.
 * Normal pandas have a frowning face.
 * Brown pandas have brown and white fur, and a frowning face.

Pandas are usually black and white, but there is a rare brown and white variant.

Drops
Upon death, adult pandas will drop:
 * 1
 * 0-2, increased 1 per level by Looting.
 * 1–3 s, if killed by a tamed wolf or the player.

Baby pandas have a chance of dropping 1 when they sneeze.

Like other baby animals, killing a baby panda yields no items or experience.

Data values
Pandas have entity data associated with them that contain various properties of the mob.

Trivia

 * To create the in-game sounds for pandas, Mojang's lead sound designer, Samuel Åberg, went to Guangzhou, China, to record real-life pandas.
 * The brown panda, known as the Qinling panda, is actually a subspecies of the giant panda.
 * Pandas are the second type of bear to be added into the game, with the first being the polar bear.
 * The lazy panda is the slowest land mob in the game (not counting status effects such as Slowness).
 * The rarest mob $5/16$ is a baby husk with equipment and armor riding a brown panda, which has a 2.88×10−13 percent (one in 3.47 2 trillion) chance of spawning.