mojira.dev
MCPE-143979

Bees have northwest wandering bias

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

  1. In a flat world, set up a repeating command block with {{/execute @e[type = bee] ~~~ setblock ~ 3 ~ concrete 3}

  2. 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

Attachments

Comments 4

Can confirm, I haven't had time to report this so this is why I'm confirming this issue so fast.

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
            },

I haven't confirmed by exhaustive testing (that's your job), but bees seem to still have a (mild?) northwest bias as of 1.20.4 with experiments for bundles and 1.21 features enabled.

GoldenHelmet

(Unassigned)

637222

Confirmed

Multiple

1.21.80.25 Preview, 1.18.30.23 Preview, 1.14.30 Hotfix, 1.17.32, 1.18.2 Hotfix, 1.18.12 Hotfix, 1.19.2 Hotfix, 1.19.51, 1.20.0

Retrieved