3

I am using tellraw to display that "@p has won the game.":

/tellraw @a [{"selector":"@p","bold":true,"italic":true,"color":"dark_purple"},{"text":" HAS WON THE GAME!"}]

The output:

drayson129 HAS WON THE GAME!

My question is can you make the output in full caps?:

DRAYSON129 HAS WON THE GAME!

1 Answer 1

4

There is currently no way to modify the actual text of a JSON text element. All you can do is change its color and other formatting.

One possible option would be a resource pack that replaces all lowercase letters with uppercase ones. Obviously, this would make it impossible to have lowercase letters anywhere in the game, unless you replaced another set of characters with lowercase letters and used those instead (i.e., replace £ with a and so on).

Updated as of 1.16:

With resource packs, you can add custom fonts. This would let you add an "uppercase" font and use it for the player name:

{"selector":"@p","bold":true,"italic":true,"color":"dark_purple","font":"your_namespace:uppercase"}
3
  • Wow, very creative solution! Commented Oct 30, 2017 at 6:26
  • Any way to edit the command so that it's not in JSON text format? (Either change it or never have it JSON in the forst place) Commented Nov 3, 2017 at 5:20
  • @IMTIREDSHUTUP You can use the /say command, but it does not support formatting and always sends the message to all players. You cannot use /tellraw without JSON text.
    – AjaxGb
    Commented Nov 3, 2017 at 18:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.