mojira.dev
MCPE-102389

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:

  1. Download the supplied pack

  2. Load a world and put '/scoreboard objectives add test dummy test' in the command window

  3. Then put '/scoreboard players add @s test 1' in the command window

  4. Nothing should happen

  5. Now put '/scoreboard objectives setdisplay sidebar test'

  6. The screen should now 'freeze' over.

  7. Now put '/scoreboard objectives setdisplay sidebar'

  8. 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

Attachments

Comments 14

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

4 more comments

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 : (

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.

Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Gruntastic

(Unassigned)

435132

Confirmed

Multiple

add-on, experimental_queries, molang, query, resource_pack, scoreboard

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.18.2 Hotfix, 1.18.30.33 Preview, 1.18.12 Hotfix, 1.19.63, 1.20.51 Hotfix

Retrieved