query.scoreboard only works in resource packs if the scoreboard is visible
When using query.scoreboard, the query only works in resource packs if the scoreboard is displayed (below name, list or sidebar). Which is annoying when it would be very helpful to be able to track scoreboards without them being visible.
Steps to Reproduce:
- Download the supplied pack
- Load a world and put '/scoreboard objectives add test dummy test' in the command window
- Then put '/scoreboard players add @s test 1' in the command window
- Nothing should happen
- Now put '/scoreboard objectives setdisplay sidebar test'
- The screen should now 'freeze' over.
- Now put '/scoreboard objectives setdisplay sidebar'
- The screen will return to normal
Expected Behavior:
- query.scoreboard functions in resource packs when the scoreboard isn't displayed
Actual Behavior:
- query.scoreboard only works when the scoreboard is displayed
- Unresolved
Gruntastic- 21
- 11
- Confirmed
- 435132
- Multiple
- add-on experimental_queries molang query resource_pack scoreboard
1.18.10.27 Beta - 1.20.51 Hotfix
1.18.10.27 Beta 1.18.10.26 Beta 1.18.0.24 Beta 1.18.0.22 Beta 1.18.0.20 Beta 1.17.40.23 Beta 1.17.40.20 Beta 1.17.30.24 Beta 1.17.30.23 Beta 1.17.30.21 Beta 1.17.30.20 Beta 1.17.11 Hotfix 1.17.20.22 Beta 1.17.20.21 Beta 1.17.10 1.17.10.23 Beta 1.17.1 Hotfix 1.17.10.20 Beta 1.17.0.58 Beta 1.17.0.56 Beta 1.17.0.54 Beta 1.17.0.52 Beta 1.17.0.50 Beta 1.16.230.56 Beta 1.16.230.54 Beta 1.16.220 1.16.230.50 Beta 1.16.220.52 Beta 1.16.220.51 Beta 1.16.220.50 Beta 1.16.210.61 Beta 1.16.210.60 Beta 1.16.210.59 Beta 1.16.210.58 Beta 1.16.210.57 Beta 1.16.210.56 Beta 1.16.210.55 Beta 1.16.210.54 Beta 1.16.210.53 Beta 1.16.210.51 Beta 1.16.210.50 Beta 1.16.200.57 Beta 1.16.200.56 Beta 1.16.200.55 Beta 1.16.200.53 Beta 1.16.200.52 Beta 1.16.200.51 Beta 1.16.100.60 Beta 1.16.100.59 Beta 1.16.201 Hotfix 1.16.210 1.16.221 Hotfix 1.17.0 1.18.2 Hotfix 1.18.30.33 Preview 1.18.12 Hotfix 1.19.63 1.20.51 Hotfix
Created Issue:
query.scoreboard only works in resource packs if the scoreboard is visible
When using query.scoreboard, the query only works in resource packs if the scoreboard is displayed (below name, list or sidebar). Which is annoying when it would be very helpful to be able to track scoreboards without them being visible.
Steps to Reproduce:
- Download the supplied pack
- Load a world and put '/scoreboard objectives add test dummy test' in the command window
- Then put '/scoreboard players add @s test 1' in the command window
- Nothing should happen
- Now put '/scoreboard objectives setdisplay sidebar test'
- The screen should now 'freeze' over.
- Now put '/scoreboard objectives setdisplay sidebar'
- The screen will return to normal
Expected Behavior:
- query.scoreboard functions in resource packs when the scoreboard isn't displayed
Actual Behavior:
- query.scoreboard only works when the scoreboard is displayed
Added Attachments:
Added Affects Versions: 1.16.100.60 Beta
Added Affects Versions: 1.16.200.51 Beta
Added Affects Versions: 1.16.200.52 Beta
Added Affects Versions: 1.16.200.53 Beta
Added Affects Versions: 1.16.200.55 Beta
Added ADO: 435132
Added Affects Versions: 1.16.200.56 Beta
Added Affects Versions: 1.16.200.57 Beta
Added Affects Versions: 1.16.210.50 Beta
Added Affects Versions: 1.16.210.51 Beta
Added Affects Versions: 1.16.210.53 Beta
Added Affects Versions: 1.16.201 Hotfix 1.16.210.54 Beta
Added Affects Versions: 1.16.210.55 Beta
Added Affects Versions: 1.16.210.56 Beta
Added Affects Versions: 1.16.210.57 Beta
Added Affects Versions: 1.16.210.58 Beta
Added Affects Versions: 1.16.210.59 Beta
Added Affects Versions: 1.16.210.60 Beta
Added Affects Versions: 1.16.210.61 Beta
Added Affects Versions: 1.16.220.50 Beta
Added Affects Versions: 1.16.210 1.16.220.51 Beta
Added Affects Versions: 1.16.220.52 Beta
Added Affects Versions: 1.16.230.50 Beta
Added Affects Versions: 1.16.220 1.16.230.54 Beta
Added Affects Versions: 1.16.230.56 Beta
Added Affects Versions: 1.17.0.50 Beta
Added Affects Versions: 1.16.221 Hotfix 1.17.0.52 Beta
Added Affects Versions: 1.17.0.54 Beta
Added Affects Versions: 1.17.0.56 Beta
Added Affects Versions: 1.17.0.58 Beta
Added Affects Versions: 1.17.10.20 Beta
Added Affects Versions: 1.17.0 1.17.1 Hotfix 1.17.10.23 Beta
Added Affects Versions: 1.17.20.21 Beta
Added Affects Versions: 1.17.10 1.17.20.22 Beta
Added Affects Versions: 1.17.30.20 Beta
Added Affects Versions: 1.17.11 Hotfix 1.17.30.21 Beta
Added Affects Versions: 1.17.30.23 Beta
Added Affects Versions: 1.17.30.24 Beta
Added Affects Versions: 1.17.40.20 Beta
Added Affects Versions: 1.17.40.23 Beta
Added Affects Versions: 1.18.0.20 Beta
Added Affects Versions: 1.18.0.22 Beta
Added Affects Versions: 1.18.0.24 Beta
Added Affects Versions: 1.18.2 Hotfix 1.18.10.26 Beta 1.18.10.27 Beta
Added Affects Versions: 1.18.30.33 Preview 1.18.12 Hotfix
Added Affects Versions: 1.19.63
Added Affects Versions: 1.20.51 Hotfix
Deleted Comment:
It dosent work at all for me in player.json resource pack
Still affects 1.16.100.60
Please leave a screenshot of this
I believe this happens because the server will only send data to the client if the client needs it (to display the scoreboard). So it is only accessible this way.
Can confirm, making a TARDIS addon and the demat is used via scoreboard. it only works when visible
The TARDIS is a entity and by setting the demat to belowname I can't see it and it still works
Does this query work from a server-side context for non-displayed scores?
If your talking from a behavior pack perspective, yes.
Scoreboards that aren't visible are able to be queried in Behaviour Packs
Technically resolved with the addition of player actor properties, albeit in a roundabout way.
I have many (query.scoreboard) {}for the same entity in the RP and I want to use all the scoreboards for this entity at the same time in the RP without making all the scoreboards displayed in the game, and even if I have to make the scoreboards displayed, it is impossible to make more than one scoreboard displayed at the same time.
please fix this bug.
Affects 1.20.51, I'm currently trying to use a score for a value in an animation and the query.scoreboard in the animation only reflects an entity's score when the score is displayed. When the score is not displayed on the screen, query.scoreboard assumes a value of 0.
This is still an issue in 1.20.51 like the other comment said.
Glad it works while the scoreboard is displayed, but a fix to make it also work when it isn't would be great
please, solved this : (