mojira.dev
MC-160603

bees lose their scoreboards score when they came into a hive.

bees lose their scoreboards score when they came into a hive.

Linked issues

Comments 5

could anyone confirm this bug?

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

This was done to avoid exploits / duplicate entity IDs.

Could you please add the Team:"" NBT to the bee when it get into its hive?

chenyuxuan

(Unassigned)

Community Consensus

Commands

Hives, bee, scoreboard

19w36a

Retrieved