#Unique storage for each player

1 messages · Page 1 of 1 (latest)

empty orchidBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 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

vale drum
#

if it's only a number you can use scoreboards

#

much better for performance

sand coyote
# vale drum if it's only a number you can use scoreboards

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

vale drum
#

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

sand coyote
vale drum
#

'["Text", {<Text component>}, "Text"]'

#

you can chain them in any shape and size you want

#

?

sand coyote
#

No way to put them in the same parentheses?

vale drum
#

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

sand coyote
vale drum
#

...

sand coyote
#

That's why I'm asking, I don't understand anything about chaining them.

vale drum
#

only 1 pair of {} though

sand coyote
#

Ah ok

vale drum
sand coyote
#

Okay I understand I think

vale drum
sand coyote
#

Ahh, why ?

vale drum
#
["Test ",{"score":{"objective":"custom_health","name":"@s"}}," Test"]
sand coyote
#

Thx u so much bro

#

We agree it works without the " ?

vale drum
#

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

sand coyote
#

Oh well, it doesn't change much to put ' or " yet

#

I'm in 1.21.4

raven forum
#

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)

vale drum
#

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

sand coyote
#

What is snbt ?

sand coyote
vale drum
#

stringified nambed binary tags

#

it's the text form of minecraft data

#

normal nbt is in binary

sand coyote
#

Ok thx

sand coyote
#

Do you think there is a way to shorten this?

vale drum
#

no