3

In Minecraft 1.13, there is a way to make bold and italic and colored names on items. I have figured this out, and done this:

/give @p minecraft:golden_sword{display:{Name:"{\"text\":\"GoldenHeart Blade\",\"color\":\"gold\",\"italic\":\"false\",\"bold\":\"true\"}"}}

This works like a charm. Howevever, what I want is multiple colors in one name. To have multiple text strings, like is possible in /tellraw. I tried this:

/give @p minecraft:golden_sword{display:{Name:"\"text\":\"GoldenHeart\",\"color\":\"gold\",\"italic\":\"false\",\"bold\":\"true\"},{\"text\":\" Blade \",\"color\":\"white\",\"italic\":\"false\",\"bold\":\"true\}"}}

This would, in an ideal world, make "Blade" of "GoldenHeart Blade" white instead of gold like "GoldenHeart" is. Instead, it only gave me a golden text "GoldenHeart". Is there a way to have multiple text strings?

5

Like with /tellraw, you'll need to put the components in square brackets ([ ]) to make it a list:

[
    {
        "text": "GoldenHeart ",
        "color": "gold",
        "italic": false,
        "bold": true
    },
    {
        "text": "Blade",
        "color": "white",
        "italic": false,
        "bold": true
    }
]

Escaped and in the command:

/give @p minecraft:golden_sword{display:{Name:"[{\"text\":\"GoldenHeart\",\"color\":\"gold\",\"italic\":false,\"bold\":true},{\"text\":\" Blade\",\"color\":\"white\",\"italic\":false,\"bold\":true}]"}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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