The bug
Bees run right into solid blocks when pursuing flowers, and they usually get stuck. This didn't happen in earlier 1.15 versions.
Related issues
is duplicated by
Attachments
Comments


They seem to generate a corrupted path through the occupied block. If you push them into another space they recalculate their path and seem to get unstuck.

In 1.16 Pre 3
Can confirm in 20w51a.
Can confirm in 21w03a.
Can confirm in 21w05a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 1.18.2 and 22w12a.
This is especially prevalent in mangrove swamps.

I second that, this issue is really bad in mangrove swamps.
Can confirm in 1.19.2.
[media]
A lot of the pathfinding issues with bees seems to happen because the bee is one block lower than it thinks it is. In particular, I have frequently observed bees getting stuck below bee nests and bee hives. Pushing the bee up one block with a piston will make the bee enter the hive or nest.
This one block distance is not a precise measurement. It is possible that it is half a block.