#How to make a titleraw show data
1 messages · Page 1 of 1 (latest)
{"score":{"name":"@s","objective":"scoreboard_name"}}
{"selector":"@s"}
{"text":"raw text"}
Those are the objects that you can use
thanks
titleraw @a title {"rawtext": [{ "text": "\n\n\n\n\n §•§l§cYour Stats:§r" },{ "text": "\n§r§l • §7Time Played: {"score":{"name":"@s","objective":"min"}}" },{ "text": "\n§r§l • §7Money: §a{"score":{"name":"@s","objective":"Money}}" },{ "text": "\n§r§l • §7Kills: {"score":{"name":"@s","objective":"kills}}" },{ "text": "\n§r§l • §7Deaths: §c{"score":{"name":"@s","objective":"Deaths"}}" },{ "text": "\n\n §l§cYour Info:§r§l" },{ "text": "\n§r§l • §7Name: {"selector":"@s"}" },{ "text": "\n§r§l • §7Role: §fMember" },{ "text": "\n§r§l • §7Power: §f" },{ "text": "\n\n §eRealms.gg/ \n §eDiscord.gg/ " }]}
I'm not on my PC right now so I can't really do much, is there an error?
Yeah, that'll display the entity running the command's stats to everyone
??
Yeah, you arent closing your text objects
execute as @a run titleraw @s title {"rawtext":[{"text":"score is: "},{"score":{"name":"@s","objective":"scoreboard_name"}}]}
???
That's how you would do it
execute as @a run titleraw @s {"rawtext": [{ "text": "\n\n\n\n\n §•§l§cYour Stats:§r" },{ "text": "\n§r§l • §7Time Played: {"score":{"name":"@s","objective":"min"}}" },{ "text": "\n§r§l • §7Money: §a{"score":{"name":"@s","objective":"Money}}" },{ "text": "\n§r§l • §7Kills: {"score":{"name":"@s","objective":"kills}}" },{ "text": "\n§r§l • §7Deaths: §c{"score":{"name":"@s","objective":"Deaths"}}" },{ "text": "\n\n §l§cYour Info:§r§l" },{ "text": "\n§r§l • §7Name: {"selector":"@s"}" },{ "text": "\n§r§l • §7Role: §fMember" },{ "text": "\n§r§l • §7Power: §f" },{ "text": "\n\n §eRealms.gg/ \n §eDiscord.gg/ " }]}
Took my a while because I'm not on my pc rn lol
will that work
lol
Thats wrong
Why are you closing a text object and then immediately opening a new one?
There are many things wrong with this. Titleraw, like the title command requires context on where to put the data. So it would be like this /titleraw @s actionbar
Then a rawtext object
execute as @a run @s actionbar {"rawtext": [{ "text": "\n\n\n\n\n §•§l§cYour Stats:§r" },{ "text": "\n§r§l • §7Time Played: {"score":{"name":"@s","objective":"min"}}" },{ "text": "\n§r§l • §7Money: §a{"score":{"name":"@s","objective":"Money}}" },{ "text": "\n§r§l • §7Kills: {"score":{"name":"@s","objective":"kills}}" },{ "text": "\n§r§l • §7Deaths: §c{"score":{"name":"@s","objective":"Deaths"}}" },{ "text": "\n\n §l§cYour Info:§r§l" },{ "text": "\n§r§l • §7Name: {"selector":"@s"}" },{ "text": "\n§r§l • §7Role: §fMember" },{ "text": "\n§r§l • §7Power: §f" },{ "text": "\n\n §eRealms.gg/ \n §eDiscord.gg/ " }]}
will that work?
Still wrong, youre not closing a text before opening a score
yess
.
execute as @a run titleraw @s actionbar {"rawtext": [{ "text": "\n\n\n\n\n §•§l§cYour Stats:§r" },{ "text": "\n§r§l • §7Time Played: },{"score":{"name":"@s","objective":"min"}} },{ "text": "\n§r§l • §7Money: §a},{"score":{"name":"@s","objective":"Money"}} },{ "text": "\n§r§l • §7Kills: {"score":},{"name":"@s","objective":"kills}}" },{ "text": "\n§r§l • §7Deaths: §c},{"score":},{"name":"@s","objective":"Deaths"}}" },{ "text": "\n\n §l§cYour Info:§r§l" },{ "text": "\n§r§l • §7Name: },{"selector":"@s"}" },{ "text": "\n§r§l • §7Role: §fMember" },{ "text": "\n§r§l • §7Power: §f" },{ "text": "\n\n §eRealms.gg/ \n §eDiscord.gg/ " }]}
Dude your linked accounts takes up more than my entire screen 😂😂😂😂 ive never seen that before
lol
Better but theres a random quotation mark after the first score
Then youre missing one after money?
Youre missing a titleraw before the @s?.... 😂😂
ooooh
Your text before score isnt closed
execute as @a run titleraw @s actionbar {"rawtext": [{ "text": "\n\n\n\n\n §•§l§cYour Stats:§r" },{ "text": "\n§r§l • §7Time Played": },{"score:"{"name":"@s","objective":"min"}},{ "text": "\n§r§l • §7Money: §a},{"score":{"name":"@s","objective":"Money"}},{ "text": "\n§r§l • §7Kills: {"score":},{"name":"@s","objective":"kills}}"},{ "text": "\n§r§l • §7Deaths: §c},{"score":},{"name":"@s","objective":"Deaths"}}" },{ "text": "\n\n §l§cYour Info:§r§l" },{ "text": "\n§r§l • §7Name: },{"selector":"@s"}" },{ "text": "\n§r§l • §7Role: §fMember" },{ "text": "\n§r§l • §7Power: §f" },{ "text": "\n\n §eRealms.gg/ \n §eDiscord.gg/ " }]}
before or after the :
After
: is part of the string
There are so many issues with this 😂😂😂😂
There are missing quotation marks and your scores are ended using 3 curly brackets, they only need 2
There are also random quotation marks after some scores
Same with the selectoe
Selector*
execute as @a run titleraw @s actionbar {"rawtext": [{ "text": "\n\n\n\n\n §•§l§cYour Stats:§r" },{ "text": "\n§r§l • §7Time Played:"},{"score:"{"name":"@s","objective":"min"}},{ "text": "\n§r§l • §7Money: §a"},{"score":{"name":"@s","objective":"Money"}},{ "text": "\n§r§l • §7Kills: "},{"score":},{"name":"@s","objective":"kills"}},{ "text": "\n§r§l • §7Deaths: §c"},{"score":},{"name":"@s","objective":"Deaths"}},{ "text": "\n\n §l§cYour Info:§r§l" },{ "text": "\n§r§l • §7Name: },{"selector":"@s"},{ "text": "\n§r§l • §7Role: §fMember" },{ "text": "\n§r§l • §7Power: §f" },{ "text": "\n\n §eRealms.gg/ \n §eDiscord.gg/ " }]}
i feel like im being bullied
There are 2 end } after a selector, you only need 1
where
fixed?
Deaths text quotation isnt closed
im so dumb
There is a colon outside of the string in time played
Moneys quotation mark isnt closed
Kills text doesnt have an end quotation mark or curly bracket
Or comma
its not important lol
After kills, the score is closed without having its name and objective defined
execute as @a run titleraw @s actionbar {"rawtext": [{ "text": "\n\n\n\n\n §•§l§cYour Stats:§r" },{ "text": "\n§r§l • §7Time Played:"},{"score:"{"name":"@s","objective":"min:"}},{ "text": "\n§r§l • §7Money: §a"},{"score":{"name":"@s","objective":"Money"}},{ "text": "\n§r§l • §7Kills: "},{"score":},{"name":"@s","objective":"kills"}},{ "text": "\n§r§l • §7Deaths: §c"},{"score":},{"name":"@s","objective":"Deaths"}},{ "text": "\n\n §l§cYour Info:§r§l" },{ "text": "\n§r§l • §7Name:"},{"selector":"@s"},{ "text": "\n§r§l • §7Role: §fMember" },{ "text": "\n§r§l • §7Power: §f" },{ "text": "\n\n §eRealms.gg/ \n §eDiscord.gg/ " }]}
No quotation mark after name
On the min objective, the colon is inside of the string, it should be outside
Fix the kills score
idk what to do about that
Same with deaths
what do i do
execute as @a run titleraw @s actionbar {"rawtext": [{ "text": "\n\n\n\n\n §•§l§cYour Stats:§r" },{ "text": "\n§r§l • §7Time Played:"},{"score:"{"name":"@s","objective":"min"}},{ "text": "\n§r§l • §7Money: §a"},{"score":{"name":"@s","objective":"Money"}},{ "text": "\n§r§l • §7Kills: "},{"score":{"name":"@s","objective":"kills"}},{ "text": "\n§r§l • §7Deaths: §c"},{"score":{"name":"@s","objective":"Deaths"}},{ "text": "\n\n §l§cYour Info:§r§l" },{ "text": "\n§r§l • §7Name:"},{"selector":"@s"},{ "text": "\n§r§l • §7Role: §fMember" },{ "text": "\n§r§l • §7Power: §f" },{ "text": "\n\n §eRealms.gg/ \n §eDiscord.gg/ " }]}
it wont work
im so sorry
My bad, its supposed to be "score":{
What? 😂😂 its development everyones gonna struggle at first, just read the errors and try to fix them
execute as @a run titleraw @s actionbar {"rawtext": [{ "text": "\n\n\n\n\n §•§l§cYour Stats:§r" },{ "text": "\n§r§l • §7Time Played:"},{"score":{"name":"@s","objective":"min"}},{ "text": "\n§r§l • §7Money: §a"},{"score":{"name":"@s","objective":"Money"}},{ "text": "\n§r§l • §7Kills: "},{"score":{"name":"@s","objective":"kills"}},{ "text": "\n§r§l • §7Deaths: §c"},{"score":{"name":"@s","objective":"Deaths"}},{ "text": "\n\n §l§cYour Info:§r§l" },{ "text": "\n§r§l • §7Name:"},{"selector":"@s"},{ "text": "\n§r§l • §7Role: §fMember" },{ "text": "\n§r§l • §7Power: §f" },{ "text": "\n\n §eRealms.gg/ \n §eDiscord.gg/ " }]}
it shows on the left
instead of the right
Use title and not actionbar
no thanks lol
why not?
I don't need credit, just one command
one important command
by one important person
You can use asterisk instead of execute in all name arguments, this will make it show its own score to each player, ex:
/titleraw @a title {"rawtext":[{"score":{"name":"*","objective":"money"}}]} Will make each player see their score individually without using execute .
Same in selector aegument