Note: this issue was fixed for most mobs in 1.17.0 or 1.17.10 (MCPE-41092). It was mentioned with respect to bees specifically on MCPE-60252 (this comment) but was not addressed in the fix applied for that report. Probably the fix for MCPE-41092 was only done for "minecraft:behavior.random_stroll"
. Bees use "minecraft:behavior.random_hover"
. See comment below for the triggering components.
Steps to reproduce
In a flat world, set up a repeating command block with {{/execute @e[type = bee] ~~~ setblock ~ 3 ~ concrete 3}
Spawn a bunch of bees at the command block.
Expected result
Bees spread out in all directions evenly.
Actual result
Bees spread out toward the northwest. In the screenshot below, pink marks pigs and yellow marks bees after just a minute or two, using the test world from MCPE-41092 modified to test bees instead of chickens. All spawned at the center block.
[media]Linked issues
relates to 2
Attachments
Comments 4
In 1.18.30.23 previews bees still have this NW bias but allays do not, even though they both use behavior.random_hover. So the bug must not be in that behavior.
The NW bias seems to come from either the home component or the move_towards_home_restriction component. The bias can be triggered on any mob by giving it this data from the bee.json:
"minecraft:home": {
"restriction_radius": 22,
"home_block_list": [
"minecraft:bee_nest",
"minecraft:beehive"
]
},
"minecraft:behavior.move_towards_home_restriction": {
"priority": 9
},
Can confirm, I haven't had time to report this so this is why I'm confirming this issue so fast.