bees lose their scoreboards score when they came into a hive.
Linked issues
is duplicated by 1
Comments 5
I can reproduce this by:
1. /scoreboard objectives add test dummy
2. /scoreboard objectives setdisplay sidebar test
3. {{/summon minecraft:bee ~ ~ ~ {Tags: ["test"]}}}
4. /scoreboard players set @e[tag=test] test 1
The bee's UUID and score are shown on the sidebar.
5. Put a flower and bee hive.
6. /weather rain
Wait for the bee to enter its hive.
โ The score on the sidebar disappear.
7. /weather clear
Wait for the bee to get out.
โ The score doesn't show again.
โ BTW, the UUID of the bee is changed. Maybe WAI because ofย MC-159383.
The scores are actually removed as the bee no longer exists as an entity, which is an intentional design of scoreboards to avoid having mobs that despawn or die keeping scores/teams, additionally the UUID change is indeed intended per MC-159383; the only fix here would be to add NBT data to add scores on spawning, which does exist for teams as well.
Also affects teams, if you couldn't tell, and a simple fix would be to add the Team:"" NBT to the bee the moment it enters the hive.
And confirmed for 19w37a
could anyone confirm this bug?