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. Every tree in these biomes have 10% chance to have bee nest with bees on it. Because of this bee hives are commonly found in flower forest because of its tree density, opposite to the few scattered trees found in plains.

Growing trees
Bee nests, with a few bees already in them, have 10% 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.

If pollen partcles that bee produce fall on crop, the crop will advance to another growth stage, similar to bone meal. Each bee can fertilize only several times each time they have pollen.

When a bee that had pollen leave its bee nest or bee hive the honey level of the nest/hive is increased by one. Bees will stay in their nest or hive for at least 2400 game tick before coming back out.

Bees will follow players holding flowers.

Bees that enter and then leave their nest/hive keep their data (name, health etc.)

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. Bee stingers will stick in the player, much like when the player is hit by an arrow.

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 any 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.
 * Others insects are silverfishes and endermites.
 * Bees can be leashed, even when angered.
 * Bees are another mob in Minecraft that can attack in groups. The others are silverfish, endermites, wolves, zombie pigmen, and dolphins.
 * Bees are the second suicidal mob in Minecraft, after the creeper, and the first to be added in nearly a decade.
 * Bees can spawn with Vexes riding them or with saddles using commands.