Read-only scoreboard objectives only initialize when respective value is changed
The bug
Read-only scoreboard objectives are only initialized when the value they are tracking changes. Expected would be that they initialize on creation.
Affected objective criteria
- air
- armor
- food
- health
- level
- xp
How to reproduce
- Create a scoreboard objective of the type xp
/scoreboard objectives add xp xp
- Check if a value is set by displaying the objective on the sidebar or trying to get the score
/scoreboard objectives setdisplay sidebar xp
/scoreboard players get @s xp
→
No value is set - Update your xp points
/xp add @s 1
- Repeat step 2
→
Now a value is set
Linked Issues
- Unresolved
Myldero
- 29
- 13
- Confirmed
Normal
- Platform
- Commands
- /scoreboard-objectives health read-only-scoreboard-objectives scoreboard
1.11.2 - 1.21-pre2
1.11.2 17w47b 17w48a 17w49b 17w50a 18w01a 18w02a 18w03b 18w05a 18w06a 18w07c 18w08b 18w09a 18w10a 18w10b 18w14b 18w16a 18w20c 18w21a 18w22c 1.13-pre1 1.13-pre2 1.13-pre4 1.13-pre6 1.13-pre7 1.13-pre8 1.13-pre10 1.13 1.15.1 1.15.2 20w09a 20w21a 1.16.1 1.16.2 1.16.3 1.16.4 20w51a 21w03a 21w05b 21w06a 21w07a 21w08b 21w10a 21w17a 1.17.1 1.18-pre6 1.18.1 1.18.2 1.19 1.19.1-rc1 1.19.2 1.20.1 1.20.5-rc2 1.21-pre2
Created Issue:
Health objective is only set/updated when health is changed
After making a health objective the health scores on the scoreboard of players online do not update before they lose health (Or gain health). This does also apply for players joining a server for the first time.
This means that you can't detect health for players who have just joined a map/server as the score will be undefined.
Healthobjectiveis onlyset/updated when healthis changedRead-only objectives only initialize when respective value is changed
After making a health objective the health scores on the scoreboard of players online do not update before they lose health (Or gain health). This does also apply for players joining a server for the first time.
This means that you can't detect health for players who have just joined a map/server as the score will be undefined.The bug
Read-only scoreboard objectives are only initialized when the value they are tracking changes. Expected would be that they initialize on creation.
Affected objective criteria
- air
- armor
- food
- health
- level
- xp
How to reproduce
- Create a scoreboard objective of the type xp
/scoreboard objectives add xp xp- Check if a value is set by displaying the objective on the sidebar or trying to get the score
/scoreboard objectives setdisplay sidebar xp/scoreboard players get @s xp→
No value is set
- Update your xp points
/xp add @s 1- Repeat step 2
→Now a value is set
Read-only scoreboard objectives only initialize when respective value is changed
is duplicated by
is duplicated by
The bug
In versions before 17w47a scoreboard objectives of the criteria type health used to display the value with heart icons in the player list. Since 17w47a this is not the case anymore.
This is likely related to the fact that the render type is not written to the scoreboard.dat file, see this reddit comment.
How to reproduce
- Use the following commands
/scoreboard objectives add health health /scoreboard objectives setdisplay list health
- Take damage, see MC-111729
The bug
/execute store ignores value validation, allowing you to set values which would be considered invalid when used in the respective command.
Partially relevant /r/Mojira discussion
Affected situations
- bossbar max
- bossbar value
- read-only scoreboard objectives
How to reproduce
bossbar max
- Create a bossbar
/bossbar add custom:test "test" - Try setting a negative maximum
/bossbar set custom:test max -1
→
It fails as expected - Create a scoreboard objective and set a negative score
/scoreboard objectives add test dummy /scoreboard players set value test -1
- Try storing the score as bossbar max
/execute store result bossbar custom:test max run scoreboard players get value test
- Get the bossbar max
/bossbar get custom:test max
→
It shows -1
Read only scoreboard objectives
- Create a read only scoreboard objective and have it displayed on the sidebar
/scoreboard objectives add health health /scoreboard objectives setdisplay sidebar health
- Take damage or heal to update the score (see MC-111729)
- Try setting a value for the health objective
/scoreboard players set @s health -1
→
It fails as expected - Create a scoreboard objective and set a negative score
/scoreboard objectives add test dummy /scoreboard players set value test -1
- Try storing the score as value for the read-only objective
/execute store result score @s health run scoreboard players get value test
→
Your health score changed to -1
For that see MC-111729
The Bug:
Hearts displayed within the tab list overlap the tab list's bottom border.
Every other piece of information displayed within the tab list except hearts doesn't overlap any areas of the tab list's borders, therefore introducing an inconsistency.
Steps to Reproduce:
- Create a scoreboard objective for tracking your health and set it to display on the tab list.
/scoreboard objectives add Health health
/scoreboard objectives setdisplay list Health
- Update your health by taking some damage in order for your hearts to be displayed on the tab list as a result of MC-111729.
- Look closely at the hearts within the tab list.
- Take note as to whether or not hearts displayed within the tab list overlap the tab list's bottom border.
Observed Behavior:
Hearts overlap the tab list's bottom border.
Expected Behavior:
Hearts would not overlap the tab list's bottom border.


Pretty sure there was already a report about that but I can't find it right now.
Can confirm in 20w51a.
Can confirm in 21w03a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 21w07a.
Can confirm in 21w08b. Video attached.
Can confirm in 21w11a.
Can confirm in 21w17a.
Can confirm in 1.17.1.
Can confirm in 1.18.1.
Can confirm in 1.18.2.
Can confirm in 1.19.
Can confirm in 1.19.2.
Can confirm in 1.21 Pre-Release 2.