placing a full beehive

Started by TheRidiculousR on

Topic category: Help with modding (Java Edition)

Last seen on 11:12, 13. Jul 2024
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
placing a full beehive

Hello, I have been trying to make custom trees with beehives.
instead of tree features with decorators, i use the condition procedure to run custom code which generates a tree that wouldnt be possible with normal features.
unfortunately, if i try to place a full beehive using "Place NBT structure" , it doesn't get placed at all during worldgen.
I tried to instead place the beehive normally and set NBT text tag "Bees" to [{EntityData:{id:"minecraft:bee"}},{EntityData:{id:"minecraft:bee"}},{EntityData:{id:"minecraft:bee"}}],
but this actually puts the tag in "NeoForgeData:{Bees}" which is not my goal.
If i instead use "Execute Command /" data modify block ~ ~ ~ Bees set value [{EntityData:{id:"minecraft:bee"}},{EntityData:{id:"minecraft:bee"}},{EntityData:{id:"minecraft:bee"}}],
once again the command does not even run during world gen, but it does work if i run the procedure by placing my sapling.
lastly I tried to summon 3 bees in front of the hive, then give the bees a custom NBT tag, then in a seperate OnLoadedEntityUpdateTick global trigger procedure check for nearby hives and set the bee's HivePos NBT value to the location of the empty hive.
this once again, works when placing the sapling but not during worldgen. the bees simply do not spawn.

it seems like most world-related procedure actions do not happen at all during world gen stuff, is there any other way I could place a beehive with bees in it?
the last idea i have is to make several global values storing the location of generated beehives, and a worldUpdateTick procedure that puts the bee NBT in the hives at those locations, but this would be a very flawed solution.

if anyone has any idea how i could manage to spawn bees during worldgen or just place a filled beehive, please tell me 

Last seen on 11:12, 13. Jul 2024
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I will attempt to fixit by…
Thu, 06/20/2024 - 14:09

I will attempt to fixit by generating tree trunks with beehives with a static height of 2, it wont always match the tree height but at least it would never be too high 

Last seen on 11:12, 13. Jul 2024
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this solution does not work,…
Fri, 06/21/2024 - 15:14

this solution does not work, the beehives dont actually seem to generate and now the leaves are just getting cut off somehow