r/MinecraftCommands • • 9d ago

Help | Java 26.3 Use /title command to show dummy scoreboard

I'm new to using scoreboards and am making a team game. Made two scores with

/scoreboard objectives add redscore dummy {text:"Red Score"}

/scoreboard objectives add bluescore dummy {text:"Blue Score"}

And now I'm trying to print it to players whenever a point is won with /title, but no matter what I try, the title comes back up empty.
I've been using the command as /title \@a title [{"score":{"name":"*","objective":"*"}}] with as many permutations as possible in name and objective and it always comes back blank, and looking it up online doesn't bring me any answer

Does anyone have any answer on how I can make the scoreboard show up? Thank you in advance!

1 Upvotes

3 comments sorted by

1

u/GalSergey Datapack Experienced 9d ago

To display the score, you can use * only for the player’s name to select the player to whom the message is displayed. But you cannot use this for the scoreboard name.

title @a[team=red] title {"score":{"name":"*","objective":"redscore"}} 
title @a[team=blue] title {"score":{"name":"*","objective":"bluescore"}} 

1

u/Cyraen3D 9d ago

Oh sorry wasn't super clear. Used * in my examples solely because of the fact that these are the two points that keep getting changed in my attempts, I don't actually use in my commands.

I don't actually have any team in my scoreboard, the title is meant to be sent to every player in the nearby vicinity of both team on each goal.

And unfortunately the command you sent are still not showing anything for me, sorry

1

u/GalSergey Datapack Experienced 9d ago

If you display the score to all players, and as I understand it, this is the total number of points for the team, then to which player or fakeplayer are you adding the score? It is this player who should be displayed in /title.