Beehive

Bee hives and Bee nests are blocks that house bees.

Obtaining
Hives can be mined by any tool or by the player's fist, though they break faster with an axe. Bee nests will not drop anything unless mined with silk touch. If broken with a tool enchanted with Silk Touch, the bees will remain inside. Otherwise, they will come out of the hive and swarm the player unless a campfire is underneath it it.

Natural generation
Bee nests generate naturally on trees in flower forests, plains, and sunflower plains biomes.

Saplings
Bee nests have a chance of generating on the trunk of a tree when a sapling grows in flower forests, plains, and sunflower plains biomes.

Bee housing
The hives can house up to 3 bees at a time. Bees will fly into the nest at night, during rain and after pollinating to work.

Harvesting
Pollinated bees will fly into bee hives and start working for a while. When done, they will exit the hive, increasing the honey level by 1. When the honey level has reached 5, the block's appearance will change to be full of honey, and will produce dripping honey particles if suspended above the ground. If shears are on a full bee hive, it will drop three honeycombs. If an empty glass bottle is used on a full bee hive, it will fill the bottle with honey, giving a honey bottle. Any bees inside the hive when harvesting will become aggravated towards the player. If there is a lit campfire directly underneath the hive, the bees inside will not become aggravated when harvesting it.

Block entity
A bee hive has a block entity associated with it that holds additional data about the block.