mojira.dev
MC-69439

Health not working with ''_min'' tag

How to reproduce:

1. /scoreboard objectives add healthbar dummy (the objective is a dummy cititeria, name just healthbar''

2. /scoreboard objectives setdisplay sidebar healthbar

3. /summon Skeleton ~ ~1 ~ {SkeletonType:1,UUID:11111111-1111-1111-1111-111111111111}

4. /scoreboard players set @e healthbar 40

5. /scoreboard players set @e healthbar 9 {Health_min:6s}

What should happen, is that the objective for that entity get updated to 9, but it will not do that.

Comments 11

Invalid
It's "score_Health_mind"

{score_Health_mind:6s} Does not work.

also {score_Health_min:6s}

you put it completely wrong, use:

/scoreboard players set @e healthbar 9 {Health:6}
/scoreboard players set @e healthbar 9 {Health:5}
/scoreboard players set @e healthbar 9 {Health:4}
/scoreboard players set @e healthbar 9 {Health:3}
/scoreboard players set @e healthbar 9 {Health:2}
/scoreboard players set @e healthbar 9 {Health:1}

or use these:
/scoreboard objectives add Health health
/scoreboard players set @e[score_Health_min=6] healthbar 9
because what you tryed is putting a scoreboard selector argument in a data tag

So, how do I get the mob in the health scoreboard then?

just damage it, or heal it
forgot, Health scoreboard only works on players, you got to use the top one

1 more comments

because datatags are absolute, there is no "_min" posible

Well, thanks for you time.

but, is there an other option to keep track of a mob his health?

Lets hope they will add something like that in the future 😛

sorry, got to end this, this is a bug tracker, not a forum

Tracker

(Unassigned)

Unconfirmed

Minecraft 14w33c, Minecraft 14w34b, Minecraft 14w34d, Minecraft 1.8-pre1, Minecraft 1.8-pre2

Retrieved