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
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.