mojira.dev
MC-306193

Bee nests cannot generate on trees from saplings planted near potted flowers

The bug:

Bee nests cannot grow from growing birch saplings if the nearby flower is potted. There is a 5% chance of a bee nest generating on the grown tree when it is grown near a small flower. Across 336 events (amount of saplings tested in my video), a 5% probability will happen at least once 99.9999967256% of the time (effectively guaranteed).


Steps to reproduce the issue:

  1. Place a small flower

  2. Plant a birch sapling within two blocks of it

  3. Wait for the sapling to grow into a tree, a high random_tick_speed is recommended

  4. Repeat steps 1-3 until a bee hive appears

  5. Now use a potted small flower instead and repeat steps 2-3 multiple times, notice that a bee nest will never generate


Expected result:

Bee nests can generate from saplings grown near potted plants.


Actual result:

Bee nests never generate from saplings grown near potted plants.

Attachments

Comments 3

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

[media]

It appears that this issue stems from net/minecraft/world/level/block/grower/TreeGrower, which has the following code:

   private boolean hasFlowers(final LevelAccessor level, final BlockPos pos) {
      for (BlockPos p : MutableBlockPos.betweenClosed(pos.below().north(2).west(2), pos.above().south(2).east(2))) {
         if (level.getBlockState(p).is(BlockTags.FLOWERS)) {
            return true;
         }
      }

      return false;
   }

This scans a 5x5x2 area around the sapling and returns true if a #minecraft:flowers block is within that area. Potted flowers are separate blocks that are under #minecraft:flower_pots, so they never get checked.

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

phizlip

(Unassigned)

Confirmed

(Unassigned)

1.21.11, 26.1 Snapshot 6

Retrieved