#Unique storage for each player
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1745768041:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
Sorry I think I expressed myself badly, basically I have my scoreboards for all the players but I would like to display them using the title command but a macro can only record one scoreboard at a time and I would like everyone to see their own score on the screen
So display the player's life which is a personal and unique score to the player using a macro and title
text components can dynamically pull values from scores
{"score":{"name":"@s","objective":"<your objective here>"}}
if you use execute as @a run title @s ... every player gets displayed their own score
And how do I combine this with text?
'["Text", {<Text component>}, "Text"]'
you can chain them in any shape and size you want
?
No way to put them in the same parentheses?
for what?
they work like this
the text that comes out would look like this: Text<whatever number was in the scoreboard>Text
<> is just a placeholder
...
That's why I'm asking, I don't understand anything about chaining them.
this has to go where I wrote "text component"
only 1 pair of {} though
Ah ok
and
not quite
Ahh, why ?
["Test ",{"score":{"objective":"custom_health","name":"@s"}}," Test"]
since 1.21.5 they change the format to also accept snbt nit just json I do reccomend to still put " around actual text like Test
if you're in 1.21.4 or earlier then you need the surrounding quotes, if you're in 1.21.5 then you don't (actual strings still need quotes either way, as hedean said)
Okay thanks
in snbt they don't necessarily as long as mc can recognize them as a string
but it's recommended for better clarity
and readabillity
What is snbt ?
Yes
stringified nambed binary tags
it's the text form of minecraft data
normal nbt is in binary
Ok thx
Do you think there is a way to shorten this?
no