Minecraft wiki entry for Beehive, associated text: Harvesting from a beehive or bee nest causes any bees inside it to become aggravated toward the player, unless there is a fire directly beneath it or a lit campfire within five blocks below it with no obstruction between them. Placing a carpet above the campfire prevents bees from taking fire damage while hovering over it. In Java Edition, the smoke coming through the carpet also calms the bees. In Bedrock Edition a carpet is treated as an obstruction that removes the calming effect of the campfire's smoke. Without a carpet, the bees can still avoid fire damage if the campfire is placed 4–5 blocks below the nest.