7

According to https://minecraft.wiki/w/Formatting_codes, using §1 in an item's name should make the text colored dark blue.

However, when I copy-paste a command like this one into chat:

/give @p diamond_sword{display:{Name:"{\"text\":\"§1Sword\"}"}}

it comes out like this:

/give @p diamond_sword{display:{Name:"{\"text\":\"1Sword\"}"}}

See the problem? I can't copy § into chat!

Which means the name ends up being "1Sword" rather than "Sword" colored dark blue.

Why can't I copy § into chat? What can I do to fix it?

Note: I've tested this issue on Minecraft versions 1.14.3 and 1.12.2. It worked the same on both. Feel free to leave a comment if you need more details.

2
  • If you have a number pad (I don't know if you are on a laptop that doesn't have one or not) - ALT + 21 types the § symbol. I also don't know if Minecraft detects ALT sequences. It has to be the number pad - not the number line on a keyboard.
    – Timmy Jim
    Commented Jul 2, 2019 at 0:46
  • @TimmyJim That's not Minecraft doing it, that's Windows. Commented Jul 2, 2019 at 4:14

3 Answers 3

10

You can actually set a color with the color-tag inside of the Name-tag by using a command like this:

/give @p diamond_sword{display:{Name:"{\"text\":\"Sword\",\"color\":\"dark_blue\"}"}}
2

1.15 Update

Entering JSON text is now easier in 1.15 because NBT string tags can use single quotes '.

Instead of:

/give @s dirt{display:{Name:"[{\"text\":\"Earth\", \"color\":\"green\"}]"}}

Try:

/give @s dirt{display:{Name:'[{"text":"Earth","color":"green"}]'}}
0
-3

Hold on the & symbol and choose it from the menu

1
  • Incorrect. This is not talking about how to get the § on a mobile keyboard.
    – One 2 Many
    Commented Jul 5, 2020 at 0:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .