mojira.dev
MC-313502

Dispenser harvesting beehives resets bees ticks_in_hive

Summary

If you have a beehive of honey level 5, and some bees inside that have been there for a while, if harvested by hand (with a campfire) nothing happens to the bees inside, but if you use a dispenser to harvest the hive it causes all the bees' ticks_in_hive to reset to 1, loosing all the progress that the bees have spent while inside the hive.

Expected behavior

Harvesting the honey by hand (with campfire) or with a dispenser should not produce an observable difference, and the bees ticks_in_hive should not be reset unexpectedly.

Technical breakdown

  • For manual harvest, BeehiveBlock#useItemOn checks for a CampfireBlock to potentially release angry bees, but if it is present it only calls resetHoneyLevel without releasing any bees → This keeps their ticks_in_hive untouched.

  • For Dispenser, FillBottleDispenseBehavior calls releaseBeesAndResetHoneyLevel instead of resetHoneyLevel, which causes the bees to be ejected for less than a tick, since right after the dispenser finishes its block tick, they get entity ticked, realize they are still full of honey and instantly go back into the hive, so they do not visually appear outside but you can hear the sound of bees exiting + entering the hive

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media]

Azyrod_

(Unassigned)

Unconfirmed

26.4 Snapshot 10

Retrieved