Bee

Bees are neutral mobs that will sting the player, in a swarm, if provoked and inflict poison. They can spawn in any difficulty. They do not attack in peaceful.

Natural generation
Bees spawn in groups around bee nests hanging from trees, found in, and  biomes.

Growing trees
Bee nests, with a few bees already in them, have a chance to spawn on trees grown in, and  biomes.

Behavior
Bees fly around their nests, being attracted by flowers. After circling a flower for a while a bee can collect pollen, which changes the texture of a bee to include pollen spots on its back. Bees with pollen also have pollen particles coming off them.

Once bees have collected pollen they can pollinate crops by flying over it, causing the crop they pollinated to advance one growth stage.

When a bee with pollen returns to its bee nest or bee hive the nectar level of the nest/hive is increased by one.

Bees will follow players holding flowers.

Despite being arthropods in real life, bees are not considered arthropods in Minecraft and do not take increased damage against the Bane of Arthropods enchantment.

Attacking
Bees will attack and swarm the player as a group when angered, much like wolves and zombie pigmen. Angered bees cause their eye texture to turn red. All bees nearby are angered when one individual is attacked, or when a nest is destroyed. Collecting a honeycomb or a honey bottle from a nest or hive will cause the bees from said nest or hive to leave and swarm the player. One can prevent the bees from swarming the player by placing a campfire below the hive.

After attacking and poisoning the player, bees lose their stinger and die within 50–60 seconds. Bees do not attack the player if they have already lost their stinger. Bees can, therefore, only attack once.

Bees will also attack other mobs when damaged, for example when a skeleton shoots at a bee, the swarm attacks.

Breeding
If bees are given a flower, they enter love mode and pair off to create baby bees, granting the player a small amount of experience. The parent bees have a cooldown of 5 minutes before they can breed again. All babies obtained by breeding take 20 minutes to grow up. The growth of baby bees can be slowly accelerated using flowers; each use takes 10% off of the remaining time to grow up.

Entity data
Bees have entity data associated with them that contains various properties of the mob.

Trivia

 * Bees are the first flying insects and first flying neutral mobs introduced to Minecraft.
 * Bees can be leashed, even when angered.