Bees despawn. they are enclosed and so have not wandered off. the bees were a mix of bees spawned on tree growth and bees that were bred from those. They did not disappear when logging off/on, so I think it was due to distance of >128 blocks from player. Bees are not in spawn chunks.
code analysis by @unknown here
Attachments
Comments 56
this world was converted from a 1.16.4 java version when 1.17 was released. the bees were collected when the version was 1.16 and the bee nests were placed when the version was 1.17, the bees came out and were bred from there
I have being observing my bees, it look like the bees disapear each time i activate de automatic scisors in order to take honeycomb.
Please look the picture, i dont know how it happens:
[media]@@unknown
Thank you for the analysis, but it depends on an assumption that block entity is stored in POI chunk. This is incorrect - POI manager keeps only positions. It's bee AI goal will request block entity and they always are supposed to come from loaded chunk.
If you are able to observe call to `blockEntityChanged` for unloaded chunk, it probably is older and more dangerous issue than just bees, because we somehow have inconsistency in chunk map. I'd say it would warrant a separate issue.
As for other reporters since this bug was closed, please specify if you have tried do empty the beehive. If you still hear buzzing sounds, this might be the case.
Actually @boq, you are probably correct. Having a block entity accessed at the wrong time would also explain this bug: https://bugs.mojang.com/browse/MC-235967
I will look into it, if I am able to make a block entity tick at an incorrect time, I will open a new bug report.
I am not sure why, but I am no longer able to replicate this in 22w03a at all.
I had a unit test setup to test it and its not even able to replicate it once anymore.
What I did notice tho is that when there is no glass around the hives. Bees do often go far away from the hives, which I then noticed MC-190261
My setup was next to an ocean, and I saw many bees kill themselves due to that pathing bug.
I guess its also a light issue that bees can just pathfind away from home. Although the main problem of them just vanishing is fixed. The bees duplicating is not tho
this is a single player local world