mojira.dev
MC-261691

Bees get stuck while trying to pathfind to inaccessible flowers

Bees select their flower target without checking if they can actually get to it. Since they prefer certain heights they can get stuck on targeting a further away flower that they can't reach instead of targeting one that is within reach (see attatchments) 

Linked issues

Attachments

Comments

skyrising

Specifically this happens because BeePollinateGoal.findNearestBlock prefers blocks on the layer below the bee over blocks on the same layer and then after the remainingCooldownBeforeLocatingNewFlower expires the bee will not have moved from its original position and find the same flower again, endlessly trying to get to the bottom flower without success.

Newell Henry Clark

So in other words, the issue is that, after failing to pathfind to the nearest block, the bee doesn't remember the blocks that it failed to pathfind to when choosing which block it should pathfind to next?

theGlotzerify

while selecting its target it prioritises certain y levels causing it to select a inaccessible flower. after their cooldown expires they just do the same search again which ended up with them selecting the wrong one. so they keep selecting the wrong target everytime the cooldown expires

theGlotzerify

coschevi

Community Consensus

Gameplay

Normal

Mob behaviour

1.19.4, 1.21

24w33a

Retrieved