mojira.dev
MC-297219

beehive / bee_nest deletes entities tagged as entity_type beehive_inhabitors unless bee

Any (assumption, tried a few ageable mobs and zombies) non “minecraft:bee” entity listed in minecraft/tags/entity_type/beehive_inhabitors.json produce spawning sound event but no entity is created.

In a version from introduction of beehive_inhabitors 1.15 (in snapshot 19w36a) through to 20w21a (1.16 snapshots) the following example works as expected

minecraft/tags/entity_tags/beehive_inhabitors.json

{
  "values": [
    "minecraft:bee",
    "minecraft:pig"
  ]
}

minecraft/functions/test.mcfunction

set time day
setblock ~ ~6 ~ bee_nest
data modify block ~ ~6 ~ Bees append value {MinOccupationTicks:10,EntityData:{id:"minecraft:cow"}}
data modify block ~ ~6 ~ Bees append value {MinOccupationTicks:20,EntityData:{id:"minecraft:bee"}}
data modify block ~ ~6 ~ Bees append value {MinOccupationTicks:30,EntityData:{id:"minecraft:pig"}}

in 20w21a; A pig and bee are spawned, two sound events play. Entity not listed as beehive_inhabitor remains, data get block ~ ~6 ~ returns [{MinOccupationTicks:10,TicksInHive:11,EntityData:{id:"minecraft:cow"}}]

in 20w22a and onward; Only the bee is spawned, two sound events play. Block entity contains [{MinOccupationTicks:10,TicksInHive:11,EntityData:{id:"minecraft:cow"}}]

And in current syntax (with paths minecraft/tags/entity_type and minecraft/function)

time set day
setblock ~ ~6 ~ bee_nest
data modify block ~ ~6 ~ bees append value {min_ticks_in_hive:10,ticks_in_hive:0,entity_data:{id:"minecraft:cow"}}
data modify block ~ ~6 ~ bees append value {min_ticks_in_hive:20,ticks_in_hive:0,entity_data:{id:"minecraft:bee"}}
data modify block ~ ~6 ~ bees append value {min_ticks_in_hive:30,ticks_in_hive:0,entity_data:{id:"minecraft:pig"}}

Same peculiar behavior persists; entries of type #minecraft:beehive_inhabitors are removed from bees:[] when tick duration and daytime is met, sound event during each, but only bees are actually spawned.

Assumption is that it was broken with the fix for MC-166135

Comments 2

Hi there!

I'm currently reviewing older, unconfirmed reports to help keep the bug tracker up to date. I’ll temporarily resolve this as Awaiting Response for now.

Please let me know if this issue is still happening for you in Minecraft 1.21.6. If you reply, the ticket will automatically reopen and I’ll be happy to take another look.

Yes, still present. A beehive with bee, pig and cow where bee and pig are listed as beehive_inhabitors will spawn the bee, delete (but play spawn sound) the pig, and keep the cow locked up.

knirch

(Unassigned)

Plausible

Gameplay

Low

Commands

1.21.5, 1.21.6

Retrieved