/give written_book inconsistencies
Version: vanilla 1.19
I want to give players a written book that displays their score of some resources like the xp they have
Since you can't use @s or selectors like that in written books if the player is not an operator, what I did was use fake player name in scoreboard that can be displayed, for example I'm the function to give the book /scoreboard players operation xp Display = @s XP and then /give @s written books using the xp Display selector.
The problem is that players get other player's scores in their written book. I debugged it using also a tellraw to display the score and that works fine, but the written book just shows another player's score
Continue to help post