14

I have heard it was possible to change the names and lores of Minecraft items WITHOUT the use of third-party programs like MCEdit. Given the things that my friends have told me, and from the information gathered online, my guess is that, since Minecraft has started using JavaScript, /give @p 35 1 14 {name:"Red Wool",lore:"bob"}. Whenever I run this command block, all I get is a piece of Red Wool with no Lore, nor a name. I also get no errors in this process.

2
  • I believe Minecraft actually uses JQuery, iirc. It is possible, for sure. Give me a minute to figure out the actual command.
    – Unionhawk
    Commented Dec 5, 2013 at 7:39
  • Actually, It uses neither. It uses Java, witch is completely different. JSON is a method of describing objects, derived out of Javascript, but used in many different languages. Minecraft nbt in commands are designed to JSON-like.
    – Ben Aubin
    Commented Jan 2, 2016 at 18:26

1 Answer 1

22

You're close. The command for this particular case would be /give @p wool 1 14 {display:{Name:"Red Wool",Lore:[Bob]}}, which results in:

Result of command

The format for the lore text is in brackets allows you to add new lines by using commas, as well. In this case, the command is /give @p wool 1 14 {display:{Name:"Red Wool",Lore:[Bob, Joe]}}. This results in:

Result of command

You can also include multiple words or [] in the lore, but you need to use quotes like /give @p wool 1 14 {display:{Name:"Red Wool",Lore:["Multiple Words"]}}. This results in:

Result of command

This also works with multiple lines. /give @p wool 1 14 {display:{Name:"Red Wool",Lore:["Multiple Words", "Multiple Lines"]}} results in:

Result of command

If you are using quotes in your custom lore or name, escape it with \ before the quote. An example command that escapes quotes would be /give @p wool 1 14 {display:{Name:"\"This is in Visible Quotes\"",Lore:["\"Lore with Quotes\""]}}. You can see the result of that command below:

Result of command

For more information on all the new special data tags you can use, check out this post on the Minecraft Forum.

2
  • 5
    And here I thought they were referring to renaming something on the anvil.
    – James
    Commented Dec 5, 2013 at 7:57
  • 1
    You should generally quote your strings, even in arrays Commented Feb 16, 2016 at 3:04

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