FancyMenu [Fabric] [MOVED TO NEW PROJECT]

FancyMenu [Fabric] [MOVED TO NEW PROJECT]

17M Downloads

Update documentation for Scoreboard Score placeholder (explanation inside)

joel4848 opened this issue ยท 2 comments

commented

The Scoreboard Score placeholder can only return a value if the selected objective is displayed in some slot (i.e. sidebar, below_name, list, or sidebar.team.), presumably because that's necessary for the objective's scores to be sent to the client and for FM to have access to them.

It'd be helpful if this requirement could be stated in the documentation for that placeholder to e.g. save someone spending a week on and off trying to get it to work, nearly giving up thinking it was broken somehow, and then discovering what was going on purely by accident ๐Ÿ˜‚

e.g.:

Scoreboard Score (scoreboard_score)

Returns the score value of a player for a specific objective.

{"placeholder":"scoreboard_score","values":{"player":"Steve","objective":"kills"}}

Example output: 42

Important: The chosen objective must be displayed in order for FM to be able to access the scores, by running e.g. /scoreboard objectives setdisplay sidebar <objective_name> The objective can be displayed in any slot i.e. sidebar, below_name, list, or sidebar.team.<colour>.

commented

Sorry, didn't mean to mark this as a bug but not sure if I can change that :/

commented

I feel like the scoreboard placeholders are way too experimental anyways. Just like for NBT stuff, I have no clue about all the scoreboard magic xD If you could try them all out and give suggestions and possible bug reports for them, it would be very appreciated ๐Ÿ™ also if you think there should be additional scoreboard-related placeholders or actions, please tell me about them! Also if one of the existing placeholders is kinda useless and could be removed, please xD