Panda

A panda is a rare mob that resides in jungles whose behavior is neutral, but can be sometimes be passive or hostile. Pandas that enter love mode and baby pandas are passive to players. Adult pandas are neutral to players. Pandas are hostile to players that breed two pandas too close.

Spawning
Pandas spawn in groups of 1–2 in bamboo 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.

5% of pandas spawn as babies.

$$, pandas can spawn at light level 7 or above in jungle biomes and have a higher spawn rate in bamboo jungle biomes.

Behavior
Pandas act similarly to other neutral mobs; they also attack when hurt, but only once, similar to llamas, and bees. Pandas do not attack in Peaceful difficulty. They also move faster in water than other land mobs, similar 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 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 have one private inventory.

Pandas can be ridden by baby zombie variants.

If a panda is being attacked by a player near a villager, that villager displays 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. $$, if a player is holding bamboo, a lazy panda stops lying on its back and starts following that player.
 * 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 cause harm or kill the panda as it can accidentally roll off a cliff or another high altitude.
 * Aggressive pandas:
 * Are neutral, 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 becomes hostile toward the attacker.
 * Are 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. Also, if the player feeds two pandas too close, they instead bleat and become hostile toward the player.

Genetics
Each panda has two hidden values called "genes" or "alleles", similar to biology. There is the 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 genes 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 genes. 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.


 * The only way to know the hidden gene of a panda is to use the command : or using third-party NBT editors.

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. This is the rarest variant.

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

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

Upon successful breeding, is dropped.

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

Sounds

 * foot=1}}

ID




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

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.
 * This was also done with dolphins.
 * The brown panda, known as the Qinling panda, is actually a subspecies of the giant panda.
 * 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.