#How to make a titleraw show data

1 messages · Page 1 of 1 (latest)

grizzled pebble
#

idk what makes it show data or stuff

silent kettle
#

{"score":{"name":"@s","objective":"scoreboard_name"}}

#

{"selector":"@s"}

#

{"text":"raw text"}

#

Those are the objects that you can use

grizzled pebble
#

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/ " }]}

silent kettle
#

Use execute as @a run tellraw....

#

Then you can use @s as the selector

grizzled pebble
#

its @a title

silent kettle
#

I'm not on my PC right now so I can't really do much, is there an error?

grizzled pebble
silent kettle
grizzled pebble
#

??

silent kettle
#

Yeah, you arent closing your text objects

grizzled pebble
#

im new to this

#

i was messing around and made something

silent kettle
#

execute as @a run titleraw @s title {"rawtext":[{"text":"score is: "},{"score":{"name":"@s","objective":"scoreboard_name"}}]}

grizzled pebble
#

???

silent kettle
#

That's how you would do it

grizzled pebble
#

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/ " }]}

silent kettle
#

Took my a while because I'm not on my pc rn lol

grizzled pebble
grizzled pebble
silent kettle
#

Why are you closing a text object and then immediately opening a new one?

grizzled pebble
#

how do i not close them

silent kettle
#

Then a rawtext object

grizzled pebble
#

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?

silent kettle
#

Still wrong, youre not closing a text before opening a score

grizzled pebble
#

Kirby is it a yes?

#

4rW#E$RFH
GT%

#

5ty34r

#

how do i close a text?

silent kettle
#

The actionbar is correct though

#

}

grizzled pebble
#

yess

silent kettle
grizzled pebble
#

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/ " }]}

silent kettle
#

Dude your linked accounts takes up more than my entire screen 😂😂😂😂 ive never seen that before

grizzled pebble
#

lol

silent kettle
#

Then youre missing one after money?

grizzled pebble
#

ty

silent kettle
#

Youre missing a titleraw before the @s?.... 😂😂

grizzled pebble
#

ooooh

silent kettle
#

Your text before score isnt closed

grizzled pebble
#

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/ " }]}

silent kettle
#

After time played, there is no "

#

There shouldnt be 3 end } after scores

grizzled pebble
#

before or after the :

silent kettle
#

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*

grizzled pebble
#

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/ " }]}

grizzled pebble
silent kettle
#

There are 2 end } after a selector, you only need 1

grizzled pebble
#

where

silent kettle
#

Near the bottom

#

Before role

grizzled pebble
#

fixed?

silent kettle
#

Deaths text quotation isnt closed

grizzled pebble
#

im so dumb

silent kettle
#

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

grizzled pebble
silent kettle
#

After kills, the score is closed without having its name and objective defined

grizzled pebble
#

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/ " }]}

silent kettle
#

No quotation mark after name

#

On the min objective, the colon is inside of the string, it should be outside

#

Fix the kills score

grizzled pebble
silent kettle
#

Same with deaths

grizzled pebble
silent kettle
#

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/ " }]}

silent kettle
#

My bad, its supposed to be "score":{

silent kettle
grizzled pebble
#

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

silent kettle
#

Use title and not actionbar

grizzled pebble
#

bugged mc pack

#

ok

#

@silent kettle thank you so much

#

ima credit you

silent kettle
grizzled pebble
silent kettle
#

I don't need credit, just one command

grizzled pebble
grizzled pebble
granite cedar
#

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