Closed gecko10000 closed 1 year ago
I've filed a request with Spigot to enhance the API: https://hub.spigotmc.org/jira/browse/SPIGOT-6428 Trying to do this manually will be incredibly difficult.
Are you in the correct biome? As not in all biomes nest will generate
Are you in the correct biome? As not in all biomes nest will generate
Bee nests generate in any biome, and it works in the exact same location with bonemeal.
Would it maybe help to use Block#applyBonemeal instead? That would most likely grow the tree correctly with the 5% bee nest chance if applicable.
That's a nice new API. I changed the code to use it. It's a bit weird because it never returns true, which seems like a bug to me. As a result, I just apply bonemeal 100 times and hope that the tree grows. Also, I cannot tell yet whether the tree has grown. Maybe I can check if the sapling is now wood... Anyway, @levtey give the snapshot a try and see if it generates bees nests!
That does, in fact, work. Using it on production server now
Thanks for closing and i'm glad it works! I am going to keep it open though because I want to see if I can make the sounds and animations work before calling it done.
Trees can grow outside of the border with the flag set to false with this change, just want to let you know.
Interesting. Maybe by using this API there is no firing of the associate Bukkit event.
Description
Describe the bug
Bee nests are not generating from twerking on oak and birch with the 5% chance that they do when grown naturally or with bonemeal within 2 blocks of a flower.
Steps to reproduce the behavior
Use bonemeal to grow saplings near a flower until a bee nest is obtained; do the same with twerking and observe no results.
Expected behavior
Bee nests should generate like they do in vanilla
Environment
Output of
/bbox version
(Mandatory)Additional context (Optional)
I believe this is because World#generateTree does not by default check nearby blocks for flowers and generate bee nests based on that.