TransWikia.com

What is the Minecraft scoreboard command to display words?

Arqade Asked by rappatic on December 6, 2020

I have a server and I want it to be able to show ranks on the sidebar (VIP, Diamond, ect.). I have tried to use the scoreboard command with a dummy but it does not accept words. Is there a way I can display ranks on the sidebar without mods or plugins?

2 Answers

You cannot change the type of value shown on the sidebar in vanilla; it will always be a name followed by an integer score.

However, you can use vanilla's team prefix/suffix feature to display text before or after the names of those within the team (which includes fake players/non-player entities).

In-game

Create scoreboard teams to represent ranks.

/scoreboard teams add VIP
/scoreboard teams add Diamond

Insert players into the appropriate teams.

/scoreboard teams join VIP @p

Create a dummy objective to show on the sidebar and initialize players with a score of 0. The score itself won't matter unless you want to sort players in a specific manner.

/scoreboard objectives add Display dummy
/scoreboard objectives setdisplay sidebar Display
/scoreboard players set @a Display 0

However, if you wanted to order it based on rank, you can give players with a higher rank a higher score:

/scoreboard players set @a[team=VIP] Display 2
/scoreboard players set @a[team=Diamond] Display 1

Editing team prefix/suffix

Exit the world. Navigate to the <world name>/data/scoreboard.dat file and open it with an NBT editor such as NBTExplorer.

Open the data compound, the Teams list, and then locate the teams you want to modify. Edit the prefix/suffix to include text for display, which can include section-symbol-formatted codes.

scoreboard.dat > data > Teams > (a team) > Suffix

Final result

When you enter the world again, your name will include the additional text:

Skylinerw(VIP): 0

Correct answer by Skylinerw on December 6, 2020

Run Once:

/team add VIP
/team modify prefix {"text":"[VIP]: ","color":"green"}

/scoreboard objectives add Sidebar dummy {"text":"Side Bar","color":"blue"}

Loop:

/team join VIP @p[tag=VIP]

Chain:

/scoreboard players set @a[tag=VIP] Sidebar 0

Answered by user256741 on December 6, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP